Compare countries
compare_countriesReturns one value of one indicator for up to 20 countries or regions: for the given year, or the latest observed value in each country when no year is given. Each value has its own period and chart link; projections are labelled. Codes without data are listed separately.
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": {
"indicator": "<indicator>",
"countries": "<countries>"
},
"name": "compare_countries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Calendar year. Omit for the latest observed value. | |
| countries | Yes | ISO3 codes of the countries or regions to compare. | |
| indicator | Yes | Indicator slug from search_indicators, for example cpi-inflation. |