Skip to main content
Glama

Índice de Gastos Legado: lo que cuesta comprar una vivienda

indice_gastos_legado
Read-onlyIdempotent

Gastos de comprar una vivienda de segunda mano en España (ITP, notaría, registro y tasación), en euros y en % del precio, con la nota de 0 a 100 del Índice de Gastos Legado. Usa el ITP vigente de cada comunidad, con su fuente en el BOE o el boletín autonómico.

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>",
      "territorio": "<territorio>"
    },
    "name": "indice_gastos_legado"
  }
}

Input Schema

NameRequiredDescriptionDefault
territorioYesComunidad autónoma o territorio foral donde está la vivienda. Valores: andalucia, aragon, asturias, baleares, canarias, cantabria, castilla-la-mancha, castilla-y-leon, cataluna, extremadura, galicia, madrid, murcia, la-rioja, comunitat-valenciana, alava, bizkaia, gipuzkoa, navarra.
tipoReducidoNoId de un tipo reducido de ITP del territorio (p. ej. «jovenes»). Consulta los ids con impuestos_compra_vivienda.
precioViviendaYesPrecio de compra, en euros.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile needs no restating. The description usefully adds the cost composition and the data provenance (ITP vigente per comunidad, sourced from BOE or the regional bulletin), but says nothing about how the 0-100 score is computed or how fresh the tax tables are.

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?

Two dense sentences, front-loaded with the computation and its components, then the tax-source caveat. Nothing is repeated from annotations or schema, and no sentence is filler.

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 compensates by naming the return values (costs in euros and percent of price, plus the 0-100 note). The only real gap is that the scoring methodology and tax-table recency are left unexplained for a tool whose headline output is that score.

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?

With schema description coverage at 100%, the schema already documents all three parameters, including the tipoReducido pointer to impuestos_compra_vivienda. The description adds no further meaning about required combinations, defaults, or how territorio affects the result beyond what the enum already conveys.

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?

Names a specific computation and enumerates its components (ITP, notaría, registro, tasación) plus the outputs (euros, % del precio, nota 0-100), which is far more than a restatement of the name. It does not explicitly distinguish itself from sibling impuestos_compra_vivienda, which is the closest alternative an agent would weigh.

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 scoping to 'vivienda de segunda mano en España' implicitly limits the use case, and the mention of consulting impuestos_compra_vivienda lives in the schema rather than the description. There is no explicit when-to-use/when-not guidance or statement of what the sibling calculator does differently.

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