Skip to main content
Glama

¿Cómo va España?

Clasificación por comunidades, provincias o países de la UE

comparar_territorios
Read-onlyIdempotent

Ordena las comunidades autónomas, las provincias o los 27 países de la UE según un indicador, con su último dato. Úsalo para «¿qué comunidad tiene más paro?», «provincias con la vivienda más cara» o «¿qué puesto ocupa España en la UE en deuda pública?».

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": {
      "indicador": "<indicador>",
      "nivel": "<nivel>"
    },
    "name": "comparar_territorios"
  }
}

Input Schema

NameRequiredDescriptionDefault
nivelYesQué se compara: comunidades autónomas, provincias o países de la Unión Europea.
ordenNoDe mayor a menor por defecto.
limiteNoCuántas filas como mucho (todas por defecto).
indicadorYesIdentificador del indicador (por ejemplo «tasa-paro»), tal como lo devuelve `buscar_indicadores`. También vale su nombre.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.6/5.0
Behavior3/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 safety profile is fully carried by structured data. The description adds only that each row carries the latest available value, and says nothing about how ties are broken, what happens when an indicator lacks provincial or EU coverage, or how many rows typically return. Useful but thin beyond the annotations.

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?

Two sentences, front-loaded with the core action and scope before the routing examples, and no filler. The quoted example queries are longer than strictly necessary but earn their place by anchoring intent.

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?

For a 4-parameter, fully documented, annotation-rich ranking tool with no output schema, the description covers the action, the three aggregation levels and the recency of data. Missing only edge-case behavior (indicators unavailable at a given nivel, tie handling), which are secondary for correct invocation.

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% with enum values and defaults already documented, so the baseline is 3. The description reinforces the nivel choices and the "27 países" scope, but adds no syntax or format detail for indicador, orden or limite beyond what the schema 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?

The description opens with a specific verb and resource ("Ordena las comunidades autónomas, las provincias o los 27 países de la UE según un indicador") and adds the scope detail "con su último dato", so the agent knows this is a cross-territory ranking rather than a single lookup. It never names the sibling that handles the single-territory case (e.g. consultar_territorio), so differentiation is left to inference from the example questions.

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?

Three concrete example queries ("¿qué comunidad tiene más paro?", "provincias con la vivienda más cara", "¿qué puesto ocupa España en la UE en deuda pública?") make the trigger conditions clear, covering ranking and position-in-ranking use cases. There is no explicit when-not guidance or named alternative for single-territory or single-indicator lookups.

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