Skip to main content
Glama

calcular_indemnizacion_despido

Read-only

Calcula solo la indemnización por despido según el tipo (improcedente 33 días/año, objetivo/ERE 20 días/año), con topes y tramo dual pre-2012. Para el análisis completo con finiquito y paro usa "consulta_despido".

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": {
      "tipo_despido": "<tipo_despido>",
      "salario_bruto_anual": "<salario_bruto_anual>",
      "fecha_inicio": "<fecha_inicio>"
    },
    "name": "calcular_indemnizacion_despido"
  }
}

Input Schema

NameRequiredDescriptionDefault
fecha_inicioYesInicio de la relación laboral (YYYY-MM-DD)
tipo_despidoYesTipo de despido
fecha_despidoNoFecha del despido (YYYY-MM-DD). Por defecto hoy.
antiguedad_pre_2012NoObsoleto: se ignora. El tramo de 45 días/año anterior al 12/02/2012 se aplica solo cuando fecha_inicio es anterior a esa fecha.
salario_bruto_anualYesSalario bruto anual total en euros

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / antiguedad_pre_2012 / description
      Previous value: -"Antigüedad anterior al 12/02/2012 (indemnización dual). Por defecto false."New value: +"Obsoleto: se ignora. El tramo de 45 días/año anterior al 12/02/2012 se aplica solo cuando fecha_inicio es anterior a esa fecha."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and a title explaining the legal basis, so the safety profile is covered. The description adds substantive domain behavior beyond that: which calculation rules apply, that statutory caps are enforced, and that a dual pre-2012 tranche is handled. It does not describe the return shape (single figure vs. itemized breakdown), which matters since there is no output schema.

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?

Two dense sentences with no filler; the scope limit and the calculation rules come first, and the redirect to the sibling closes it. Every clause carries information an agent needs to select and call the tool.

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?

For a read-only, five-parameter calculator with full schema coverage and no output schema, the description covers purpose, legal rules, and the alternative adequately. The only meaningful gap is the absence of any hint about what the response contains (amount, capped amount, tranche breakdown), which the agent must infer.

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 a baseline of 3 applies, but the description adds meaning the schema does not: it maps the tipo_despido enum branches to their respective day-per-year rates and flags the pre-2012 dual tranche. It says nothing extra about salario_bruto_anual or fecha_inicio, but those are already fully documented in 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?

States a specific verb and resource ("Calcula ... la indemnización por despido"), narrows scope with "solo", and encodes the legal rates (33 días/año for improcedente, 20 for objetivo/ERE). It explicitly names the sibling consulta_despido as out of scope, so an agent can distinguish the two without reading either schema.

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

Usage Guidelines5/5

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

Gives both a when-to-use constraint (only the severance amount) and a concrete alternative with its condition ("Para el análisis completo con finiquito y paro usa consulta_despido"). The routing decision is fully resolved in the description.

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