Resolve a country name to its ISO-2 code
country_codeResolve a country name (or an existing ISO 3166-1 alpha-2 code) to its uppercase ISO 3166-1 alpha-2 code — e.g. "Kenya" → "KE". Useful before calling check_visa. Returns an error if the name can't be resolved.
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": {
"name": "<name>"
},
"name": "country_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A country name or ISO-2 code, e.g. "Kenya" or "KE". |