macro_indicators
Macro indicators by country and year from the World Bank: GDP, GDP growth, GDP per capita, inflation, unemployment, population, debt to GDP, real interest rate, exports, imports, current account, FDI, or any World Bank indicator code. Up to 10 countries per call (ISO2 or ISO3, joined with ;), newest year first. Pairs with fx_rates. Price $0.003 USDC per call via x402. Example output: {"indicator":{"code":"NY.GDP.MKTP.CD","name":"GDP (current US$)"},"series":[{"country":"United States","iso3":"USA","values":[{"year":2025,"value":30769700000000},{"year":2024,"value":29298013000000}]}],"last_updated":"2026-10-08","source":"World Bank Open Data API (CC BY 4.0)"}
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "macro_indicators"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Optional last year | |
| from | No | Optional first year | |
| limit | No | 1 to 60 values per country, default 10 | |
| country | No | ISO2 or ISO3 code, or up to 10 joined with ;, default US | |
| indicator | No | Alias such as gdp or inflation, or a World Bank code like NY.GDP.MKTP.CD |