Skip to main content
Glama

Semáforo Legado: ¿te darán la hipoteca?

semaforo_legado
Read-onlyIdempotent

Nota de 0 a 100 (verde, ámbar o rojo) de lo preparado que está un perfil para pedir una hipoteca en España. Pesa la deuda sobre ingresos con la nueva cuota (45 %), el ahorro para entrada y gastos (35 %) y la estabilidad laboral (20 %). Úsala cuando alguien pregunte si le darán una hipoteca o si le llega el sueldo o el ahorro para comprar.

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": {
      "precioVivienda": "<precioVivienda>",
      "ahorroDisponible": "<ahorroDisponible>",
      "ingresosMensualesNetos": "<ingresosMensualesNetos>",
      "situacionLaboral": "<situacionLaboral>"
    },
    "name": "semaforo_legado"
  }
}

Input Schema

NameRequiredDescriptionDefault
plazoAniosNoPlazo deseado, en años.
tipoInmuebleNoPara qué es el inmueble.vivienda_habitual
precioViviendaYesPrecio de la vivienda, en euros.
deudasMensualesNoCuotas de préstamos y deudas que paga hoy al mes, en euros.
ahorroDisponibleYesAhorro disponible para entrada y gastos, en euros.
edadTitularMayorNoEdad del titular de más edad.
situacionLaboralYesSituación laboral del titular principal.
ingresosMensualesNetosYesIngresos netos al mes, suyos o de la pareja, en euros.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so safety is covered. The description adds real value by disclosing the scoring model and the output shape (0-100 plus color bands) despite no output schema, but it omits the band thresholds and any caveat that this is a heuristic rather than an actual lender decision.

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 sentences ordered as output, then methodology, then trigger condition, with no filler. Every clause carries either the result format, the weighting, or the invocation cue.

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 an 8-parameter, 4-required tool with no output schema, the definition adequately covers what is produced and how inputs are weighted. Remaining gaps are the color thresholds and how the optional parameters (plazo, edad, tipo de inmueble) affect the result.

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 the baseline is 3; the description goes beyond it by assigning weights to the inputs — debt-to-income with the new payment (45%), savings for down payment and costs (35%), job stability (20%) — which the schema does not state. It still does not explain how plazoAnios, edadTitularMayor or tipoInmueble feed into the score.

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 output (0-100 score with green/amber/red bands) for a concrete question (mortgage readiness in Spain), plus the exact factors and weights used. The purpose is unmistakable, though it never names or contrasts the similar-sounding siblings (termometro_legado, indice_gastos_legado, indice_revision_legado).

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 says when to invoke it: when someone asks whether they will get a mortgage or whether their salary/savings are enough to buy. No when-not conditions and no routing to alternatives, which is the only thing separating it from a 5.

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