Skip to main content
Glama

Herramientas de Ecuador · ADVISE.ia

Calcular la liquidación laboral (Ecuador)

calcular_liquidacion_laboral
Read-onlyIdempotent

Calcula la liquidación laboral (finiquito) de un trabajador del sector privado en Ecuador según la causa de salida (renuncia, despido intempestivo, mutuo acuerdo, fin de obra o servicio, fin de contrato eventual): sueldo de los días del último mes, décimo tercero y décimo cuarto proporcionales, vacaciones no gozadas, fondo de reserva, bonificación por desahucio (25 % de la última remuneración por año, art. 185), indemnización por despido intempestivo (art. 188) y descuento del aporte personal al IESS, con la fórmula y la base legal de cada rubro. Úsala cuando pregunten cuánto le deben pagar a alguien al salir de un trabajo.

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": {
      "causa": "<causa>",
      "fecha_ingreso": "<fecha_ingreso>",
      "fecha_salida": "<fecha_salida>",
      "ultima_remuneracion": "<ultima_remuneracion>"
    },
    "name": "calcular_liquidacion_laboral"
  }
}

Input Schema

NameRequiredDescriptionDefault
causaYesCausa de salida: renuncia = Renuncia voluntaria (desahucio del trabajador); despido = Despido intempestivo; mutuo = Mutuo acuerdo (acuerdo de las partes); obra = Fin de contrato por obra o servicio determinado dentro del giro del negocio; eventual = Fin de contrato eventual u ocasional.
regionNoRegión para el décimo cuarto: «costa» = Costa y Galápagos (por defecto); «sierra» = Sierra y Amazonía.
fecha_salidaYesFecha de salida, último día trabajado (AAAA-MM-DD).
fecha_ingresoYesFecha de ingreso (AAAA-MM-DD).
fondo_reservaNoFondo de reserva (desde el segundo año): «mensual» = lo cobraba en el rol (por defecto); «acumulado» = se deposita en el IESS.
salario_basicoNoSalario básico unificado en USD (por defecto 482, el de 2026).
horas_semanalesNoHoras semanales de la jornada (40 = completa, por defecto).
ultima_remuneracionYesÚltima remuneración mensual en USD (sueldo más horas extra y comisiones habituales). Es la base de la bonificación y la indemnización.
decimo_cuarto_mensualNotrue si cobraba el décimo cuarto cada mes (por defecto false).
remuneracion_promedioNoRemuneración promedio del último año en USD, solo si varía mes a mes (se usa en el décimo tercero y las vacaciones). Por defecto, igual a la última.
decimo_tercero_mensualNotrue si cobraba el décimo tercero cada mes (por defecto false).
desahucio_proporcionalNoPagar en proporción la fracción de año en la bonificación por desahucio (por defecto false: solo años completos).
incluir_sueldo_pendienteNoSumar el sueldo de los días trabajados del último mes (por defecto true).
vacaciones_pendientes_diasNoDías de vacaciones no gozadas de años de servicio ya cumplidos (por defecto 0). Los del año en curso se calculan solos.
incluir_vacaciones_proporcionalesNoSumar las vacaciones proporcionales del año en curso (por defecto true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/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 the safety profile is covered. The description adds real legal context — the statutory basis per rubro, the 25%-per-year desahucio rule, and the fact that each line item comes with its formula and legal basis in the result. It does not disclose assumptions or caveats such as regional variation or the second-year rule for fondo de reserva (both only appear in the schema), so it adds value but not rich behavioral disclosure.

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?

Two sentences, front-loaded with the verb and the scope, then the component list, then the trigger. The long parenthetical enumeration is dense but each element earns its place by telling the agent which rubros are returned. Slight bloat from restating statutory article numbers that repeat information already implied by the rubro names.

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

Completeness1/5

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

No, this is not complete: with 15 parameters, a legal calculation engine and no output schema, the description never describes the return shape beyond saying each rubro carries its formula and legal basis — no totals, currency, breakdown structure or rounding. Given that the output schema is absent, the description carries the full burden of explaining what the agent gets back and leaves it largely unstated.

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 baseline is 3; the description still earns a nudge by tying specific inputs to specific outputs — the four causas map to which rubros apply (despido → art. 188 indemnización, renuncia → desahucio), and it flags that última remuneración is the base for the bonus and indemnización, consistent with the schema. It does not explain region, horas_semanales or the mensual/acumulado fondo options, which live entirely in the schema descriptions.

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 liquidación laboral (finiquito)") scoped to Ecuadorian private-sector workers, and enumerates the exact rubros covered (décimo tercero/cuarto proporcionales, vacaciones, fondo de reserva, desahucio art. 185, indemnización art. 188, descuento IESS). That enumeration implicitly separates it from siblings like calcular_decimo_tercero or calcular_decimo_cuarto, which compute single components.

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?

Ends with an explicit trigger: "Úsala cuando pregunten cuánto le deben pagar a alguien al salir de un trabajo." The causa enumeration also signals it handles all exit types. It stops short of naming an alternative or an exclusion (e.g., when to use the single-rubro calculators instead), so it is clear context rather than full when/when-not routing.

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