Skip to main content
Glama

¿Cómo va España?

Calculadoras: subida de precios, sueldo, hipoteca y piso

calculadoras
Read-onlyIdempotent

Las cuatro cuentas de la página de calculadoras de la web, con los datos oficiales de hoy: cuánto ha subido la vida desde un año (IPC), si un sueldo ha subido más o menos que los precios, la cuota de una hipoteca con el euríbor actual (o a tipo fijo) y cuántos años de sueldo cuesta un piso. Úsalo para «¿cuánto valen hoy 1.000 € de 2010?», «¿he perdido poder de compra?» o «¿cuánto pagaría de hipoteca por 200.000 € a 30 años?».

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": {
      "calculo": "<calculo>"
    },
    "name": "calculadoras"
  }
}

Input Schema

NameRequiredDescriptionDefault
anosNoHipoteca: plazo en años (25 por defecto).
metrosNoPiso: superficie en m² (90 por defecto).
sueldoNoPiso: sueldo bruto al año (por defecto, el salario medio).
calculoYesQué cuenta.
importeNoSubida de precios: la cantidad en euros (1.000 por defecto). Hipoteca: lo que se pide prestado (150.000 por defecto).
desde_anoNoSubida de precios y sueldo: el año de partida (el mismo mes del último IPC).
precio_m2NoPiso: precio del metro cuadrado (por defecto, la media de España).
tipo_fijoNoHipoteca fija: el interés anual en %. Sin él, variable con el euríbor.
diferencialNoHipoteca variable: puntos que se suman al euríbor (1 por defecto).
sueldo_ahoraNoSueldo de hoy, en euros (en la misma unidad que el de entonces).
sueldo_entoncesNoSueldo del año de partida, en euros.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds a genuinely useful behavioral fact beyond that: results are computed 'con los datos oficiales de hoy', i.e. outputs depend on current official statistics rather than user-supplied input alone. It does not spell out the data source or vintage per calculation, which keeps it short of 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?

The definition is two sentences: the first front-loads what the tool computes, the second supplies activation examples. Nothing is redundant with the title. The first sentence is long and carries four parallel clauses, but each maps to a distinct calculation, so no clause is wasted.

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 11 parameters but only one required enum, the key thing an agent needs is to know which parameter set each calculation mode consumes, and the description plus the enum-valued schema supply that. There is no output schema, so the description's enumeration of the four result types compensates adequately. Only the data source/vintage per calculation is left implicit.

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% and every one of the 11 parameters carries a description, including defaults and units, so the schema does the heavy lifting and a 3 baseline applies. The description reinforces this by pairing each example question with the relevant calculation, clarifying which parameter family applies when. It adds no format or unit detail beyond what the schema already 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 names the concrete resource (the four calculators on the site's calculators page) and enumerates exactly what each returns: IPC-based price rise, salary vs. prices, mortgage instalment at current euríbor or fixed rate, and years of salary per flat. That is a specific verb-plus-resource statement an agent can match to a request. It does not, however, differentiate itself from the sibling 'calcular_tu_inflacion', which overlaps the first calculation, so it falls short of a 5.

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?

Usage is grounded in three concrete example phrasings («¿cuánto valen hoy 1.000 € de 2010?», «¿he perdido poder de compra?», «¿cuánto pagaría de hipoteca por 200.000 € a 30 años?») that map cleanly onto the four calculation modes. This gives an agent clear positive context. There is no when-not guidance and no explicit routing away from the overlapping inflation sibling.

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