Search countries
search_countriesList countries by part of a name or capital, by continent, or landlocked only. Returns names, codes and capitals; call get_country for the full facts.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_countries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | The most countries to return. | |
| query | No | Part of a country or capital name. | |
| locale | No | Language for names, capitals and links. | en |
| region | No | Limit to one continent. | |
| landlocked | No | Only countries without a coastline. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | All matches, also those past the limit. | |
| countries | Yes | The matches, by name, up to the limit. |