

Global Agriculture & Food Security Data
Data
Premium Product
Available ActionsEach successful request consumes credits as outlined below.
query_agriculture_data5cr
Details
Explore agriculture and food security data for any country in the world. Look up crop yields, undernourishment rates, agricultural productivity, land use patterns, and rural development indicators. Compare food security outcomes across countries, track trends in agricultural output, and assess progress toward ending hunger — all from a comprehensive global data set.
Use Cases
Research food security levels by country, Track crop yield trends over time, Analyze agricultural productivity across regions, Study undernourishment and malnutrition rates, Compare land use patterns between countries, Monitor rural population and agricultural employment, Assess progress toward SDG 2 zero hunger targets, Research agricultural value added as percentage of GDP, Evaluate food production capacity by region, Support policy research on rural development
Connect Your Agent In 5 Min
Watch the setup guide for your platform
Or Install Locally
STDIO connector for Claude Code, Codex, Cursor, Zed, and other LLMs that require STDIO or custom connections. This lightweight connector routes requests to https://api.agentpmt.com/mcp. All tool execution happens in the cloud and the server cannot edit any files on your computer.
npm install -g @agentpmt/mcp-routeragentpmt-setupActions(1)
query_agriculture_data5cr6 params(1 required)Fetch agricultural and food security indicator data for a country or region, including crop yields, undernourishment rates, land use, productivity metrics, and rural development context.
query_agriculture_data5cr6 params(1 required)Fetch agricultural and food security indicator data for a country or region, including crop yields, undernourishment rates, land use, productivity metrics, and rural development context.
country_or_regionrequiredstringCountry or region name in plain language (e.g., 'India', 'Sub-Saharan Africa', 'Brazil', 'World')
agriculture_topicstringTopic filter: 'production', 'food_security', 'malnutrition', 'land_use', 'productivity', or 'all'
Values:
productionfood_securitymalnutritionland_useproductivityall
Default:
alltime_periodstringTime period: 'latest', 'last_5_years', 'last_10_years', 'YYYY:YYYY' range, or single 'YYYY' year
Default:
latestinclude_rural_contextbooleanInclude rural population percentage and agricultural employment data for additional context
Default:
trueinclude_regional_comparisonbooleanInclude comparison data from World, Sub-Saharan Africa, South Asia, Latin America, East Asia, and Middle East
Default:
trueinclude_trendsbooleanInclude trend analysis with change direction (improving/worsening/stable) when historical data is available
Default:
truecurl -X POST "https://api.agentpmt.com/products/purchase" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ********" \
-d '{
"product_id": "6980decb71cad8f61bf5b1f1",
"parameters": {
"action": "query_agriculture_data",
"country_or_region": "example_country_or_region",
"agriculture_topic": "all",
"time_period": "latest",
"include_rural_context": true,
"include_regional_comparison": true,
"include_trends": true
}
}'import requests
import json
url = "https://api.agentpmt.com/products/purchase"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer ********"
}
data = {
"product_id": "6980decb71cad8f61bf5b1f1",
"parameters": {
"action": "query_agriculture_data",
"country_or_region": "example_country_or_region",
"agriculture_topic": "all",
"time_period": "latest",
"include_rural_context": true,
"include_regional_comparison": true,
"include_trends": true
}
}
response = requests.post(url, headers=headers, json=data)
print(response.status_code)
print(response.json())const url = "https://api.agentpmt.com/products/purchase";
const headers = {
"Content-Type": "application/json",
"Authorization": "Bearer ********"
};
const data = {
product_id: "6980decb71cad8f61bf5b1f1",
parameters: {
"action": "query_agriculture_data",
"country_or_region": "example_country_or_region",
"agriculture_topic": "all",
"time_period": "latest",
"include_rural_context": true,
"include_regional_comparison": true,
"include_trends": true
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));const axios = require('axios');
const url = "https://api.agentpmt.com/products/purchase";
const headers = {
"Content-Type": "application/json",
"Authorization": "Bearer ********"
};
const data = {
product_id: "6980decb71cad8f61bf5b1f1",
parameters: {
"action": "query_agriculture_data",
"country_or_region": "example_country_or_region",
"agriculture_topic": "all",
"time_period": "latest",
"include_rural_context": true,
"include_regional_comparison": true,
"include_trends": true
}
};
axios.post(url, data, { headers })
.then(response => {
console.log(response.status);
console.log(response.data);
})
.catch(error => {
console.error("Error:", error.message);
});Login to view your API and budget keys. The example above uses placeholder values. Sign in to see personalized code with your bearer token.
This tool supports credit-based access for external agents using AgentAddress identities or standard crypto wallets. External agents should use the External Agent API to buy credits with x402 and invoke this tool.
1. Buy Credits
Purchase credits via x402 payment (500 credit minimum, 100 credits = $1).
# Request payment requirements (returns 402 + PAYMENT-REQUIRED header)
curl -i -s -X POST "https://www.agentpmt.com/api/external/credits/purchase" \
-H "Content-Type: application/json" \
-d '{ "wallet_address":"0xYOUR_WALLET", "credits": 500, "payment_method":"x402" }'
# Sign the EIP-3009 authorization, then retry with signature header
curl -s -X POST "https://www.agentpmt.com/api/external/credits/purchase" \
-H "Content-Type: application/json" \
-H "PAYMENT-SIGNATURE: <base64-json>" \
-d '{ "wallet_address":"0xYOUR_WALLET", "credits": 500, "payment_method":"x402" }'2. Create a Session Nonce (nonce used in signed balance/invoke)
curl -s -X POST "https://www.agentpmt.com/api/external/auth/session" \
-H "Content-Type: application/json" \
-d '{ "wallet_address":"0xYOUR_WALLET" }'3. Invoke This Tool
Sign the message with your wallet (EIP-191 personal-sign), then POST to the invoke endpoint.
# Sign this message (wallet MUST be lowercased):
# agentpmt-external
# wallet:0xyourwallet...
# session:<session_nonce>
# request:<request_id>
# method:POST
# path:/external/tools/agriculture-food-security/actions/<actionSlug>/invoke
# payload:<sha256(canonical_json(parameters))>
curl -s -X POST "https://www.agentpmt.com/api/external/tools/agriculture-food-security/actions/<actionSlug>/invoke" \
-H "Content-Type: application/json" \
-d '{
"wallet_address": "0xYOUR_WALLET",
"session_nonce": "<session_nonce>",
"request_id": "invoke-uuid",
"signature": "0x<signature>",
"parameters": {
"your_param": "value"
}
}'Usage Instructions
Usage guidance provided directly by the developer for this product.
Agriculture & Food Security Data
Access comprehensive agricultural statistics and food security indicators from the World Bank's World Development Indicators database through a natural language interface.
Overview
This tool provides natural language access to World Bank agricultural data covering crop production, food security, land use, productivity metrics, and economic context. It supports 200+ countries and regional aggregations, with built-in trend analysis, regional comparisons, and SDG 2 (Zero Hunger) alignment tracking.
Data is sourced from the World Bank World Development Indicators and FAO databases.
Actions
query_agriculture_data
Query agricultural and food security indicators for any country or region.
Required Parameters
- action (string): Must be
"query_agriculture_data" - country_or_region (string): Country or region name in plain language
- Country names:
"India","Brazil","Kenya","United States" - Regions:
"Sub-Saharan Africa","Latin America","South Asia","East Asia","Middle East" - Global:
"World"or"Global" - Income groups:
"Low Income","Lower Middle Income","Upper Middle Income","High Income" - ISO3 codes also accepted:
"USA","IND","KEN"
- Country names:
Optional Parameters
-
agriculture_topic (string, default:
"all"): Topic filter for indicators"production"- Cereal yield, crop production index, livestock production index, food production index"food_security"- Undernourishment prevalence, food deficit, food production index, cereal import dependency"malnutrition"- Undernourishment prevalence, food deficit (caloric deficits)"land_use"- Agricultural land, arable land, arable land per person, forest area, irrigated land"productivity"- Cereal yield, fertilizer consumption, agricultural machinery, agriculture value added growth"all"- All available agricultural indicators (20 indicators)
-
time_period (string, default:
"latest"): Time period for data retrieval"latest"- Most recent available data point"last_5_years"- Last 5 years of data"last_10_years"- Last 10 years of data"YYYY:YYYY"- Specific year range (e.g.,"2015:2020"), years must be between 1960 and current year"YYYY"- Single specific year (e.g.,"2020")
-
include_rural_context (boolean, default:
true): Include rural population percentage and agricultural employment data for additional context -
include_regional_comparison (boolean, default:
true): Include comparison data from World, Sub-Saharan Africa, South Asia, Latin America & Caribbean, East Asia & Pacific, and Middle East & North Africa -
include_trends (boolean, default:
true): Include trend analysis with absolute and percentage change, direction assessment (improving/worsening/stable), when historical data is available
Example: Latest data for a country
{
"action": "query_agriculture_data",
"country_or_region": "India",
"agriculture_topic": "all",
"time_period": "latest"
}
Example: Food security trends over time
{
"action": "query_agriculture_data",
"country_or_region": "Kenya",
"agriculture_topic": "food_security",
"time_period": "last_10_years",
"include_trends": true
}
Example: Regional productivity analysis
{
"action": "query_agriculture_data",
"country_or_region": "Sub-Saharan Africa",
"agriculture_topic": "productivity",
"time_period": "last_5_years"
}
Example: Land use with minimal extras
{
"action": "query_agriculture_data",
"country_or_region": "Brazil",
"agriculture_topic": "land_use",
"time_period": "2010:2020",
"include_rural_context": false,
"include_regional_comparison": false
}
Example: Malnutrition data for income group
{
"action": "query_agriculture_data",
"country_or_region": "Low Income",
"agriculture_topic": "malnutrition",
"time_period": "latest"
}
Response Structure
Responses include:
- data: Indicator values with human-readable names, latest values, years, units, country name, and source attribution
- productivity_metrics: Derived metrics including cereal productivity assessment (Low/Moderate/Good/High with recommendations), agricultural efficiency ratio (GDP share vs employment share), and land productivity context
- rural_context: Rural population percentage and agricultural employment share (when
include_rural_contextis true) - trends: For each indicator with historical data: oldest/newest values and years, absolute and percentage change, direction (improving/worsening/stable), and data point count
- regional_comparison: Comparison values from 6 major regions (when
include_regional_comparisonis true) - insights: Human-readable analytical insights based on data values, trends, and regional comparisons
- sdg_alignment: SDG 2 Zero Hunger alignment information
- data_notes: Context notes about methodology and data quality
Key Indicators Reference
| Indicator | Unit | Description |
|---|---|---|
| cereal_yield | kg per hectare | Cereal productivity (global avg ~4,000) |
| crop_production_index | index (2014-2016=100) | Overall crop production level |
| livestock_production_index | index (2014-2016=100) | Livestock production level |
| agricultural_land | % of land area | Land used for agriculture |
| arable_land | % of land area | Land suitable for crops |
| arable_land_per_person | hectares per person | Per capita arable land |
| forest_area | % of land area | Forest coverage |
| irrigated_land | % of agricultural land | Irrigated portion of farmland |
| undernourishment_prevalence | % of population | Population unable to acquire enough food |
| food_production_index | index (2014-2016=100) | Overall food production level |
| food_deficit | kcal/person/day | Depth of caloric food deficit |
| fertilizer_consumption | kg/ha of arable land | Fertilizer use intensity |
| agricultural_machinery | number of tractors | Mechanization level |
| agricultural_methane | % of total emissions | Agriculture's methane contribution |
| agriculture_value_added | % of GDP | Agriculture's share of economy |
| agriculture_value_added_growth | annual % growth | Agriculture GDP growth rate |
| employment_agriculture | % of total employment | Agricultural workforce share |
| rural_population | % of total population | Rural population share |
| cereal_import_dependency | % | Reliance on cereal imports |
Productivity Assessments
Cereal yield classifications used in productivity_metrics:
- Low productivity: Below 2,000 kg/ha - significant improvement potential
- Moderate productivity: 2,000-4,000 kg/ha - room for improvement
- Good productivity: 4,000-6,000 kg/ha - above average
- High productivity: Above 6,000 kg/ha - excellent yields
Workflows
- Country Agricultural Profile: Query with
agriculture_topic: "all"andtime_period: "latest"to get a comprehensive snapshot of a country's agricultural sector - Food Security Monitoring: Query
agriculture_topic: "food_security"withtime_period: "last_10_years"andinclude_trends: trueto track food security progress - Cross-Country Comparison: Run separate queries for multiple countries with
include_regional_comparison: trueto compare against regional benchmarks - Productivity Gap Analysis: Query
agriculture_topic: "productivity"to get yield assessments and efficiency ratios with recommendations
Notes
- Data sourced from World Bank World Development Indicators and FAO
- Most recent data is typically 1-3 years behind current year due to collection/processing delays
- Data availability varies by country and indicator; some countries may have gaps
- Production indices use 2014-2016 as the base period (value of 100)
- Cereal yield is based on harvested area, not planted area
- Undernourishment is based on minimum dietary energy requirements
- When a country name is not recognized, a descriptive error is returned with guidance
- If no country_or_region is provided, returns an error requesting the parameter
- The tool supports partial name matching for country lookups (e.g., "korea" matches "south korea")
- Trend direction for undernourishment and food deficit is inverted (decrease = improving)
- Regional comparison fetches the top 5 key indicators (not all) for performance reasons
Pricing
$0.05 per request





