Skip to main content
Glama

¿Cómo va España?

Presupuestos Generales del Estado

presupuestos_del_estado
Read-onlyIdempotent

Los Presupuestos Generales del Estado partida a partida: el total, si están aprobados o prorrogados, el reparto por políticas de gasto (pensiones, deuda, defensa, sanidad, educación...) y por ministerios, y los programas de cada una. Con partida, busca una política, un ministerio o un programa y da su importe y su desglose. Úsalo para «¿cuánto se gasta en pensiones?», «presupuesto de Defensa» o «¿están prorrogados los Presupuestos?».

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

Input Schema

NameRequiredDescriptionDefault
anoNoEjercicio. Por defecto, el más reciente.
verNo`politicas` (por defecto): por políticas de gasto. `ministerios`: por ministerios y secciones.
limiteNoCuántos resultados como mucho (8 por defecto).
partidaNoNombre de una política, un ministerio o un programa («pensiones», «defensa», «vivienda»), o el código de un programa («941M»).

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

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds behavior beyond that: that approval vs. prórroga status is reported, that `partida` switches into a name/code lookup returning an itemised breakdown, and that the default is the most recent exercise — useful since no output schema exists.

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 content is front-loaded: what the dataset contains first, the `partida` mode second, concrete example questions last. It is a single dense paragraph with some enumeration stacking (pensiones, deuda, defensa, sanidad, educación...) that is informative but slightly run-on; no sentence is filler.

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 four optional parameters, no nested objects and no output schema, the description supplies enough about returned content (totals, status, breakdowns, per-item amounts) to use the tool correctly. It does not say what happens when `partida` matches nothing or how results are ordered/limited beyond the `limite` schema field, which keeps it short of full completeness.

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, but the description goes further by explaining what `partida` actually does (matches a policy, ministry or programme name or a code like «941M» and returns its amount and desglose). It also implicitly frames `politicas` vs `ministerios` as two views of the same budget, adding meaning beyond the enum values.

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?

The description names a concrete resource (Presupuestos Generales del Estado) and enumerates exactly what it exposes: the total, approval/prorrogación status, breakdown by spending policies and ministries, and per-policy programmes. The `partida` mode is described as a distinct lookup that returns an amount plus breakdown, so an agent can tell what this tool yields without opening the schema.

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?

Intent examples («¿cuánto se gasta en pensiones?», «presupuesto de Defensa», «¿están prorrogados?») give clear signals for when to reach for this tool. There is no explicit exclusion or named alternative among siblings such as resumen_de_espana or buscar_indicadores, so the guidance is contextual rather than routing-complete.

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