Skip to main content
Glama

Verithic · official data by municipality

Compare two municipalities · Comparar dos municipios

comparar_municipios
Read-onlyIdempotent

Puts two municipalities side by side on what weighs most when choosing: price per m², property tax (IBI), rent, driving and public transport minutes to Barcelona, beach, rent-cap zone, tourist flats and how satisfied residents are. Returns each figure with its source and the difference when both sources publish it. For small municipalities the resident figure is their county average and is labelled as such. Also answers for the Costa Blanca (zone "costa-blanca", published): price per m² (Notariado), rent declared to the tax office (SERPAVI), property tax (IBI) rate, residents from abroad (INE), holiday lets per 100 residents and minutes by car, with no real-time traffic, to Alicante (Luceros), Alicante-Elche Airport, the beach and the hospital; public transport minutes, where there is a service, on each town's page. — Pone dos municipios lado a lado en lo que más pesa al elegir: precio €/m², IBI, alquiler, minutos a Barcelona en coche y en transporte público, playa, zona tensionada, viviendas turísticas y satisfacción de los vecinos. Devuelve la cifra de cada uno con su fuente y la diferencia cuando las dos fuentes publican el dato. En municipios pequeños la cifra de vecinos es la media de su comarca y así se rotula. También responde para la Costa Blanca (zona "costa-blanca", publicada): precio €/m² (Notariado), alquiler declarado a Hacienda (SERPAVI), tipo del IBI, vecinos de otro país (INE), pisos turísticos por cada 100 vecinos y minutos en coche, sin tráfico en tiempo real, a Alicante (Luceros), al aeropuerto de Alicante-Elche, a la playa y al hospital; los minutos en transporte público, donde hay servicio, en la ficha de cada población.

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": {
      "municipio_a": "<municipio_a>",
      "municipio_b": "<municipio_b>"
    },
    "name": "comparar_municipios"
  }
}

Input Schema

NameRequiredDescriptionDefault
languageNoResponse language: "es" (default) or "en". Idioma de la respuesta.es
municipio_aYesFirst municipality, name or slug. Primer municipio.
municipio_bYesSecond municipality, name or slug. Segundo municipio.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, yet the description still adds real behavioral value: each figure is returned with its source, differences appear only when both sources publish, small municipalities fall back to the county average and are labelled, and driving minutes exclude real-time traffic. Not covered: what happens when a municipality name is ambiguous or unknown.

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

Conciseness3/5

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

The opening sentence front-loads the core purpose well, but the Costa Blanca passage is a dense run-on listing metrics, sources and caveats in one breath. The bilingual duplication roughly doubles length; useful for a bilingual audience but it dilutes scannability considerably.

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?

With no output schema, the description does the heavy lifting of explaining what comes back (figures, sources, differences, labelled proxies) and how the Costa Blanca variant differs. It is close to complete for a two-input comparison tool, with only error/edge-case behavior left unstated.

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%, so municipio_a, municipio_b and language are already documented. The description hints that a zone identifier such as "costa-blanca" can be used as an input, which is useful beyond the schema, but it never states this explicitly as a parameter value, leaving the agent to guess where it belongs.

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?

The description states a specific verb and resource — putting two municipalities side by side — and enumerates the exact dimensions compared (price per m², IBI, rent, commute minutes, beach, rent-cap zone, tourist flats, resident satisfaction). That is clearly distinguishable from single-entity siblings like ficha_municipio, though no sibling is named as an alternative.

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

Usage Guidelines3/5

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

Usage is only implied through the list of covered metrics; there is no explicit "use this when…" or "do not use this for…" routing versus ficha_municipio, municipios_similares or comparar_anuncio. The note that the tool also answers for the Costa Blanca zone adds context, but the agent must infer when that zone applies.

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