Skip to main content
Glama

Próceres · escritos judiciales de España: papeleta, demanda y recursos

Cuánto corresponde por un despido: indemnización, salarios de tramitación y finiquito

cuantias_laborales
Read-only

Calcula, con los MISMOS motores que la web de /vida-laboral, lo que le tienen que pagar a un trabajador por un despido: la indemnización por improcedencia (33 días por año, y 45 por los años anteriores al 12/02/2012, con su tope de 24 mensualidades), la del despido objetivo (20 días por año, tope de 12 mensualidades), los salarios de tramitación si hay readmisión o el despido es nulo, y el finiquito (los días trabajados del último mes, las pagas extra devengadas y las vacaciones sin disfrutar). Devuelve cada partida con su importe y su precepto (ET) y, aparte, lo que el cálculo no ha podido cerrar. Lo que se le da son hechos: el salario bruto anual, la fecha de alta, la fecha del cese, el tipo de despido y, si se saben, el mínimo del convenio y los días de vacaciones que quedan. No entra ni sale nada que identifique a nadie. No pide ni devuelve datos personales: el nombre, el DNI, el domicilio y el contacto NO están entre sus campos (el escrito los deja como huecos entre corchetes para que los rellene quien lo presenta). No le pidas esos datos y no los escribas en la llamada.

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": {
      "salarioBrutoAnual": "<salarioBrutoAnual>",
      "fechaAlta": "<fechaAlta>"
    },
    "name": "cuantias_laborales"
  }
}

Input Schema

NameRequiredDescriptionDefault
hoyNoLa fecha de hoy (AAAA-MM-DD), para los salarios de tramitación y el finiquito. Por defecto, hoy.
fechaAltaYesLa fecha de alta en la empresa (AAAA-MM-DD): el principio de la antigüedad. Sin ella no hay indemnización que calcular.
fechaBajaNoLa fecha del cese, o el último día trabajado (AAAA-MM-DD). Si no se dice, la cuenta va hasta hoy y la respuesta lo advierte.
pagasExtraNoCuántas pagas extra al año hay: 2 (las habituales, por defecto) o 0 si van prorrateadas dentro del salario mensual.
tipoDespidoNoEl tipo de despido que dice la carta: «objetivo» o «colectivo» añaden la escala de 20 días por año; «disciplinario» y «no_consta» solo la improcedencia.
salarioBrutoAnualYesEl salario bruto ANUAL en euros, con la prorrata de las pagas extra ya dentro (es como lo maneja el motor: bruto anual entre 365 da el salario diario).
salarioConvenioAnualNoEl mínimo de la tabla del convenio para la categoría, en bruto anual, si se conoce. Sin él, el salario no se da por determinado y el total no se cierra.
diasVacacionesPendientesNoLos días de vacaciones que quedan sin disfrutar, si se saben: el finiquito los paga a salario diario. Sin este dato, el finiquito prorratea 30 días naturales al año y avisa de que hay que restarle las disfrutadas.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Beyond the readOnlyHint/closed-world annotations, it discloses the computation engines used (same as /vida-laboral), the legal bases (ET preceptos per line item), and that it returns separately whatever the calculation could not close. This last point is important non-obvious behavior: incomplete inputs yield an open rather than a failing result. It does not discuss rate limits or performance, which are irrelevant here.

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 legal substance is front-loaded effectively, but the closing sentences about personal data are repeated three times in close succession ('No entra ni sale nada que identifique a nadie', 'No pide ni devuelve datos personales', 'No le pidas esos datos y no los escribas'). That repetition costs space without adding information, and the single dense paragraph is harder to scan than the size warrants.

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 an eight-parameter computation tool with no output schema, the description covers what is returned (each line item with amount and ET precepto, plus unresolved items) and the input hechos, including the failure mode when convenio salary is missing. The main shortfall is that the exact response shape is not sketched, though the legal itemization effectively substitutes for it.

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 already 100%, so the schema documents all eight parameters including the enum values and defaults. The description adds only a summary listing of the inputs and does not, for example, spell out the hoy default or the pagasExtra proration rule beyond what the schema says. Baseline 3 applies when the schema carries the semantics.

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 states a specific verb (calcula) and enumerates the exact outputs: indemnización por improcedencia with the 33/45-day dual scale and 24-month cap, despido objetivo at 20 days with 12-month cap, salarios de tramitación, and finiquito. This distinguishes it from siblings like demanda_juzgado_social or papeleta_conciliacion, which draft documents rather than quantify amounts.

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?

It makes clear this is a pure quantification tool fed by 'hechos' (salario bruto anual, fecha de alta, fecha de cese, tipo de despido, and optionally convenio minimum and vacation days), and explicitly says no personal data goes in or out. It does not name an alternative sibling or state when-not-to-use it, keeping it below a 5.

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