Skip to main content
Glama

Calcular el aguinaldo (SAC)

calcular_aguinaldo
Read-onlyIdempotent

Calcula el sueldo anual complementario (aguinaldo) de un empleado en relación de dependencia en Argentina: 50 % de la mejor remuneración mensual del semestre, proporcional a los días trabajados si entró o se fue durante el semestre. Devuelve bruto, aportes (17 %), neto y la fecha límite de pago. Para la liquidación final completa por despido o renuncia usá liquidacion_final. Costo: gratis.

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": {
      "mejor_sueldo": "<mejor_sueldo>",
      "anio": "<anio>",
      "semestre": "<semestre>"
    },
    "name": "calcular_aguinaldo"
  }
}

Input Schema

NameRequiredDescriptionDefault
anioYesAño del semestre
semestreYes1 = enero a junio (vence el 30/06); 2 = julio a diciembre (vence el 18/12)
con_aportesNoDescontar los aportes del 17 % (por defecto, sí)
fecha_egresoNoYYYY-MM-DD, si dejó de trabajar durante el semestre
mejor_sueldoYesMejor remuneración mensual bruta del semestre, en pesos
fecha_ingresoNoYYYY-MM-DD, si entró durante el semestre

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, closed-world behavior, so the description's burden is lighter. It still adds real context: the exact output fields (bruto, aportes, neto, fecha límite de pago), the 17 % deduction rate, and that the call is free of cost. Missing only edge details such as rounding rules or minimum-service requirements.

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?

Front-loaded with the purpose and formula, then a single routing sentence and a cost note — no filler. The first sentence is dense with a colon-list and a conditional clause, which slows parsing slightly but every element carries information.

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

Completeness5/5

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

There is no output schema, and the description compensates by enumerating the returned values (bruto, aportes, neto, fecha límite de pago). Combined with the formula, proration rule, and sibling routing, an agent has everything needed to call this correctly.

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 the baseline would be 3; the description earns more by linking the proration rule to fecha_ingreso/fecha_egreso ("proporcional a los días trabajados si entró o se fue durante el semestre") and by explaining what con_aportes controls (17 % deduction). It adds interpretation of how parameters interact, not just restatement.

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 el sueldo anual complementario (aguinaldo)") and immediately gives the computation rule (50 % de la mejor remuneración mensual del semestre, prorrateado por días trabajados). It also names the sibling it is not (liquidacion_final), so an agent can distinguish it 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?

Explicitly routes the agent elsewhere for termination/resignation settlements: "Para la liquidación final completa por despido o renuncia usá liquidacion_final." The positive use case (aginaldo for an empleado en relación de dependencia in a given semester) is clear from the opening. It does not cover other plausible alternatives such as sueldo_neto or calcular_vacaciones, leaving some routing 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