Get Country
get_countryGet country information by name or ISO code (e.g., 'US', 'FR'). Returns capital, population, currency, languages, and neighboring countries. Use for regional context or facts.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code_or_name": "US"
},
"name": "get_country"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code_or_name | Yes | Country name or ISO 3166-1 alpha-2/alpha-3 code |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Common country name | |
| codes | Yes | ISO country codes | |
| region | Yes | Geographic region | |
| capital | Yes | Capital city or 'N/A' | |
| area_km2 | Yes | Land area in square kilometers | |
| languages | Yes | List of official languages | |
| subregion | Yes | Geographic subregion | |
| timezones | Yes | List of timezones used in country | |
| currencies | Yes | List of currencies with symbols | |
| population | Yes | Total population | |
| official_name | Yes | Official country name |