Skip to main content
Glama

Calcular los días y el pago de vacaciones

calcular_vacaciones
Read-onlyIdempotent

Calcula cuántos días de vacaciones le corresponden a un empleado en relación de dependencia en Argentina (14, 21, 28 o 35 según la antigüedad al 31/12, o proporcionales si entró en el año) y, con el sueldo, cuánto se cobra (sueldo ÷ 25 por día). Incluye el período para tomarlas y el aviso. No contempla los días extra que pueda dar el convenio colectivo. 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": {
      "fecha_ingreso": "<fecha_ingreso>",
      "anio": "<anio>"
    },
    "name": "calcular_vacaciones"
  }
}

Input Schema

NameRequiredDescriptionDefault
anioYesAño de las vacaciones (el que cierra el 31/12)
fecha_ingresoYesFecha de ingreso al trabajo, YYYY-MM-DD
sueldo_mensualNoSueldo bruto mensual, para calcular el pago

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the safe pure-calculation profile is covered. The description adds real value with the computation rules, the convenio-collective exclusion and the 'Costo: gratis' note, plus a hint that the response includes the period and notice. It stops short of describing the return shape or how partial-year proportionality is rounded.

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 core calculation followed by scope limits and cost; every clause carries information. The single dense sentence with nested parentheses is slightly heavy, but nothing is redundant.

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 only three fully documented parameters, no output schema and clear annotations, the description covers what the tool computes, its legal assumptions, its exclusions and its cost. Only the shape and rounding of the returned figures is left unspecified.

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 goes further by tying 'sueldo' to the pay half of the result, implying sueldo_mensual is optional and that omitting it yields only the day count. It also anchors the antigüedad calculation to 31/12, adding meaning to the anio parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ('Calcula cuántos días de vacaciones le corresponden a un empleado en relación de dependencia en Argentina') and even discloses the underlying scale (14/21/28/35 or proportional) and the pay formula (sueldo ÷ 25). The domain is unmistakably vacation-specific, but no sibling such as calcular_aguinaldo or liquidacion_final is named, so differentiation is left implicit.

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 implied by the scenario described (an Argentine employee with a hire date and a reference year), and the explicit exclusion 'No contempla los días extra que pueda dar el convenio colectivo' warns of an out-of-scope case. However, there is no explicit when-to-use versus when-to-use-an-alternative statement or prerequisite framing.

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