Move tracked queries to a city
set_tracked_query_locationMove up to 100 Google SERP or Google Shopping tracked queries to a city (locationId from search_cities), each within its own country, or back to country level with locationId null. AI queries are country level only. Each query keeps its history; checks after the move read the new location. A move into a location where the project already tracks the same text and engine is refused for that query with "tracked_query_already_exists" in "failed", and the query stays where it is; a query of another country than the city's fails with "city_not_in_country". Safe to retry.
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>",
"projectId": "<projectId>",
"trackedQueryIds": "<trackedQueryIds>",
"locationId": "<locationId>"
},
"name": "set_tracked_query_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | ||
| locationId | Yes | Google city id from search_cities, or null for country level. | |
| organizationId | Yes | ||
| trackedQueryIds | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| failed | No | Always present, empty list included: read it rather than inferring success from the status code. | |
| successful | No | The resources the operation was applied to. |