Skip to main content
Glama

¿Cómo va España?

Balance de mandato de un presidente

balance_presidente
Read-onlyIdempotent

El balance de mandato de un presidente del Gobierno (Aznar, Zapatero, Rajoy o Sánchez): cómo estaba cada indicador al empezar y cómo al acabar (o ahora), cuántos mejoran y cuántos empeoran por áreas, y la comparación con la media de la UE. Es un cálculo con datos oficiales y reglas públicas, las mismas para todos; no es una opinión. Por defecto devuelve los indicadores principales.

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": {
      "presidente": "<presidente>"
    },
    "name": "balance_presidente"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaNoTodos los indicadores de un área: Empleo, Economía, Precios, Vivienda, Cuentas públicas...
todosNoTodos los indicadores del balance (más de 200 en los mandatos recientes) en vez de los principales.
presidenteYesApellido o nombre del presidente: Sánchez, Rajoy, Zapatero o Aznar.
valoracionNoSolo los indicadores con esa valoración.
desde_gobiernoNoAño en que empezó uno de sus gobiernos (por ejemplo 2020 o 2023 para Sánchez), para contar el balance desde ahí y no desde el principio.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / desde_gobierno / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 10,
      -    "type": "string"
      -  },
      -  {
      -    "maximum": 9007199254740991,
      -    "minimum": -9007199254740991,
      -    "type": "integer"
      -  }
      -]
    • addedInput schema / properties / desde_gobierno / maxLength
      Added value: +10
    • addedInput schema / properties / desde_gobierno / type
      Added value: +"string"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already establish that this is a read-only, idempotent, non-destructive, closed-world calculation. The description adds meaningful context: it is based on official data and public rules, is not an opinion, and returns principal indicators by default.

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 description is front-loaded with the tool's purpose and remains reasonably concise despite being dense. Each sentence contributes useful information, though the phrasing could be slightly tighter.

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 appropriately explains the conceptual return: starting versus ending indicator values, improvement/worsening counts by area, and EU comparison. It is complete enough for an agent to understand the tool's output, though the exact return format is not specified.

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 the input schema already documents each parameter thoroughly. The description adds only the default behavior regarding principal indicators and does not significantly extend parameter semantics beyond the schema.

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 resource and operation: a president's term balance comparing indicators at the start and end, with improvement/worsening counts by area and EU comparison. It is clear what the tool does, though it does not explicitly distinguish itself from siblings such as comparar_presidentes.

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 implied by the description of the balance and the note that it returns main indicators by default. However, there is no explicit guidance on when to use this tool instead of alternatives like comparar_presidentes or buscar_indicadores.

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