Skip to main content
Glama

calcular_impuesto_patrimonio

Read-only

Valora el patrimonio de una persona física con los criterios del Impuesto sobre el Patrimonio, determina si hay obligación de declarar y estima la cuota orientativa aplicando la ESCALA y la BONIFICACIÓN de su comunidad autónoma (Cataluña, Asturias, Baleares, Extremadura, Cantabria y C. Valenciana tienen escala propia; el resto usan la estatal). Aplica la exención de 300.000 € de la vivienda habitual, el mínimo exento de cada CCAA (700.000 € general; 500.000 € en Cataluña, C. Valenciana y Extremadura; 400.000 € en Aragón) y el umbral universal de obligación de declarar por 2.000.000 € de bienes brutos. Los planes de pensiones están exentos (no se incluyen). Para patrimonios SIN participaciones en empresas propias o no cotizadas. No calcula la cuota en territorios forales (Navarra y País Vasco): remite a su Hacienda foral.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deudasNoDeudas deducibles: préstamos e hipotecas, salvo la parte vinculada a bienes exentos (vivienda habitual exenta), en euros. Por defecto 0.
otros_bienesNoOtros bienes por su valor de mercado: vehículos, joyas, arte, embarcaciones, efectivo... en euros. Por defecto 0.
seguros_vidaNoSeguros de vida por su valor de rescate a 31/12, en euros. Por defecto 0.
acciones_fondosNoAcciones cotizadas (cotización media del 4.º trimestre), ETF y fondos de inversión (valor liquidativo a 31/12), en euros. Por defecto 0.
otros_inmueblesNoSuma del valor de otros inmuebles —segunda vivienda, locales, garajes— (mayor de catastral/comprobado/adquisición de cada uno), en euros. Por defecto 0.
cuentas_depositosNoCuentas y depósitos: el mayor entre el saldo a 31/12 y el saldo medio del 4.º trimestre, en euros. Por defecto 0.
vivienda_habitualNoValor TOTAL de la vivienda habitual (el mayor de catastral, comprobado o de adquisición con gastos), en euros. Exenta hasta 300.000 €. Por defecto 0.
comunidad_autonomaYesComunidad autónoma de residencia del contribuyente

TDQS

A4.4/5.0
Behavior5/5

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

The description goes well beyond the readOnlyHint annotation, detailing the specific tax rules applied (exemptions, thresholds, regional scales, pension plan exemption). It also indicates the result is an estimate ('orientativa'), providing full behavioral context for the calculation.

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 efficiently conveys the main purpose, key rules, and limitations. It is front-loaded with the core action and provides necessary details without extraneous text.

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?

Given the complexity of Spanish wealth tax (multiple regional regimes, exemptions, thresholds) and the absence of an output schema, the description is remarkably complete. It covers the main components, exclusions, and when not to use the tool, providing sufficient context for correct usage.

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 coverage is 100% with detailed parameter descriptions. The tool description adds overall context for the calculation (e.g., how exemptions apply) but does not add new meaning for individual parameters beyond what the schema provides. Baseline 3 is appropriate.

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 wealth tax for individuals, determining filing obligation and estimated tax using regional scales and exemptions. It specifies the scope (no business holdings, no foral territories), which distinguishes it from potential sibling tools for other tax calculations or business wealth.

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 explicitly states the tool is for individuals without business shares or non-listed companies, and excludes foral territories (Navarre, Basque Country). It does not directly name alternative tools for excluded cases, but provides clear conditions for use.

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