Skip to main content
Glama

calcular_prestacion_maternidad_paternidad

Read-only

Calcula la prestación por nacimiento/adopción (maternidad/paternidad) de un progenitor. Tras el RDL 9/2025, la duración es de 19 semanas por progenitor en familias biparentales (32 semanas en familias monoparentales), al 100% de la base reguladora. Devuelve la cuantía diaria y mensual, la duración total (con extras por parto múltiple o discapacidad), las 6 semanas obligatorias y el reparto de las semanas flexibles, y verifica el período de carencia según la edad.

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": {
      "base_cotizacion_mensual": "<base_cotizacion_mensual>",
      "edad_progenitor": "<edad_progenitor>"
    },
    "name": "calcular_prestacion_maternidad_paternidad"
  }
}

Input Schema

NameRequiredDescriptionDefault
numero_hijosNoNúmero de hijos en el parto (1=simple, 2+=múltiple, suma semanas). Por defecto 1.
tipo_familiaNoTipo de familia: "biparental" (19 semanas, por defecto) o "monoparental" (32 semanas, RDL 9/2025).
cumple_carenciaNo¿Cumple el período de carencia exigido? Por defecto true.
edad_progenitorYesTramo de edad del progenitor (determina la carencia exigida)
situacion_laboralNoSituación laboral del progenitor. Por defecto trabajador por cuenta ajena.
hijo_con_discapacidadNo¿Algún hijo con discapacidad ≥33%? (añade 1 semana por progenitor, 2 en familia monoparental). Por defecto false.
base_cotizacion_mensualYesBase de cotización mensual del mes anterior al inicio de la prestación (€)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / hijo_con_discapacidad / description
      Previous value: -"¿Algún hijo con discapacidad ≥33%? (añade 2 semanas). Por defecto false."New value: +"¿Algún hijo con discapacidad ≥33%? (añade 1 semana por progenitor, 2 en familia monoparental). Por defecto false."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

readOnlyHint=true is consistent with a pure calculation, and the description adds substantive context the annotation cannot: the post-RDL 9/2025 duration rules (19 weeks biparental / 32 monoparental), the 100% base reguladora, the multi-birth and disability extensions, and that carencia is verified by age. It stops short of saying whether an unmet carencia yields zero, an error, or a warning flag.

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?

Two dense sentences: identity and scope first, then regulatory parameters and return contents. Every clause maps to a real caller need; the RDL 9/2025 citation and week counts are load-bearing, not padding.

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 usefully enumerates the return payload (daily and monthly amount, total duration, the 6 mandatory weeks, distribution of flexible weeks), so an agent knows what it gets. Minor gaps: currency/units for amounts and the behavior when cumple_carencia is false.

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 description coverage is 100% and the field texts already explain defaults, enums and the week math, so the schema carries the parameter burden. The description reinforces that multiple births and disability add weeks and that age drives the carencia check, but adds no formats, defaults or units beyond what the schema states.

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?

Starts with a specific verb ('Calcula') and a precise resource ('prestación por nacimiento/adopción (maternidad/paternidad) de un progenitor') and even enumerates the outputs. It does not, however, explicitly distinguish itself from the closely related sibling calcular_deduccion_maternidad_irpf, so an agent must infer the boundary from the name alone.

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 use case is implied clearly (a parent's contributory maternity/paternity benefit calculation), but there is no explicit 'use this when… do not use it for…' statement and no mention of the IRPF-deduction alternative. Nothing is misleading, but routing among the many calcular_* siblings is left to the 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.

Resources