Skip to main content
Glama

Municipios y comarcas de una provincia

listar_municipios
Read-onlyIdempotent

Municipios con subastas de una provincia (el nombre es el valor exacto del filtro municipio) y sus comarcas (slug para el filtro comarca). Con q, busca un lugar escrito libremente (municipio, pedanía o comarca, admite erratas) entre todos los de la provincia y devuelve hasta 5 resultados; unica=1 si hay uno claro. No consume cuota.

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": {
      "provincia": "<provincia>"
    },
    "name": "listar_municipios"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoLugar a buscar (por ejemplo "Valldoreix" o "Sant Cugat").
provinciaYesSlug o nombre de la provincia.

Output Schema

NameRequiredDescriptionDefault
errorNoCódigo de error del API, si la llamada falla.
unicaNo
messageNo
_limitesNoCupos y rate limit restantes tras la llamada.
comarcasNo
provinciaNo
municipiosNo
resultadosNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive behavior, and the description adds real value on top: typo tolerance on q, a cap of 5 results, and a flag for a single clear match. It also discloses that the call does not consume quota, a behavioral detail annotations cannot express. The mention of 'unica=1' refers to something not present in the input schema, which slightly muddies the behavioral picture.

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?

A single dense sentence that front-loads the main behavior (municipios and comarcas for a province) before explaining q. Nothing is truly wasted, though the heavy use of nested parentheses makes it harder to parse than it needs to be.

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

Completeness4/5

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

An output schema exists, so return values need not be explained, and the description still covers the important ones (up to 5 results, single-match flag). Combined with full schema coverage and rich annotations, an agent has enough to call it correctly; the unexplained 'unica' reference is the main loose end.

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 coverage is 100%, so both parameters are already documented and the baseline is 3. The description does add meaning for q (free-text, typo-tolerant, returns up to 5) and clarifies that returned municipio names are exact filter values. However, it references a 'unica' parameter that does not exist in the schema, which creates confusion about the actual parameter set.

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

Purpose4/5

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

States a specific resource (municipios and comarcas of a province) and, importantly, what the returned values are for (the exact value of the municipio filter, the slug for the comarca filter). It does not explicitly distinguish itself from siblings such as listar_provincias or opciones_filtros, so it stops short of a 5.

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?

Explains the two operating modes clearly: without q it lists municipios and their comarcas for the given provincia, with q it performs a free-text lookup across all places in that province. It also notes the quota implication ('No consume cuota'), which helps an agent decide when to call it. It stops short of naming an alternative tool or stating exclusions.

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.