Skip to main content
Glama

calcular_deduccion_discapacidad

Read-only

Calcula el mínimo por discapacidad en el IRPF (Ley 35/2006, arts. 60-65) del contribuyente o de un ascendiente/descendiente a cargo: 3.000 € (grado 33%-64%) o 9.000 € (≥65%), más 3.000 € adicionales por gastos de asistencia si se acredita ayuda de terceros o movilidad reducida. Estima el ahorro aplicando el tipo marginal. El mínimo reduce la base liquidable, no la cuota directamente.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gradoNoGrado de discapacidad: "33a65" (entre 33% y 64%) o "65oMas" (65% o más). Por defecto "33a65".
titularNoQuién tiene la discapacidad. Por defecto "contribuyente".
tipo_marginalNoTipo marginal de IRPF para estimar el ahorro (%). Valores habituales: 19, 24, 30, 37, 45, 47. Por defecto 24.
necesita_asistenciaNo¿Acredita necesidad de ayuda de terceros o movilidad reducida? (añade 3.000 €). Por defecto false.

TDQS

A4/5.0
Behavior4/5

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

Annotations already indicate readOnlyHint=true, so no contradiction. The description adds important behavioral context: it clarifies that the deduction reduces taxable base (not tax directly) and that it estimates savings using the marginal rate. It also specifies legal articles and amounts. This goes beyond typical calculation descriptions, though it does not detail all edge cases or assumptions.

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 of about 4 sentences, efficiently conveying purpose, legal basis, amounts, and behavior. It front-loads the main action. It could be slightly more structured (e.g., bullet points for amounts) but is concise and clear without wasted words.

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

Completeness3/5

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

Given the tool has no output schema and 4 parameters, the description lacks explicit mention of return values or expected output format. It states it 'calculates' and 'estimates savings' but does not specify whether it returns a single number, a breakdown, or an object. For a complete understanding, an agent might need to infer the output from context. Additionally, it does not address potential errors or prerequisites (e.g., tax year).

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 each parameter having a description. The tool description adds meaning by explaining the amounts associated with the 'grado' parameter (e.g., 3,000€ for 33%-64%) and the additional 3,000€ for assistance needs, which enriches understanding of 'necesita_asistencia'. However, it does not explicitly describe the 'titular' or 'tipo_marginal' parameters beyond the schema.

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 minimum for disability in IRPF, with specific legal references (Ley 35/2006, arts. 60-65) and amounts based on disability degree and assistance needs. It also explains it estimates tax savings using marginal tax rate and notes it reduces taxable base, not tax directly. This specificity distinguishes it from sibling tools like calcular_irpf or other deduction calculators.

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

Usage Guidelines3/5

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

The description implies use when calculating the disability deduction in Spanish IRPF, but it does not explicitly state when to use this tool versus alternatives (e.g., other deduction calculators or general IRPF estimator). No explicit 'when not to use' or comparison with siblings is provided, leaving some ambiguity for an AI agent.

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