Skip to main content
Glama

calcular_sucesiones

Read-only

Calcula el Impuesto de Sucesiones (ISD) de un heredero individual con reducciones y bonificaciones autonómicas. Para la consulta general de herencia usa "consulta_herencia". IMPORTANTE: si el usuario está comparando donar en vida vs esperar a la herencia de un inmueble, NO uses esta herramienta suelta ni la sumes a mano con otras: usa directamente "comparar_donacion_vs_herencia", que integra ISD, IRPF del donante y plusvalía municipal en una sola respuesta.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ccaaYesComunidad autónoma del fallecido
seguro_vidaNoImporte de seguro de vida recibido
discapacidadNoGrado de discapacidad. Por defecto "0".
edad_herederoNoEdad del heredero. Necesaria si es del Grupo III (colateral: hermanos, sobrinos, tíos) y hay vivienda habitual: el art. 20.2.c LISD le exige 65 años o más. También activa la reducción adicional del menor de 21 años en descendientes.
valor_herenciaYesValor neto recibido por el heredero en euros
grupo_parentescoYesGrupo de parentesco
vivienda_habitualNoValor de la vivienda habitual heredada (reducción 95%)
convivio_dos_aniosNoSi el heredero convivió con el fallecido los dos años anteriores. Solo se le exige al Grupo III (colateral) para la reducción por vivienda habitual (art. 20.2.c LISD).

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the description correctly does not repeat that it's a read-only calculation. The description adds useful context about scope (single heir) and the integration warning about not combining it manually for comparisons. However, it does not disclose any potential limitations (e.g., approximations, jurisdiction-specific nuances) beyond what the annotation implies. Given the annotation covers the safety profile, a 3 is appropriate.

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 sentences with zero waste. The first sentence states the core purpose, and the second provides essential routing guidance. Although the IMPORTANTE sentence is long, it is justified because it prevents a common misuse. The description is front-loaded with the main action and does not redundantly restate schema information.

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?

The description is complete for an agent to decide when to call this tool: it states the purpose, scope, and two critical alternatives. It does not describe the return format, but as a calculation tool without an output schema, that is not strictly necessary. The comprehensive schema covers parameter requirements, and the annotation covers safety. The only minor gap is that it doesn't mention it cannot handle multiple heirs or joint inheritances, but 'individual' implies that.

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 8 parameters are fully described in the input schema (e.g., edad_heredero's role for Group III and under-21 reductions, convivio_dos_anios requirement). The description adds no new parameter-level detail beyond the schema; it only mentions the existence of reductions and bonuses in general terms. With complete schema coverage, the baseline of 3 is correct.

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?

The description clearly states the tool calculates the Spanish Inheritance Tax (ISD) for an individual heir with regional reductions and bonuses. It uses a specific verb ('Calcula'), names the resource ('Impuesto de Sucesiones'), and distinguishes it from both 'consulta_herencia' (general query) and 'comparar_donacion_vs_herencia' (comparison tool), making it unambiguous among 48 sibling tools.

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

Usage Guidelines5/5

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

The description explicitly tells when to use this tool versus alternatives: it directs the user to 'consulta_herencia' for general inheritance queries and explicitly warns against using this tool alone (or summing it manually) when comparing donation vs. inheritance, pointing to 'comparar_donacion_vs_herencia' instead. This is exemplary usage guidance with clear when-to-use and when-not-to-use conditions.

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.

TDQS

A3.9/5.0
Disambiguation3/5

There are many tools with overlapping domains (e.g., multiple retirement calculators, home buying calculators), but detailed descriptions and explicit guidance on when to use comprehensive vs. specific tools help clarify. However, the sheer number (49) still creates potential confusion for an agent.

Naming Consistency5/5

All tools follow a consistent convention: infinitive verb or noun prefix (calcular, comparar, consulta) followed by descriptive noun phrase in snake_case. No mixed styles or irregularities.

Tool Count3/5

49 tools is high but justifiable given the broad scope of Spanish financial/legal calculations. It leans toward the heavy side but remains within a manageable range for a comprehensive server.

Completeness4/5

The tool set covers a wide spectrum of personal finance: income, taxes, housing, inheritance, self-employment, investments, etc. Only minor gaps exist (e.g., no separate tool for rental income beyond the alquiler tools, but included in IRPF).

Resources