Skip to main content
Glama

calcular_hipoteca

Read-only

Calcula una hipoteca española (sistema francés): cuota mensual, total de intereses, ratio cuota/ingresos. Soporta tipo fijo, variable (Euríbor + diferencial) y mixta. Para una consulta de compra completa con impuestos y gastos, usa "consulta_compra_vivienda".

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": {
      "precio_vivienda": "<precio_vivienda>",
      "entrada": "<entrada>",
      "plazo_anios": "<plazo_anios>",
      "tipo_hipoteca": "<tipo_hipoteca>"
    },
    "name": "calcular_hipoteca"
  }
}

Input Schema

NameRequiredDescriptionDefault
entradaYesEntrada aportada en euros (recomendable ≥20%)
euriborNoEuríbor actual en % (para "variable"/"mixta")
diferencialNoDiferencial del banco en % (para "variable"/"mixta")
plazo_aniosYesPlazo en años
interes_anualNoTipo fijo anual en % (para "fijo" o fase fija de "mixta")
tipo_hipotecaYes"fijo", "variable" o "mixta"
precio_viviendaYesPrecio de la vivienda en euros
plazo_fijo_mixtaNoSolo para "mixta": años del tramo fijo inicial. Por defecto 5.
ingresos_mensualesNoIngresos netos mensuales para el ratio de endeudamiento

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / plazo_fijo_mixta
      Added value: +{
      +  "description": "Solo para \"mixta\": años del tramo fijo inicial. Por defecto 5.",
      +  "maximum": 39,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe, non-mutating computation, so the bar is low. The description adds useful domain context (Spanish market, French amortization system, fixed/variable/mixed variants) but says nothing about assumptions such as payment frequency, rounding, or what happens when euribor/diferencial are omitted for a variable loan.

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

Conciseness5/5

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

Three short sentences: purpose and method first, then supported variants, then the alternative-tool routing. Every clause carries information and nothing is repeated from the schema.

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 correctly enumerates the three returned figures, and it covers the fixed/variable/mixed branching that drives the nine parameters. It stops short of stating unit conventions or how the ratio is thresholded, which would matter for a result-heavy financial calculator.

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 nine parameters, including the conditional euribor/diferencial/interes_anual and the plazo_fijo_mixta default, are already documented in the schema. The description adds only the amortization method, which aids interpretation but is not parameter-level detail, so baseline 3 applies.

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 ("Calcula una hipoteca española") plus the exact outputs: cuota mensual, total de intereses, ratio cuota/ingresos. It also names the calculation method (sistema francés) and the three supported modalities, so an agent can distinguish it from consulta_compra_vivienda 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?

Explicitly routes the agent to "consulta_compra_vivienda" when the query needs a full purchase breakdown with taxes and expenses, which is a clear when-not signal. It does not address the other closely related siblings such as calcular_capacidad_hipoteca or calcular_amortizacion_anticipada, so the alternative routing is partial rather than exhaustive.

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