Get World Bank Country
worldbank_get_countryFetch metadata for one country or aggregate entity: ISO codes, region, income level, lending type, capital, and coordinates. Accepts an ISO2 code (US, DE), an ISO3 code (USA, DEU), or a World Bank aggregate code (EAS, HIC, WLD); "all" and lists of codes are rejected. Use worldbank_list_countries to browse valid codes.
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_code": "<country_code>"
},
"name": "worldbank_get_country"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country_code | Yes | One country code. Accepts ISO2 (US), ISO3 (USA), or aggregate code (EAS, HIC, WLD) — not "all" or a list of codes. Use worldbank_list_countries to browse valid codes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Country or aggregate ID. | |
| iso2 | No | ISO2 country code. | |
| name | No | Country or aggregate name. | |
| error | No | Present when the call failed. Absent on success. | |
| region | No | World Bank region this country belongs to. | |
| latitude | No | Capital latitude (empty for aggregates). | |
| longitude | No | Capital longitude (empty for aggregates). | |
| capitalCity | No | Capital city name (empty for aggregates). | |
| incomeLevel | No | World Bank income classification. | |
| isAggregate | No | True when this entry is a regional or income-group aggregate. | |
| lendingType | No | World Bank lending type classification. |