Skip to main content
Glama

Buscar ciudad (país, coordenadas, zona)

city-lookup
Read-onlyIdempotent

Busca ciudades de 100.000 habitantes o más por nombre (sin importar tildes, con nombres en español para las grandes) con filtro opcional de país, y devuelve país, población, coordenadas, zona horaria IANA e ID de GeoNames. Cuándo: hay que resolver el nombre de una ciudad a su país, coordenadas, población o zona horaria, o distinguir ciudades homónimas. No para: calcular la distancia ortodrómica (city-distance). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Finds cities of 100,000 or more inhabitants by name (accent-insensitive, Spanish exonyms for large cities) with an optional country filter, and returns country, population, coordinates, IANA time zone and GeoNames ID, most populous first, flagging homonyms. [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
nameYesCity name in its usual or Spanish form; a trailing ", country" narrows it (Medellín, Valencia, Venezuela, Nueva York) (string; required; at least 2 chars; up to 100 chars).
limitNoMax results (integer; optional; default 5; min 1; max 20).
countryNoOptional country (ISO code or name) to tell apart cities with the same name (string; optional; at least 1 chars; up to 80 chars).

Output Schema

NameRequiredDescriptionDefault
countNo
sourceNo
resultsNo
ambiguousNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / name / examples
      Added value: +[
      +  "Medellín"
      +]
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the 'solo lectura, sin red, sin estado guardado' line largely restates them. However, the description adds genuinely new operational context: the 100k population floor, accent-insensitive matching, Spanish exonyms, most-populous-first ordering, and concrete limits (64 KB input, 1 s/call, 1 MB result). A contradiction check finds nothing — 'sin red' is consistent with openWorldHint=false.

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?

Well structured with labeled sections (Cuándo / No para / Efectos / Límites) and front-loaded purpose. The bilingual duplication and the repeated return-field list across the description and inputSchema.description are mild redundancy, but every block carries actionable 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?

With an output schema present, annotations covering the safety profile, and 100% parameter coverage in the schema, the description fills the remaining gaps (matching behavior, ordering, homonym handling, limits). Nothing needed to invoke this tool correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100% and the schema already spells out the 'name, country' trailing-comma disambiguation trick, the limit default/bounds, and that country accepts ISO code or name. The description adds only the accent-insensitivity and Spanish-exonym note, so it sits at the baseline where the schema does the heavy lifting.

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?

A specific verb plus resource (look up cities ≥100k inhabitants by name) with the exact return fields enumerated (country, population, coordinates, IANA zone, GeoNames ID) and homonym flagging. This is clearly distinct from siblings like city-distance and city-local-time, which the description explicitly separates.

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?

The 'Cuándo' block names the exact triggering conditions (resolving a city name to country/coords/population/time zone, disambiguating homonyms), and the 'No para' block routes the agent away to city-distance for great-circle distance. When-to-use, when-not, and the alternative are all explicit.

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.

Resources