Compare Countries
compare_countriesCompare one indicator across several countries (latest available value each). Good for ranking or benchmarking economies.
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": {
"countries": "<countries>",
"indicator": "<indicator>"
},
"name": "compare_countries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| countries | Yes | Array of country codes or names to compare, e.g. ["US", "DE", "JP"]. | |
| 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 | ||
| source | No | ||
| ranking | 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. |