Skip to main content
Glama

Mencoro

Search cities

search_cities
Read-onlyIdempotent

Find 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

NameRequiredDescriptionDefault
limitNo
searchNoText the city's Spanish or English name contains, ignoring accents and case
countryYesISO-3166 alpha-2 country code of the cities, the country of the queries to create
organizationIdYes

Output Schema

NameRequiredDescriptionDefault
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world; the description adds real behavioral context beyond them: match ranking (exact, then prefix, then rest), accent/case insensitivity, Spanish-vs-English naming, limit truncation, and that it is static reference data with no project data.

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

Conciseness4/5

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

Purpose and the locationId handoff are front-loaded, and the Sevilla/Seville example earns its space by clarifying the matching rule. It is dense but slightly long, and the phrase 'with the same country' is a touch compressed for the constraint it encodes.

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 4-parameter lookup tool with an output schema present, everything an agent needs is covered: how to search, how to page around the limit, what country value means, and where the result goes. Return formatting can safely be left to the output schema.

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 50%, so the description must compensate and largely does: it defines search matching rules, the Spanish/English name duality, the country constraint ('the same country'), and limit semantics ('Only the best limit matches are returned'). organizationId remains unexplained in both schema and description, which keeps it below a 5.

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 concrete verb and resource ('Find the city id (locationId)') plus the downstream purpose (creating a Google SERP or Shopping tracked query). It is immediately distinguishable from siblings like search_tracked_queries or create_tracked_queries, which are named as consumers.

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

Usage Guidelines5/5

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

Explicitly says to pass the returned id as locationId to create_tracked_queries 'with the same country', and explains the fallback mode: 'Without search, lists the country's cities by name.' It also gives a remedy when results are truncated ('narrow the text to reach others').

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.