Skip to main content
Glama

¿Cómo va España?

Comparar los mandatos de los presidentes

comparar_presidentes
Read-onlyIdempotent

Compara cómo se movió un indicador con cada presidente del Gobierno (Aznar, Zapatero, Rajoy y Sánchez): el valor al empezar el mandato, al acabar y el cambio, con las mismas reglas para todos. Sin indicador, devuelve la tabla resumen de los mandatos (paro, afiliación, PIB, inflación, deuda, déficit, salario mínimo, pensiones, vivienda y prima de riesgo) y la lista de indicadores que se pueden comparar. La respuesta incluye un aviso de contexto: cada presidente recibió un país distinto y le tocó un mundo distinto.

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": "comparar_presidentes"
  }
}

Input Schema

NameRequiredDescriptionDefault
indicadorNoIdentificador del indicador (por ejemplo «tasa-paro»), tal como lo devuelve `buscar_indicadores`. También vale su nombre. Opcional: sin él se devuelve la tabla resumen.

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.8/5.0
Behavior3/5

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

Annotations already declare this as a read-only, idempotent, closed-world, non-destructive operation, so the safety profile is covered. The description adds genuinely new behavioral context: identical rules applied to every mandate and a built-in caveat that each president inherited a different country and world. It stops short of describing the response shape or any limitations of the comparison.

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?

The core behavior is front-loaded in the first clause, and the two branches (with/without `indicador`) follow in a logical order with no filler. The first sentence is long and stacks several ideas, which slightly hurts scanability but not correctness.

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?

For a one-optional-parameter tool with no output schema, the description carries the return-value burden well: it enumerates the summary indicators, describes the per-indicator start/end/change output, and discloses the contextual caveat. An agent has enough to call it correctly in both modes.

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?

With 100% schema description coverage and a single optional parameter, the schema already documents the identifier format, the fallback to the summary table, and the `buscar_indicadores` source. The description restates the default behavior but adds no new semantics such as accepted aliases or error behavior for unknown indicators.

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+resource: comparing how one indicator moved across each president's term, with concrete fields (start value, end value, change) and a named set of presidents. It implicitly separates itself from a single-president view, but it never names the sibling (e.g. `balance_presidente`) that an agent should pick instead for one mandate.

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 clearly states the two modes: with `indicador` you get the per-president comparison, without it you get the summary table plus the list of comparable indicators. It also routes the agent to `buscar_indicadores` for valid identifiers, but gives no explicit exclusions versus sibling tools that also report indicators.

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