Skip to main content
Glama

¿Cómo va España?

Calcular tu inflación

calcular_tu_inflacion
Read-onlyIdempotent

La misma cuenta que la calculadora «Tu inflación» de la web: cuánto ha subido en un año lo que gasta un hogar, con la subida oficial de cada grupo del IPC (INE) en su provincia o comunidad. Se le pasa lo que se gasta al mes en cada grupo (en euros) o un tipo de hogar («alquiler», «65 años o más», «el 20 % con menos renta»), cuyo gasto medio sale de la Encuesta de Presupuestos Familiares. Sin gastos ni tipo de hogar, usa el gasto medio de todos los hogares. Es un cálculo, no una estadística oficial: da siempre el IPC oficial al lado.

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

Input Schema

NameRequiredDescriptionDefault
lugarNoProvincia o comunidad autónoma («Soria», «Galicia»); sin él, toda España.
sanidadNoEuros al mes en sanidad.
alimentosNoEuros al mes en alimentos.
ensenanzaNoEuros al mes en ensenanza.
transporteNoEuros al mes en transporte.
tipo_de_hogarNoUn tipo de hogar para usar su gasto medio («alquiler», «65 años o más», «pareja con hijos», «el 20 % con menos renta»). Los gastos que se pasen aparte lo sustituyen en su grupo.
ocio_y_culturaNoEuros al mes en ocio y cultura.
ropa_y_calzadoNoEuros al mes en ropa y calzado.
vivienda_y_luzNoEuros al mes en vivienda y luz.
bares_y_hotelesNoEuros al mes en bares y hoteles.
muebles_y_hogarNoEuros al mes en muebles y hogar.
alcohol_y_tabacoNoEuros al mes en alcohol y tabaco.
cuidado_personalNoEuros al mes en cuidado personal.
seguros_y_bancosNoEuros al mes en seguros y bancos.
telefono_e_internetNoEuros al mes en telefono e internet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world behaviour, so the description's added value is the caveat that this is a derived calculation and that the official IPC figure is always shown alongside the result. That framing matters for how an agent presents the output. It doesn't discuss precision or rounding, which keeps it from a 5.

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?

Three dense sentences ordered from what it computes to how it's fed to its caveat, with no filler. Slightly heavy clause structure in the first sentence keeps it just below optimal.

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 15 optional parameters and no output schema, the description does the needed work: it says what is returned conceptually (how much a household's spending has risen, plus the official IPC alongside). The exact shape of the result, such as a per-group breakdown, is left implicit.

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 a baseline of 3 is the floor; the description goes further by explaining the default when no spending and no household type are given, and that individually supplied group expenses override the household-type average for that group. The two string parameters (lugar, tipo_de_hogar) get concrete example values, which reduces miscalls.

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: computes the household's personal inflation over one year by applying the official INE IPC increase for each group in the given province or region. It even positions itself against the official statistics tools by saying «Es un cálculo, no una estadística oficial», so an agent can distinguish it from consultar_indicador-style siblings.

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?

Explains the two input modes (monthly spending per group, or a household type such as «alquiler» or «65 años o más») and the fallback when neither is supplied (average spending for all households). It doesn't name an alternative tool to use instead, but the contrast with official statistics is explicit enough to guide selection.

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