Search cities
search_citiesFind the city id (locationId) a Google SERP or Shopping tracked query can be created in. Returns the cities of the country whose name contains search, ignoring accents and case, best matches first: an exact name, then names starting with the text, then the rest. A city is found by its Spanish name where it has one ("Sevilla") and by Google's English one ("Seville"). Pass a city's id as locationId to create_tracked_queries, with the same country. Without search, lists the country's cities by name. Only the best limit matches are returned; narrow the text to reach others. Static reference; no project data.
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": {
"organizationId": "<organizationId>",
"country": "<country>"
},
"name": "search_cities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| search | No | Text the city's Spanish or English name contains, ignoring accents and case | |
| country | Yes | ISO-3166 alpha-2 country code of the cities, the country of the queries to create | |
| organizationId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes |