Skip to main content
Glama

Mencoro

Move tracked queries to a city

set_tracked_query_location
DestructiveIdempotent

Move 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

NameRequiredDescriptionDefault
projectIdYes
locationIdYesGoogle city id from search_cities, or null for country level.
organizationIdYes
trackedQueryIdsYes

Output Schema

NameRequiredDescriptionDefault
failedNoAlways present, empty list included: read it rather than inferring success from the status code.
successfulNoThe resources the operation was applied to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag a destructive, idempotent, non-read mutation, and the description adds substantial context beyond them: history is preserved, subsequent checks use the new location, the operation is safe to retry, and partial-failure behavior is spelled out with the exact 'tracked_query_already_exists' and 'city_not_in_country' codes returned in 'failed'. The retained-history and retry-safe notes usefully temper the destructiveHint rather than contradicting it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the action and scope, then layers prerequisites, behavior, and failure modes in three dense sentences with no filler. Every clause carries callable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive 4-parameter mutation with an output schema, the definition covers scope, prerequisites, side effects on history and future checks, and per-query failure semantics. Nothing an agent needs to invoke it safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 25%, so the description must carry weight, and it does: it defines locationId as a Google city id from search_cities with null meaning country level, and restates the 100-query cap on trackedQueryIds. organizationId and projectId remain unexplained, but they are conventional identifiers.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (move) and resource (tracked queries) with explicit scope: up to 100 queries, to a city or back to country level. It also distinguishes itself from the sibling set_project_default_location_and_move_queries by operating on selected trackedQueryIds rather than project defaults.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear operational guidance: obtain locationId from search_cities, pass null for country level, and note that AI queries cannot be moved to a city. It does not explicitly name an alternative sibling (e.g. set_project_default_location_and_move_queries) for project-wide moves, so the when-not is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.