Search places filtered by country code
search_places_by_countrySearch cities and towns restricted to a specific 2-letter ISO country code, with optional minimum population threshold and sorting by population or elevation.
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": {
"query": "<query>",
"country_code": "<country_code>"
},
"name": "search_places_by_country"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results to return (default 10). | |
| query | Yes | Place name or prefix to search (e.g. "San", "New", "Frankfurt"). | |
| sort_by | No | Sort order: "population" (default) or "elevation". | |
| country_code | Yes | 2-letter ISO-3166-1 alpha-2 country code (e.g. "US", "DE", "JP"). | |
| min_population | No | Optional minimum population filter. |