Skip to main content
Glama

calcular_modelo_130

Read-only

Calcula el pago fraccionado trimestral del IRPF de un autónomo en estimación directa (Modelo 130). Fórmula: 20% del rendimiento neto acumulado (ingresos − gastos) desde el 1 de enero, menos las retenciones soportadas y los pagos fraccionados de trimestres anteriores. Si más del 70% de los ingresos provienen de clientes que retienen, no hay obligación de presentarlo. Para una visión global del autónomo usa "consulta_autonomo".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
trimestreYesTrimestre del pago fraccionado: T1 (ene-mar), T2 (abr-jun), T3 (jul-sep), T4 (oct-dic)
ingresos_acumuladosYesIngresos (facturación) acumulados desde el 1 de enero hasta el fin del trimestre, en euros
retenciones_acumuladasNoRetenciones practicadas por clientes acumuladas en el período, en euros. Por defecto 0.
mas_70pct_con_retencionNo¿Más del 70% de los ingresos vienen de clientes obligados a retener? (exime de presentar el Modelo 130). Por defecto false.
gastos_deducibles_acumuladosYesGastos deducibles acumulados desde el 1 de enero, en euros (compras, cuota de autónomo, alquileres, suministros, amortizaciones...)
pagos_fraccionados_anterioresNoSuma de los Modelo 130 ya ingresados en trimestres anteriores del mismo año, en euros. Por defecto 0.

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true, and the description confirms it's a calculation (no side effects). It adds value by explaining the formula and the exemption condition, which helps the agent understand the behavior beyond the annotation. The description does not mention any auth or rate limits, but given it's a read-only calculator, this is acceptable.

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

Conciseness5/5

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

The description is three sentences long, front-loaded with the core purpose, and no redundant information. Every sentence adds value: purpose, formula with exemption, alternative tool. It is highly concise and well-structured.

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 6 parameters with 100% schema coverage, no output schema, and moderate complexity, the description is fairly complete. It explains the calculation, a key exemption, and provides an alternative. However, it does not describe the output format or indicate whether the result can be negative (e.g., if deductions exceed income). This slight gap prevents a perfect score.

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 description coverage is 100%, so baseline is 3. The description adds moderate value by explaining the formula (e.g., '20% del rendimiento neto acumulado (ingresos − gastos) menos retenciones y pagos fraccionados anteriores'), which conceptually ties parameters together. It also covers the boolean parameter (mas_70pct_con_retencion) via the exemption condition. This provides semantic context beyond individual parameter descriptions.

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 quarterly fractionated payment of IRPF for autónomos in estimación directa (Modelo 130). It specifies the exact tax form and regime, and differentiates from sibling tools like consulta_autonomo by mentioning it for global view. The purpose is specific and unambiguous.

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 gives explicit when-to-use context (quarterly IRPF payment for autónomos in estimación directa) and a condition for non-obligation (>70% income from clients that withhold). It also provides an alternative tool (consulta_autonomo) for a global view. However, it does not explicitly distinguish from other calculation tools like calcular_irpf or calcular_cuota_autonomo, so guidance is slightly incomplete.

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