search_locations
Search for cities, regions, and provinces within a country by keyword. Returns location codes for filtering business searches.
Instructions
Search cities, regions, and provinces within a country by one or more keywords.
Each keyword triggers a separate API call; results are merged and deduplicated. Returns matching location codes for use in search_businesses filters (city_codes, region_codes, province_codes). Always use this instead of fetching full location lists.
Args: keywords: One or more search terms (e.g. ["Munich"], ["Bavaria", "Bayern", "Munich"]). country_code: ISO 3166-1 alpha-2 country code (e.g. "DE", "GB"). language_code: Display language for results (e.g. "en", "de", "fr").
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": {
"keywords": "<keywords>",
"country_code": "<country_code>"
},
"name": "search_locations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | ||
| country_code | Yes | ||
| language_code | No | en |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |