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. Ese incremento procede ante CUALQUIERA de tres supuestos ALTERNATIVOS (basta uno): acreditar ayuda de terceras personas, acreditar movilidad reducida, o tener un grado igual o superior al 65% —con grado ≥65% se aplica siempre, sin acreditar nada más—. El mínimo NO reduce la base liquidable: se grava a tipo cero (art. 63.1.2º LIRPF), de modo que el ahorro NO depende del tipo marginal del contribuyente y se valora a los tipos bajos de la escala. Si el contribuyente es trabajador activo y se da su salario bruto, suma además el incremento de gastos deducibles del art. 19.2.f LIRPF (3.500 €, o 7.750 € con ayuda de terceros, movilidad reducida o grado ≥65%), que SÍ reduce la base y se valora a su tipo marginal.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calcular_deduccion_discapacidad"
  }
}

Input 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".
necesita_asistenciaNo¿Acredita necesidad de ayuda de terceras personas o movilidad reducida? (añade 3.000 €). Por defecto false. Irrelevante con grado "65oMas": ahí los 3.000 € se aplican por el propio grado aunque este parámetro sea false.
salario_bruto_trabajador_activoNoSalario bruto anual en € si el contribuyente con discapacidad es trabajador activo (por cuenta ajena). Activa el incremento de gastos del art. 19.2.f. Se ignora si el titular no es "contribuyente". Supone que el salario es su única renta.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / salario_bruto_trabajador_activo
      Added value: +{
      +  "description": "Salario bruto anual en € si el contribuyente con discapacidad es trabajador activo (por cuenta ajena). Activa el incremento de gastos del art. 19.2.f. Se ignora si el titular no es \"contribuyente\". Supone que el salario es su única renta.",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
  2. Changed1 schema field changed
    • removedInput schema / properties / tipo_marginal
      Removed value: -{
      -  "description": "Tipo marginal de IRPF para estimar el ahorro (%). Valores habituales: 19, 24, 30, 37, 45, 47. Por defecto 24.",
      -  "maximum": 100,
      -  "minimum": 0,
      -  "type": "number"
      -}
  3. Changed1 schema field changed
    • changedInput schema / properties / necesita_asistencia / description
      Previous value: -"¿Acredita necesidad de ayuda de terceros o movilidad reducida? (añade 3.000 €). Por defecto false."New value: +"¿Acredita necesidad de ayuda de terceras personas o movilidad reducida? (añade 3.000 €). Por defecto false. Irrelevante con grado \"65oMas\": ahí los 3.000 € se aplican por el propio grado aunque este parámetro sea false."
  4. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=true, so the description carries the burden and does add real context: the minimum does not reduce the base liquidable but is taxed at a zero rate (art. 63.1.2º), so the saving does not depend on the marginal rate, unlike the art. 19.2.f expense increment which does. That distinction is genuinely useful behavior beyond the annotations, but it never says what the response actually contains or in what units/format the figures come back.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The key amounts are front-loaded, which is good, but the prose is dense with nested parentheticals and long multi-clause sentences. The three alternative supuestos are enumerated twice (once for the 3.000 € increment, again inside the 3.500 €/7.750 € parenthetical), costing readability without adding information.

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 does the work of stating what gets computed: the 3.000 €/9.000 € minimum, the 3.000 € increment, and the 3.500 €/7.750 € expense increment. Combined with the tax-treatment explanation, an agent can call and interpret it correctly; only the shape of the returned result is left unspecified.

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 already 100% with detailed per-parameter descriptions, so the baseline is 3. The description adds modest but real meaning by framing the assistance/mobility condition as three ALTERNATIVE triggers where one suffices, and by restating that grado ≥65% overrides necesita_asistencia, which sharpens the boolean's semantics beyond the schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource: 'Calcula el mínimo por discapacidad en el IRPF', scoped to the taxpayer or a dependent ascendant/descendant, with the concrete amounts (3.000 €/9.000 €). It is narrow and distinguishable from broad siblings such as calcular_irpf, but it never explicitly positions itself against those siblings, leaving that inference to the agent.

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?

Usage conditions inside the calculation are spelled out with unusual precision: the 3.000 € increment applies under ANY one of three ALTERNATIVE conditions, and with grado ≥65% it applies always without further proof. It also states when the salary parameter activates (only for an active worker who is the taxpayer) and that it assumes salary is the sole income. What is missing is tool-selection guidance, i.e. when to call this instead of calcular_irpf.

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