search_locations
Find cities and towns by partial name or postcode to get coordinates, region, and country data for location selection in weather applications.
Instructions
Search for cities and towns by partial name or postcode. Returns an array of matching locations with their coordinates, region, country, and URL slug. Useful for building location pickers or resolving ambiguous place names.
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": {
"q": "<q>"
},
"name": "search_locations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Partial city name, postcode, or coordinates to search. E.g. 'lond', 'SW1', 'paris'. |