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; 1.000.000 € en Comunidad Valenciana; 500.000 € en Cataluña 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.

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": {
      "comunidad_autonoma": "<comunidad_autonoma>"
    },
    "name": "calcular_impuesto_patrimonio"
  }
}

Input 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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint, but the description adds substantial behavior: it is an orientative estimate ("cuota orientativa"), it applies the 300.000 € vivienda exención, regional mínimo exento amounts, the 2.000.000 € declaration threshold, and treats planes de pensiones as excluded. These assumptions and scope limits go well beyond the annotation.

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?

Purpose is front-loaded in the first clause and every sentence carries fiscal detail, but it renders as one dense paragraph with stacked parentheticals rather than a scannable structure. No wasted filler, only minor readability cost.

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 must convey return content; it states the tool returns the valuation, the obligation to declare and an orientative quota, which is adequate at a high level but does not describe the output shape. Input logic is thoroughly covered, so only the return-value detail is thin.

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%, so baseline is 3, but the description adds meaning beyond it: the per-CCAA mínimo exento figures (700.000 general, 1.000.000 Valencia, 500.000 Cataluña/Extremadura, 400.000 Aragón) and the regional escala/bonificación behavior of comunidad_autonoma are not captured in the schema enum.

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 chain (valora, determina obligación, estima cuota) on a specific resource (Impuesto sobre el Patrimonio), and pins down scope: no participaciones en empresas propias/no cotizadas, nothing for territorios forales. The agent can distinguish it from calcular_irpf or calcular_plusvalias_irpf 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 Guidelines4/5

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

Explicit exclusions: only for patrimonios without company shares and not for Navarra/País Vasco, which are redirected to the Hacienda foral. This gives clear when-not guidance, though no sibling alternative for the company-share case is named.

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