Country Indicator
country_indicatorRetrieve recent macroeconomic indicators for any country from World Bank data by specifying a country and indicator key, such as GDP or inflation.
Instructions
Get a macroeconomic indicator for a country over recent years (World Bank). Indicators: gdp, gdp_per_capita, gdp_growth, inflation, unemployment, population, life_expectancy, exports, imports, govt_debt_pct_gdp, real_interest_rate, fdi, co2_per_capita, internet_users. Country accepts an ISO code (US, DE, JP) or a World Bank country code. You may also pass a raw World Bank indicator code.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"country": "<country>",
"indicator": "<indicator>"
},
"name": "country_indicator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | No | How many of the most recent years to return. | |
| country | Yes | Country as an ISO code or name, e.g. JP, JPN, or Japan. | |
| indicator | Yes | World Bank indicator key: gdp, gdp_per_capita, gdp_growth, inflation, population, unemployment, life_expectancy, exports, imports, govt_debt_pct_gdp, real_interest_rate, fdi, co2_per_capita, internet_users. Call list_indicators for the full set. Raw World Bank codes are also accepted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| series | No | ||
| source | No | ||
| country | No | ||
| indicator | No | ||
| provenance | No | Where this answer came from. served_at is when Datakoot answered (UTC); upstream lists the official sources consulted. Datakoot may serve a briefly cached copy, so the source's own observation can be older than served_at. |