Skip to main content
Glama

Verithic · official data by municipality

Ranking by profile · Ranking por perfil

ranking_por_perfil
Read-onlyIdempotent

Orders the municipalities for one profile (family: Family with children; relocation: Moving from abroad; calm: Calm and space) using the five indices by dimension, each with its figures, the profile's weights, the cut-off date and the number of towns. Can be limited to a county. Towns missing a dimension of the profile are listed apart, unranked, with the reason. Not a recommendation. Not available for the Costa Blanca (zone "costa-blanca"): it answers "not available for this zone". — Ordena los municipios para un perfil (family: Familia con niños; relocation: Llego de fuera; calm: Calma y espacio) con los cinco índices por dimensión, cada uno con sus cifras, los pesos del perfil, la fecha de corte y el número de poblaciones. Se puede limitar a una comarca. Las que no tienen alguna dimensión del perfil salen aparte, sin puesto y con el motivo. No es una recomendación. No disponible para la Costa Blanca (zona "costa-blanca"): contesta «no disponible para esta zona».

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": {
      "perfil": "<perfil>"
    },
    "name": "ranking_por_perfil"
  }
}

Input Schema

NameRequiredDescriptionDefault
limiteNoHow many ranked towns to return. Cuántas devolver.
perfilYesProfile id. Perfil.
comarcaNoOptional county. Comarca (opcional).
languageNoResponse language: "es" (default) or "en". Idioma de la respuesta.es

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, so safety is covered; the description goes further by disclosing the unusual return behavior — towns missing a profile dimension are emitted separately, unranked, with a reason — and by disclosing the one hard exclusion zone. What it lacks is any statement about result size limits or pagination beyond the limite parameter.

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?

Front-loaded with the core action and output shape, then caveats, then the zone exclusion. The English/Spanish duplication roughly doubles the length, but it mirrors the schema's own bilingual parameter docs and matches the service's contract, so it is defensible rather than padding.

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?

There is no output schema, so the description carries the full burden of describing the return value — and it does: five per-dimension indices with figures, profile weights, cut-off date, town count, plus the separate unranked list with reasons. Combined with the zone exclusion and the non-recommendation disclaimer, an agent has everything needed to call it and to 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 extra by glossing the meaning of each perfil enum value (family = Family with children, relocation = Moving from abroad, calm = Calm and space) and by clarifying that comarca optionally restricts the ranking. It says nothing extra about limite's default or cap, leaving that to the schema.

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 specific verb and resource — 'Orders the municipalities for one profile' — and immediately scopes it with the enum values (family/relocation/calm), the five indices, and the county option. It also explicitly rules itself out as a recommendation, so an agent knows exactly what class of output to expect.

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?

Gives clear context for use: pick a profile id, optionally narrow to a county, and it warns that Costa Blanca returns 'not available for this zone'. It does not name a sibling to use instead when the profile-based view is wrong (e.g. for budget or comparison queries), so the routing is implied rather than 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