Skip to main content
Glama

calcular_reduccion_jornada

Read-only

Calcula el impacto económico de una reducción de jornada por guarda legal (cuidado de hijo menor de 12 años, familiar que no puede valerse por sí mismo o menor con cáncer u otra enfermedad grave). La reducción va de 1/8 a 1/2 de la jornada (al menos la mitad en la de enfermedad grave) y el salario baja proporcionalmente. Indica el salario reducido, la merma mensual/anual y cómo cuentan las cotizaciones en la Seguridad Social (los tres primeros años se computan al 100 % para jubilación, incapacidad permanente, muerte y supervivencia y nacimiento).

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": {
      "motivo": "<motivo>",
      "salario_bruto_mensual_completo": "<salario_bruto_mensual_completo>",
      "horas_semanales_completas": "<horas_semanales_completas>",
      "fraccion_reduccion": "<fraccion_reduccion>"
    },
    "name": "calcular_reduccion_jornada"
  }
}

Input Schema

NameRequiredDescriptionDefault
motivoYes"hijo_menor_12" = menor de 12 años · "discapacidad_familiar" = persona con discapacidad sin actividad retribuida · "familiar_dependiente" = cónyuge, pareja o familiar hasta 2.º grado que no puede valerse · "hijo_discapacidad_grave" = menor con cáncer u otra enfermedad grave · "otro" = fuera del art. 37.6 ET
fraccion_reduccionYesFracción de reducción (entre 0 y 1). Ej: 0,5 = media jornada; 0,125 = 1/8
en_primeros_3_aniosNo¿Está dentro de los tres primeros años de reducción? En ese tramo las cotizaciones se computan al 100 % (art. 237.3 LGSS). No cuenta en la de enfermedad grave, protegida todo el periodo. Por defecto true.
horas_semanales_completasYesHoras semanales a jornada completa según contrato
salario_bruto_mensual_completoYesSalario bruto mensual a jornada completa (€)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / en_primeros_3_anios
      Added value: +{
      +  "description": "¿Está dentro de los tres primeros años de reducción? En ese tramo las cotizaciones se computan al 100 % (art. 237.3 LGSS). No cuenta en la de enfermedad grave, protegida todo el periodo. Por defecto true.",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / menos_de_24_meses
      Removed value: -{
      -  "description": "¿Lleva menos de 24 meses en reducción? (en ese tramo la cotización SS se mantiene a base completa). Por defecto true.",
      -  "type": "boolean"
      -}
    • changedInput schema / properties / motivo / description
      Previous value: -"Motivo de la reducción de jornada"New value: +"\"hijo_menor_12\" = menor de 12 años · \"discapacidad_familiar\" = persona con discapacidad sin actividad retribuida · \"familiar_dependiente\" = cónyuge, pareja o familiar hasta 2.º grado que no puede valerse · \"hijo_discapacidad_grave\" = menor con cáncer u otra enfermedad grave · \"otro\" = fuera del art. 37.6 ET"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries most of the burden and does so well: it discloses the computation (salary drops proportionally), the legal reduction range, and the contribution-counting rule for the first three years, including the exception for grave illness. It stops short of stating rounding, currency assumptions or precision of the figures.

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?

Three dense sentences, front-loaded with purpose and followed by the computational rules and the returned figures, with no filler. The single paragraph is compact but slightly crowded, mixing eligibility, range and output in one block.

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

Completeness5/5

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

There is no output schema, and the description compensates fully by naming what is returned: reduced salary, monthly and annual loss, and how Social Security contributions are counted. Combined with the enum-documented motivo parameter, an agent has everything needed to call it correctly.

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 the baseline would be 3, but the description adds meaning the schema does not: it constrains fraccion_reduccion to the legally valid band of 1/8 to 1/2 (with at least half required for grave illness), which is narrower than the schema's 0.01–0.99. It also explains that the salary input is the full-time gross monthly figure whose loss is proportional.

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 opens with a precise verb+resource: it calculates the economic impact of a working-hours reduction for legal guardianship, and it enumerates the exact qualifying situations (child under 12, dependent relative, seriously ill minor). An agent can distinguish this from pension or severance calculators without inspecting 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 Guidelines3/5

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

The qualifying legal scenarios imply when the tool applies, and the stated 1/8 to 1/2 range implicitly bounds valid inputs. However, no alternative tool is named and no explicit when-not guidance is given, even though siblings like calcular_excedencia or calcular_baja_medica sit adjacent to this scenario.

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