Compare countries on an IMF indicator
compare_countriesCompare 2 to 15 economies side-by-side on any IMF DataMapper macroeconomic indicator across a single year or year range, ranked descending by latest value.
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 | Optional single year to compare (overrides start_year/end_year). | |
| end_year | No | End year if comparing a range. Default 2027. | |
| countries | Yes | Array of 2 to 15 ISO-3 country codes (e.g. ["USA", "CHN", "DEU", "JPN", "IND"]). | |
| indicator | Yes | IMF indicator code (e.g. "NGDP_RPCH", "PCPIPCH", "GGXWDG_NGDP"). | |
| start_year | No | Start year if comparing a range. Default 2023. |