Skip to main content
Glama

Chato — Control de asistencia por WhatsApp

Registrar vacaciones o permiso

registrar_vacaciones_o_permiso

Registra una ausencia justificada de una persona por un rango de días completos (ambos incluidos): "vacaciones" (vacaciones), "incapacidad" (incapacidad), "permiso_con_goce" (permiso con goce de sueldo), "permiso_sin_goce" (permiso sin goce de sueldo). En los días laborables de su horario dentro del rango ya no tendrá falta en la lista, el Excel de nómina ni el registro de jornada. No se puede editar ni borrar después: si está mal, se cancela en el panel y se registra de nuevo, así que confirma persona, tipo y fechas con el usuario antes de llamarla. Úsala para "Karla sale de vacaciones del 22 al 31 de diciembre" o "Luis trae incapacidad del IMSS del 3 al 5, folio AB123". Register a vacation, sick leave or permit.

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": {
      "empleado": "<empleado>",
      "tipo": "<tipo>",
      "desde": "<desde>"
    },
    "name": "registrar_vacaciones_o_permiso"
  }
}

Input Schema

NameRequiredDescriptionDefault
notaNoNota corta: quién lo autorizó, motivo.
tipoYesTipo de ausencia: "vacaciones" (vacaciones), "incapacidad" (incapacidad), "permiso_con_goce" (permiso con goce de sueldo), "permiso_sin_goce" (permiso sin goce de sueldo).
desdeYesPrimer día, AAAA-MM-DD.
folioNoFolio de la incapacidad del IMSS u otro comprobante.
hastaNoÚltimo día, AAAA-MM-DD (incluido). Por defecto el mismo que "desde".
empresaNoNombre de la empresa. Solo hace falta cuando el usuario tiene varias empresas en Chato.
empleadoYesNombre o código de la persona.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: it discloses that the record is immutable (cannot be edited or deleted, only cancelled and re-registered in the panel) and that it removes the absence from the list, payroll Excel and workday log — the exact consequences an agent needs before writing. This is consistent with destructiveHint=false (an additive write) and idempotentHint=false (calling twice would create duplicates).

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?

The critical constraint (no editing/deleting, confirm before calling) is front-loaded in the second sentence and nothing is buried. It is slightly dense in a single long sentence listing types, and the trailing English translation "Register a vacation, sick leave or permit." adds little for a Spanish-language tool.

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?

For a 7-parameter mutation with no output schema, the description covers the essential risks: irreversibility, downstream effects, and the confirmation requirement. It does not say what the call returns on success or how it behaves when the employee is ambiguous (several empleados or múltiples empresas), which is the main remaining gap.

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 is 3; the description still adds meaning by stating the range is inclusive of both ends and covers full days, and it names the four tipo values. The example carrying a folio ("folio AB123") shows how the folio parameter is used in practice, though it says nothing extra about empresa, nota, or empleado lookup.

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?

Starts with a specific verb+resource ("Registra una ausencia justificada de una persona por un rango de días completos") and enumerates the four absence types with glosses. The statement about the downstream effect (absence disappears from the list, payroll Excel and workday record) clearly separates it from read-only siblings such as vacaciones_y_permisos.

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?

Provides worked user phrasings ("Karla sale de vacaciones del 22 al 31 de diciembre", "Luis trae incapacidad del IMSS… folio AB123") that make the intended trigger concrete, plus a mandatory pre-call confirmation step. It does not explicitly name a sibling tool to use instead for querying or for correcting an existing record, only the instruction to fix errors in the panel.

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