Skip to main content
Glama

Mortgage calculator for Spain

spain_mortgage_calculator
Read-onlyIdempotent

Calculate Spanish mortgage payments, total interest, and yearly amortization for fixed-rate or variable-rate loans using current Euribor plus spread.

Instructions

Mortgage calculator for Spain: monthly payment, total paid, total interest and yearly amortization schedule, fixed rate or variable (current Euribor plus spread).

ES: Calculadora de hipoteca: cuota mensual, total pagado, intereses y cuadro de amortización anual, a tipo fijo o variable (Euríbor actual + diferencial).

Free tool (no API key, no payment). Official Spanish/EU open data.

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": {
      "capital": "<capital>",
      "anios": "<anios>"
    },
    "name": "spain_mortgage_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
tipoNoInterés fijo en % (opcional)
aniosYesPlazo en años (1-50)
capitalYesImporte del préstamo en euros, p. ej. 200000
euriborNoEuríbor a usar en % (opcional; por defecto el último publicado)
diferencialNoDiferencial sobre el Euríbor en % para hipoteca variable (opcional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/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 openWorld, so safety is covered. The description adds value beyond them by disclosing cost/access traits: 'Free tool (no API key, no payment)' and 'Official Spanish/EU open data' as the data source. It stops short of describing determinism, rounding, or whether taxes/insurance are included.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The English block is tight and front-loads the purpose and outputs, with cost/source notes last, which is good ordering. However, the full Spanish translation duplicates the same content verbatim, roughly doubling length without adding new information for a model that already reads the English.

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?

For a self-contained calculator with no output schema, the description names every return field (payment, totals, interest, amortization schedule) and the two calculation modes, which is what an agent needs. Minor gaps remain: no mention of currency assumption, rounding, or whether the schedule is yearly only.

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 all five parameters are already documented in the schema, including the Euribor default. The description restates the fixed-vs-variable input logic ('current Euribor plus spread') but adds no format, range, or interaction detail beyond the schema, so baseline 3 applies.

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?

States a concrete verb+resource with named outputs: 'monthly payment, total paid, total interest and yearly amortization schedule', and distinguishes the two supported modes (fixed rate vs. variable Euribor+spread). It does not name a sibling alternative, so it falls short of a 5, but an agent can tell this is a simulation tool rather than a data-lookup tool like spain_euribor.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description never says when to use this versus alternatives, nor any when-not conditions (e.g., when to call spain_euribor separately for the reference rate, or when the variable mode is appropriate). The fixed/variable framing implies a mode choice but leaves it to the agent to infer from the parameters.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.