Skip to main content
Glama

calcular_finiquito_laboral

Read-only

Calculates Chilean labor severance and dismissal claims deterministically using service-year caps, 90 UF base, notice, proportional vacation, Art. 168 surcharges and AFC offsets.

Instructions

Liquida determinísticamente finiquito base y demanda judicial laboral en Chile (Arts. 67, 73, 161-172 CT y Ley 19.728): años de servicio (tope 11 años), base 90 UF, aviso previo, feriado proporcional sin tope UF, recargos Art. 168 CT, descuento y restitución AFC, Ley Bustos y caducidad.

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_termino": "<fecha_termino>",
      "remuneracion_mensual_clp": "<remuneracion_mensual_clp>"
    },
    "name": "calcular_finiquito_laboral"
  }
}

Input Schema

NameRequiredDescriptionDefault
causalNoCausal invocada ('161', '159', '160', '160_sin_motivo_plausible', '171_autodespido', 'renuncia')161
uf_valorNoValor UF manual del último día del mes anterior al término (opcional)
fecha_ingresoYesFecha de inicio del contrato (YYYY-MM-DD)
fecha_terminoYesFecha de término / separación (YYYY-MM-DD)
aviso_previo_dadoNoTrue si el empleador dio aviso escrito con 30 días de anticipación
aplicar_tope_90_ufNoAplica tope legal de 90 UF del Art. 172 CT
dias_feriado_pendientesNoDías hábiles de feriado pendientes (opcional; si se omite devenga 1,25 días/mes)
aporte_empleador_afc_clpNoAporte del empleador al Seguro de Cesantía (Art. 13 Ley 19.728)
remuneracion_mensual_clpYesÚltima remuneración mensual Art. 172 CT en CLP
es_trabajador_anterior_1981NoTrue si ingresó antes del 14-08-1981 (sin tope de 11 años)
meses_cotizaciones_impagas_ley_bustosNoMeses de nulidad del despido estimados (Art. 162 CT)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so safety is covered. The description goes further by enumerating which computations are performed and which statutory caps apply (11-year ceiling, 90 UF base, proportional vacation without UF cap, Art. 168 surcharges, AFC restitution, Ley Bustos, caducidad), which tells the agent what the deterministic result will contain.

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?

A single dense sentence with the core purpose front-loaded before the parenthetical list of statutory components. Every clause carries domain information, though the run-on structure with a long comma-separated enumeration makes it harder to scan than a two- or three-sentence layout would be.

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

Completeness3/5

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

For an 11-parameter legal calculation tool with no output schema, the description explains the legal inputs modeled but not the shape of the return (itemized breakdown? totals? currency/rounding) nor the fallback when uf_valor is absent. It is adequate to select the tool, but not fully sufficient to predict what comes back.

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%, so the baseline is 3. The description does map several parameters to their legal basis (tope 11 años ↔ es_trabajador_anterior_1981, tope 90 UF ↔ aplicar_tope_90_uf, feriado proporcional ↔ dias_feriado_pendientes, AFC ↔ aporte_empleador_afc_clp, Ley Bustos ↔ meses_cotizaciones_impagas), but it adds no detail on how causal values drive surcharges or how UF is resolved when uf_valor is omitted.

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 names a specific verb ('Liquida determinísticamente') and a precise resource ('finiquito base y demanda judicial laboral en Chile'), anchored to concrete statutes (Arts. 67, 73, 161-172 CT, Ley 19.728). It is unmistakably distinct from siblings like calcular_cuantias_legales or calcular_plazo_procesal, which cover different calculation domains.

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?

Usage is only implied: the verb and the legal citations suggest this is the tool for Chilean severance liquidation, but there is no explicit statement of when to use it versus calcular_cuantias_legales or calcular_plazo_procesal, and no when-not guidance (e.g. that it does not cover non-Chilean jurisdictions or non-labor claims).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools