Skip to main content
Glama

calcular_impuestos_divorcio

Read-only

Estima el impacto en el IRPF de un divorcio o separación en España: reducción por pensión compensatoria al cónyuge (para quien la paga) o su tributación (para quien la cobra), mínimo por descendientes según la custodia, imputación de renta inmobiliaria si sales de la vivienda, y deducción por hipoteca anterior a 2013. La liquidación de la sociedad de gananciales no está sujeta a IRPF. No calcula ITP/AJD ni plusvalía municipal. Modelo estatal orientativo (sin variaciones por CCAA ni regímenes forales).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
regimenYesRégimen económico matrimonial
custodiaNoTipo de custodia: "exclusiva-tengo" (100% del mínimo), "compartida" (50%), "exclusiva-otro" (0%).
num_hijosNoNúmero de hijos (1-4; 4 = "4 o más"). Solo si tiene_hijos.
rol_pensionNo"pago" (la pagas, reduce tu base) o "cobro" (la recibes, tributa como renta).
tiene_hijosNo¿Hay hijos a cargo? Por defecto false.
tiene_viviendaNo¿Hay vivienda familiar en propiedad? Por defecto false.
pension_mensualNoImporte mensual de la pensión compensatoria (€)
valor_catastralNoValor catastral de la vivienda (€). Solo relevante si sales de ella.
catastro_revisadoNo¿El valor catastral se ha revisado en los últimos 10 años? true → tipo 1,1%; false → 2%. Por defecto false.
posicion_hipotecaNo"me-quedo" (sigues pagándola y deduces) u "otro-paga".
posicion_viviendaNoQué pasa con la vivienda. Solo "salgo" genera imputación de renta inmobiliaria.
cuota_hipoteca_anualNoCuota anual de la hipoteca que pagas tú (€)
porcentaje_propiedadNoTu porcentaje de propiedad de la vivienda (%). Por defecto 50.
tiene_pension_conyugeNo¿Hay pensión compensatoria al ex cónyuge? Por defecto false.
tiene_hipoteca_antiguaNo¿Hipoteca sobre la vivienda habitual anterior a 2013? (deducción transitoria). Por defecto false.
ingresos_brutos_anualesYesIngresos brutos anuales del trabajo (€)
vivienda_asignada_hijosNo¿El uso de la vivienda se asigna a los hijos? (exime la imputación de renta). Por defecto false.

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already provide readOnlyHint=true, so the tool is safe to call. The description adds transparency by stating it provides estimates and is indicative (non-binding), and clarifies limitations (no CCAA or foral variations). No contradictions with annotations.

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?

The description is a single paragraph that front-loads the main purpose, lists key features, and ends with limitations. It is informative but could be slightly more structured (e.g., bullet points). Overall, every sentence adds value.

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?

Given the 17 parameters and no output schema, the description provides a comprehensive overview of what the tool does and its scope. It covers inputs, exclusions, and caveats adequately, though it could mention return format or that it returns a tax impact estimate.

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% with individual parameter descriptions. The overall description adds context on how parameters relate to tax concepts (e.g., 'custodia' affects minimum, 'posicion_vivienda' triggers imputed rent). It does not detail each parameter beyond schema but provides meaningful overview.

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 estimates IRPF impact of divorce in Spain, listing specific elements (pension, child minimum, imputed rent, pre-2013 mortgage deduction) and explicitly excludes ITP/AJD and plusvalía municipal. This distinguishes it from sibling 'calcular' tools which cover other tax and financial calculations.

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?

The description specifies it is a state-level indicative model without regional variations, and lists what it does not calculate. However, it does not explicitly mention when to use this tool over siblings (e.g., for full regional calculation). The guidance on scope is clear but lacks direct alternative recommendations.

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