Skip to main content
Glama

Liquidación final e indemnización por despido

liquidacion_final
Read-onlyIdempotent

Calcula la liquidación final de un empleado en relación de dependencia en Argentina: días trabajados, aguinaldo proporcional, vacaciones no gozadas y, si es despido sin causa, indemnización por antigüedad (art. 245 con la Ley 27.802), preaviso e integración del mes. Devuelve cada rubro, el total y los aportes estimados. Con convenio=comercio aplica el tope indemnizatorio publicado (Disp. DNRyRT 254/2026) y dice si está desactualizado. No incluye multas ni rubros del convenio; para los intereses de un crédito laboral en juicio usá intereses_judiciales (Índices AR). Costo: 2 crédito(s).

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": {
      "fecha_ingreso": "<fecha_ingreso>",
      "fecha_egreso": "<fecha_egreso>",
      "motivo": "<motivo>",
      "mejor_remuneracion": "<mejor_remuneracion>"
    },
    "name": "liquidacion_final"
  }
}

Input Schema

NameRequiredDescriptionDefault
motivoYesdespido_sin_causa | renuncia | despido_con_causa | mutuo_acuerdo
convenioNo"comercio" (CCT 130/75): usa el tope publicado en el Boletín Oficial para la fecha del despido, con su norma. Si el último tope publicado es viejo, lo avisa y da el rango
provinciaNoProvincia donde trabajaba: en Comercio el tope cambia en Río Negro, Neuquén, Chubut, Santa Cruz y Tierra del Fuego
fecha_egresoYesÚltimo día de trabajo (fecha del despido o de la renuncia), YYYY-MM-DD
fecha_ingresoYesFecha de ingreso, YYYY-MM-DD
sueldo_actualNoSueldo bruto del último mes, si es distinto. Por defecto, la mejor remuneración
tope_convenioNoTope indemnizatorio del convenio colectivo (3 veces el promedio), si se conoce. Gana sobre el que buscamos con convenio
preaviso_otorgadoNotrue si el empleador avisó el despido con la anticipación legal. Por defecto, false
mejor_remuneracionYesMejor remuneración mensual, normal y habitual del último año, bruta (sin aguinaldo, vacaciones ni premios no mensuales)
vacaciones_gozadasNoDías de vacaciones del año del egreso que ya se tomaron
mejor_sueldo_semestreNoMejor sueldo bruto del semestre, para el aguinaldo. Por defecto, la mejor remuneración

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / convenio
      Added value: +{
      +  "description": "\"comercio\" (CCT 130/75): usa el tope publicado en el Boletín Oficial para la fecha del despido, con su norma. Si el último tope publicado es viejo, lo avisa y da el rango",
      +  "enum": [
      +    "comercio"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / provincia
      Added value: +{
      +  "description": "Provincia donde trabajaba: en Comercio el tope cambia en Río Negro, Neuquén, Chubut, Santa Cruz y Tierra del Fuego",
      +  "maxLength": 60,
      +  "minLength": 3,
      +  "type": "string"
      +}
    • changedInput schema / properties / tope_convenio / description
      Previous value: -"Tope indemnizatorio del convenio colectivo (3 veces el promedio), si se conoce"New value: +"Tope indemnizatorio del convenio colectivo (3 veces el promedio), si se conoce. Gana sobre el que buscamos con convenio"
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuinely new behavior: the 2-credit cost, the returned shape (per-rubro, total, estimated aportes), the staleness warning when the published tope is outdated, and the not-included rubros. It stops short of explaining failure or validation behavior for inconsistent dates/amounts.

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?

A single dense paragraph with no filler: purpose and rubros first, then conditional behavior, then exclusions and the sibling hand-off, then cost. Every clause carries information an agent needs, and the ordering is front-loaded on the main use case.

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 and 11 parameters, the description carries the return-value burden and does so at a summary level (each rubro, total, estimated aportes) while flagging the tope-staleness signal. It is sufficient to call correctly, though it could spell out the response fields more concretely for a tool with this many inputs.

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 the baseline is 3, but the description adds cross-parameter meaning the schema states only in fragments: convenio=comercio activates the published tope with its governing norm, and the tool reports when that tope is stale, giving a range instead. That interaction-level context exceeds what per-field descriptions convey.

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 (Calcula) and resource (liquidación final) and then enumerates the exact rubros computed: días trabajados, aguinaldo proporcional, vacaciones no gozadas, art. 245 indemnización, preaviso e integración del mes. It also marks its boundaries ('No incluye multas ni rubros del convenio'), so an agent can tell what it does and does not cover without opening 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 Guidelines4/5

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

Gives clear conditional guidance ('si es despido sin causa' triggers indemnización) and explicit exclusions, plus a named alternative for a related need: intereses_judiciales for litigation interest. It does not distinguish itself from the sibling tools calcular_aguinaldo and calcular_vacaciones, whose scope this tool partially absorbs, leaving that routing decision to inference.

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