Worldbank Get Indicator
worldbank_get_indicatorGet World Bank time-series data, economic, social, and development statistics, for ANY country worldwide (Spain, Brazil, Germany, Nigeria, Japan, etc.). PREFER for "unemployment rate in ", " inflation rate", "GDP of ", " population / life expectancy / poverty rate / CO2 emissions", "what share of GDP comes from agriculture in " / "agriculture's share of GDP". Pass the ISO country code + a World Bank indicator code; common ones: GDP=NY.GDP.MKTP.CD, GDP per capita=NY.GDP.PCAP.CD, inflation=FP.CPI.TOTL.ZG, unemployment=SL.UEM.TOTL.ZS, population=SP.POP.TOTL, life expectancy=SP.DYN.LE00.IN, poverty rate=SI.POV.DDAY, literacy=SE.ADT.LITR.ZS, agriculture value added (% of GDP)=NV.AGR.TOTL.ZS. For CO2 use the dedicated country_co2_emissions tool (the old EN.ATM.CO2E.* codes were DELETED by the World Bank; the live series is EN.GHG.CO2.MT.CE.AR5). For governance/corruption/rule-of-law/political-stability use the dedicated get_governance_indicators tool (Worldwide Governance Indicators, codes like GOV_WGI_CC.EST). Several countries over time in one call ("cereal yield in Brazil, Argentina and the US over the past decade", "inflation in Spain vs Italy since 2015"): pass up to 8 codes separated by ";", each country comes back as its own series. Agriculture: cereal yield (kg per hectare)=AG.YLD.CREL.KG. (Annual data, a national statistics office may have fresher monthly figures.)
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"indicator": "NY.GDP.MKTP.CD",
"country_code": "CN"
},
"name": "worldbank_get_indicator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indicator | Yes | World Bank indicator code (e.g., "NY.GDP.MKTP.CD", "SP.POP.TOTL") | |
| date_range | No | Year range in format "start:end" (default: 2015:2024). Example: "2000:2023" | |
| country_code | Yes | ISO country code (e.g., "US", "GBR", "CN"). For a multi-country comparison over time pass up to 8 codes separated by ";" (e.g., "US;BR;AR"), one series per country. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Time-series data points sorted by year descending | |
| country | Yes | Country name or code | |
| country_id | Yes | World Bank country ID | |
| date_range | Yes | Requested date range in start:end format | |
| indicator_id | Yes | World Bank indicator code | |
| last_updated | Yes | Last update timestamp from World Bank API | |
| total_records | Yes | Total number of records available | |
| indicator_name | Yes | Full indicator name/description |