Compare countries across macro and ESG indicators
wb_compare_countriesCompare 2 to 15 countries or regional aggregates side by side across 1 to 6 World Bank indicators (official codes or friendly aliases like gdp, inflation, unemployment, debt_pct_gdp, co2_per_capita) for either the latest available value or a specific year. Returns both a country matrix and ranked leaderboards per indicator.
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>",
"indicators": "<indicators>"
},
"name": "wb_compare_countries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Optional target year (e.g. 2024). Omit to use the latest non-empty observation per country. | |
| countries | Yes | List of 2 to 15 ISO2/ISO3 codes or country names (e.g. ["US", "DE", "JP"]). | |
| indicators | Yes | List of 1 to 6 World Bank indicator codes or aliases (e.g. ["gdp", "inflation", "co2_per_capita"]). |