Skip to main content
Glama

SmartCredit+ Hipotecas

Simulador de capacidad de endeudamiento

mortgage_calcular_capacidad
Read-only

Cuánto se puede pedir de hipoteca según los ingresos netos y las deudas: préstamo máximo, precio máximo de vivienda y ahorro necesario. Usa los mismos criterios que la viabilidad de la compra: esfuerzo del 35 % (45 % desde 6.000 €/mes) y financiación del 90 % en primera vivienda o del 70 % en segunda. Con la comunidad autónoma, los gastos de compraventa se calculan con sus impuestos; sin ella, se estiman en un 10 %.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tinNoTipo de interés nominal anual, en % (p. ej. 2.5)
comunidadNoComunidad autónoma donde está la vivienda
itp_jovenNoAplica el tipo reducido de ITP para jóvenes
obra_nuevaNo
plazo_anosNo
tipo_viviendaNoprimera
deudas_mensualesNoCuotas de otros préstamos
ingresos_mensuales_netosYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / comunidad
      Added value: +{
      +  "description": "Comunidad autónoma donde está la vivienda",
      +  "enum": [
      +    "Andalucía",
      +    "Aragón",
      +    "Principado de Asturias",
      +    "Illes Balears",
      +    "Canarias",
      +    "Cantabria",
      +    "Castilla-La Mancha",
      +    "Castilla y León",
      +    "Cataluña",
      +    "Ceuta",
      +    "Comunidad de Madrid",
      +    "Comunidad Foral de Navarra",
      +    "Comunidad Valenciana",
      +    "Extremadura",
      +    "Galicia",
      +    "La Rioja",
      +    "Melilla",
      +    "País Vasco",
      +    "Región de Murcia"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / itp_joven
      Added value: +{
      +  "default": false,
      +  "description": "Aplica el tipo reducido de ITP para jóvenes",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / obra_nueva
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
    • addedInput schema / properties / tipo_vivienda
      Added value: +{
      +  "default": "primera",
      +  "enum": [
      +    "primera",
      +    "segunda"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With annotations covering the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), the description adds substantive domain behavior: the 35%/45% effort thresholds, 90%/70% financing by home type, and the 10% fallback for purchase costs when no comunidad is given. That exposes the calculation model rather than restating the annotations, though it does not disclose defaults for obra_nueva or plazo_anos.

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 sentences, each earning its place: purpose/outputs first, then criteria, then the comunidad conditional. Dense but front-loaded and free of filler, with only minor strain from packing multiple thresholds into one sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Without an output schema the description correctly enumerates the three return values (max loan, max price, savings), which is its strongest completeness signal. It falls short by not explaining the effect of plazo_anos or obra_nueva and by giving no indication of result format, leaving gaps for a computation tool with eight parameters.

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 only 50%, so the description carries extra weight and does clarify how comunidad drives tax calculation and how tipo_vivienda switches financing between 90% and 70%. However, obra_nueva, plazo_anos, and the required ingresos_mensuales_netos receive no added explanation, leaving half the parameters without semantic guidance.

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 precise verb+resource (calculating borrowing capacity from net income and debts) and enumerates the concrete outputs: máximo préstamo, precio máximo de vivienda, ahorro necesario. It explicitly positions itself relative to the viabilidad sibling ('usa los mismos criterios que la viabilidad de la compra'), so an agent can separate it from mortar_calcular_cuota or mortgage_evaluar_viabilidad without opening schemas.

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

Usage Guidelines3/5

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

The description explains the criteria that govern the calculation and gives a conditional rule about the comunidad autónoma, but it never states when to choose this tool over the sibling evaluar_viabilidad, calcular_cuota, or simular_primera_vivienda. Usage is implied rather than instructed.

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