Skip to main content
Glama

Verithic · official data by municipality

List all municipalities with chosen fields · Todas las poblaciones con los campos que pidas

listar_municipios
Read-onlyIdempotent

Returns every published municipality (no cap) with exactly the fields you ask for, optionally filtered by min/max on any numeric field, by county, and sorted. One call answers questions such as “which is the cheapest town within 35 minutes of Barcelona?”. Each value carries source, period and read date; a missing value is null with its reason, and towns with no value in a filtered field are listed apart, never estimated. Call it without fields to get the default fields and the list of available field keys. 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. — Devuelve todas las poblaciones publicadas (sin tope) con los campos que pidas, con filtros mínimo/máximo sobre cualquier campo numérico, por comarca y ordenadas. Una sola llamada responde a «¿cuál es la población más barata a menos de 35 minutos de Barcelona?». Cada valor lleva fuente, periodo y fecha de lectura; lo que falta sale a null con su motivo, y las poblaciones sin valor en un campo filtrado se listan aparte, nunca se estiman. Sin campos devuelve los de por defecto y la lista de campos disponibles. 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "listar_municipios"
  }
}

Input Schema

NameRequiredDescriptionDefault
zonaNoZone: bcn (default, published) or madrid (published: Madrid, every figure with source and date, missing values null with their reason) or costa-blanca (published: Costa Blanca, every figure with source and date, missing values null with their reason). Zona.bcn
ordenNoSort order. Orden.asc
camposNoField keys to return, e.g. precio_m2_vivienda_usada_eur, minutos_coche_barcelona, viviendas_vacias_pct (Barcelona and Madrid); in Madrid also paro_registrado_media, afiliados_ss_residencia, estudios_superiores_pct, densidad_hab_km2, vecinos_0_14_pct, vecinos_65_mas_pct. Default: price per m², rent, driving minutes, centre-to-centre public transport minutes, IBI. Claves de los campos.
limiteNoOptional cap on rows; by default all matching towns are returned. Tope opcional; por defecto, todas.
comarcaNoCounty (optional). Comarca (opcional).
filtrosNoNumeric filters; all must hold. Filtros numéricos; todos a la vez.
languageNoResponse language: "es" (default) or "en". Idioma de la respuesta.es
ordenar_porNoField key to sort by. Clave del campo para ordenar.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / zona / description
      Previous value: -"Zone: bcn (default, published) or madrid (published: Madrid, every figure with source and date, missing values null with their reason). Zona."New value: +"Zone: bcn (default, published) or madrid (published: Madrid, every figure with source and date, missing values null with their reason) or costa-blanca (published: Costa Blanca, every figure with source and date, missing values null with their reason). Zona."
    • changedInput schema / properties / zona / enum
      Previous value: -[
      -  "bcn",
      -  "madrid"
      -]New value: +[
      +  "bcn",
      +  "costa-blanca",
      +  "madrid"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / campos / description
      Previous value: -"Field keys to return, e.g. precio_m2_vivienda_usada_eur, minutos_coche_barcelona, viviendas_vacias_pct (Barcelona and Madrid). Default: price per m², rent, driving minutes, centre-to-centre public transport minutes, IBI. Claves de los campos."New value: +"Field keys to return, e.g. precio_m2_vivienda_usada_eur, minutos_coche_barcelona, viviendas_vacias_pct (Barcelona and Madrid); in Madrid also paro_registrado_media, afiliados_ss_residencia, estudios_superiores_pct, densidad_hab_km2, vecinos_0_14_pct, vecinos_65_mas_pct. Default: price per m², rent, driving minutes, centre-to-centre public transport minutes, IBI. Claves de los campos."
  3. Changed1 schema field changed
    • changedInput schema / properties / campos / description
      Previous value: -"Field keys to return, e.g. precio_m2_vivienda_usada_eur, minutos_coche_barcelona. Default: price per m², rent, driving minutes, centre-to-centre public transport minutes, IBI. Claves de los campos."New value: +"Field keys to return, e.g. precio_m2_vivienda_usada_eur, minutos_coche_barcelona, viviendas_vacias_pct (Barcelona and Madrid). Default: price per m², rent, driving minutes, centre-to-centre public transport minutes, IBI. Claves de los campos."
  4. Changed1 schema field changed
    • changedInput schema / properties / campos / description
      Previous value: -"Field keys to return, e.g. precio_m2_vivienda_usada_eur, minutos_coche_barcelona. Default: price per m², rent, driving minutes, door-to-door public transport minutes, IBI. Claves de los campos."New value: +"Field keys to return, e.g. precio_m2_vivienda_usada_eur, minutos_coche_barcelona. Default: price per m², rent, driving minutes, centre-to-centre public transport minutes, IBI. Claves de los campos."
  5. Changed1 schema field changed
    • changedInput schema / properties / zona / description
      Previous value: -"Zone: bcn (default, published) or madrid (in preparation: only what the repository has read, every figure with source and date, missing values null with their reason). Zona."New value: +"Zone: bcn (default, published) or madrid (published: Madrid, every figure with source and date, missing values null with their reason). Zona."
  6. Changed1 schema field changed
    • addedInput schema / properties / zona
      Added value: +{
      +  "default": "bcn",
      +  "description": "Zone: bcn (default, published) or madrid (in preparation: only what the repository has read, every figure with source and date, missing values null with their reason). Zona.",
      +  "enum": [
      +    "bcn",
      +    "madrid"
      +  ],
      +  "type": "string"
      +}
  7. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, it discloses that results are uncapped by default, that every value carries source, period and read date, that missing values are null with a reason, and that towns lacking a filtered field are listed apart and 'never estimated'. It also flags that driving minutes carry no real-time traffic and that public transport minutes exist only where there is service — exactly the caveats an agent would otherwise get wrong.

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 first sentence is front-loaded and each English claim is meaningful, but the entire text is then repeated verbatim in Spanish, roughly doubling length without adding information. The Costa Blanca enumeration is also dense and could be compressed.

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 8 optional parameters and no output schema, the description carries the return-shape burden itself and does so: it describes per-value provenance, null handling, separated no-value rows and the uncapped default. An agent has everything needed to call it correctly and interpret the result.

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 100%, so the baseline is 3; the description earns more by explaining that an empty campos call returns the default field set plus the list of available field keys, and by enumerating which metrics apply per zone (Costa Blanca vs Barcelona/Madrid). It does not document the filter or ordering parameters beyond what the schema already states.

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?

"Returns every published municipality (no cap) with exactly the fields you ask for" gives a concrete verb, resource and scope, and the 'no cap' framing implicitly separates it from paged search siblings such as buscar_municipios. It never names an alternative explicitly, so the differentiation is inferred rather than stated.

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?

It supplies a concrete usage pattern — 'One call answers questions such as which is the cheapest town within 35 minutes of Barcelona' — and instructs 'Call it without fields to get the default fields and the list of available field keys', which is a real workflow cue. There is no explicit when-not-to-use or pointer to a specific sibling, keeping it below a 5.

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