Skip to main content
Glama

Chato — Control de asistencia por WhatsApp

Horas para nómina

horas_para_nomina
Read-only

Por persona, en un rango de fechas (una quincena, una semana, un mes): días con registro, retardos y sus minutos, faltas, ausencias justificadas (vacaciones, incapacidades y permisos registrados, que no son faltas), días con entrada pero sin salida registrada, días con salida pero sin entrada aceptada, y horas trabajadas. Son los mismos números que el Excel de nómina del panel. Úsala para "dame las horas de la quincena", "¿cuántas faltas tuvo cada quien en octubre?" o "¿quién tiene días sin salida?". Payroll hours, lates and absences per employee for a period.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "horas_para_nomina"
  }
}

Input Schema

NameRequiredDescriptionDefault
desdeNoInicio del rango, AAAA-MM-DD. Por defecto, los 15 días que terminan en "hasta" (contando ese día).
hastaNoFin del rango, AAAA-MM-DD. Por defecto hoy.
sitioNoNombre del sitio (obra, sucursal, cliente). Por defecto todos.
empresaNoNombre de la empresa. Solo hace falta cuando el usuario tiene varias empresas en Chato.
empleadoNoNombre o código de una persona, para ver solo a ella.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description goes beyond that by defining business semantics — justified absences (vacations, disabilities, permits) are explicitly not counted as faltas, and the numbers are stated to match the payroll Excel in the panel, which tells the agent the output is authoritative. It does not disclose ordering, aggregation granularity beyond 'por persona', or any volume/pagination behavior, so it remains incremental rather than rich.

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 scope ('Por persona, en un rango de fechas') immediately followed by the returned fields, which is the right priority for a schema with no output definition. The example utterances earn their space as disambiguation cues. The closing English sentence is a useful bilingual anchor but slightly redundant given the Spanish text.

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?

Since there is no output schema, the description correctly spends its budget enumerating return fields and business definitions, which is exactly what an agent needs here. With all five optional parameters fully documented in the schema and annotations covering read-only behavior, the remaining gap is sibling routing — nothing tells the agent why to prefer this over asistencia_del_dia or historial_de_empleado.

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% and every parameter already documents its format and default (AAAA-MM-DD, defaults to the 15 days ending at 'hasta', site/company defaults). The description only adds the framing that the range maps to a quincena/week/month and that results are grouped per person, which the 'empleado' parameter already implies. Baseline 3 applies.

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 resource (hours/payroll metrics per person over a date range) and enumerates the exact metrics returned: days with records, lates and their minutes, absences, justified absences, entry-without-exit days, exit-without-entry days, and hours worked. The final English sentence restates it compactly. An agent can identify the tool 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?

It gives three explicit trigger phrasings (hours for the fortnight, absences per person in October, who has days without an exit), which is strong positive guidance. What it lacks is negative guidance: no statement such as 'for a single day use asistencia_del_dia' or 'for one employee's full timeline use historial_de_empleado', so the boundary with sibling tools is left 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