Get Country By Code
get_country_by_codeGet country details by ISO code (e.g., "US" for United States or "FRA" for France). Returns capital, population, languages, currencies, area, and region.
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": "US"
},
"name": "get_country_by_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ISO 3166-1 alpha-2 or alpha-3 country code |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | Yes | Flag emoji or empty string | |
| name | Yes | Common country name | |
| codes | Yes | ||
| region | Yes | Geographic region | |
| capital | Yes | Capital city or N/A if not available | |
| area_km2 | Yes | Total area in square kilometers | |
| languages | Yes | Languages spoken in the country | |
| subregion | Yes | Subregion name, empty if not available | |
| currencies | Yes | Currencies used in the country | |
| population | Yes | Total population | |
| official_name | Yes | Official country name |