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". NO calcula la reducción por empresa familiar (empresa individual, negocio profesional o participaciones en entidades), ni la estatal ni las autonómicas: exige valorar la empresa y comprobar requisitos que solo puede verificar un asesor fiscal. Si lo que se transmite incluye una empresa o participaciones, NO presentes la cuota como estimación del caso: dile al usuario que la herramienta no cubre la empresa familiar y que consulte a un asesor fiscal. 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 cobrado como beneficiario de un seguro de vida del fallecido, APARTE de valor_herencia (no lo sumes en él): se acumula a la porción hereditaria (art. 9.1.c LISD) y se le aplica la reducción del art. 20.2.b LISD (100 %, hasta 9195,49 €, para cónyuge, descendientes y ascendientes).
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. II=HIJO de 21 o más; II-descendiente=nieto/bisnieto de 21 o más (en Cataluña reducen distinto: 100.000 € frente a 50.000 €)
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).
patrimonio_preexistenteNoPatrimonio preexistente del heredero en euros (lo que ya tenía antes de heredar). Fija el coeficiente multiplicador del art. 22 LISD, con la corrección del salto de tramo del art. 22.2. Si se omite, se calcula con el coeficiente del primer tramo, el más bajo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / patrimonio_preexistente
      Added value: +{
      +  "description": "Patrimonio preexistente del heredero en euros (lo que ya tenía antes de heredar). Fija el coeficiente multiplicador del art. 22 LISD, con la corrección del salto de tramo del art. 22.2. Si se omite, se calcula con el coeficiente del primer tramo, el más bajo.",
      +  "minimum": 0,
      +  "type": "number"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / seguro_vida / description
      Previous value: -"Importe de seguro de vida recibido"New value: +"Importe cobrado como beneficiario de un seguro de vida del fallecido, APARTE de valor_herencia (no lo sumes en él): se acumula a la porción hereditaria (art. 9.1.c LISD) y se le aplica la reducción del art. 20.2.b LISD (100 %, hasta 9195,49 €, para cónyuge, descendientes y ascendientes)."
  3. Changed2 schema fields changed
    • changedInput schema / properties / grupo_parentesco / description
      Previous value: -"Grupo de parentesco"New value: +"Grupo de parentesco. II=HIJO de 21 o más; II-descendiente=nieto/bisnieto de 21 o más (en Cataluña reducen distinto: 100.000 € frente a 50.000 €)"
    • changedInput schema / properties / grupo_parentesco / enum
      Previous value: -[
      -  "I-conyuge",
      -  "I-descendiente",
      -  "II",
      -  "II-ascendiente",
      -  "III",
      -  "IV"
      -]New value: +[
      +  "I-conyuge",
      +  "I-descendiente",
      +  "II",
      +  "II-descendiente",
      +  "II-ascendiente",
      +  "III",
      +  "IV"
      +]
  4. Changed2 schema fields changed
    • addedInput schema / properties / convivio_dos_anios
      Added value: +{
      +  "description": "Si 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).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / edad_heredero
      Added value: +{
      +  "description": "Edad 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.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  5. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description adds real behavioral value: it discloses a hard coverage gap (empresa familiar, state and regional), prescribes user-facing communication when the case is out of scope, and forbids manually summing this result with other tools. It does not describe output format, but for a pure calculator the scope/limitation disclosure is substantive.

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?

Front-loaded with purpose before the exclusion rules, and every clause carries a functional constraint rather than filler. It is long and uses heavy emphasis, but the length is justified by the scope rules it conveys.

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

Completeness5/5

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

For a 9-parameter calculator with no output schema, the description plus the rich schema fully cover scope, exclusions, alternatives, and the correct handling of out-of-scope cases. Nothing an agent needs to invoke or route correctly is missing.

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% and the parameter descriptions are already highly detailed (legal articles, reduction amounts, enum semantics), so the schema carries the parameter burden. The description adds no parameter-level syntax or format information beyond what the schema provides; 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+resource (calculates the ISD for an individual heir) and explicitly scopes it with regional reductions and bonuses, immediately naming the sibling 'consulta_herencia' as the alternative for a general inheritance query. An agent can distinguish it from siblings 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 Guidelines5/5

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

Gives explicit when/when-not rules: does NOT cover empresa familiar reductions, should not be presented as an estimate when a business is transmitted, and must be replaced by 'comparar_donacion_vs_herencia' when the user compares lifetime donation vs inheritance. Both alternatives and exclusion conditions are named, leaving nothing to inference.

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