Skip to main content
Glama

Mexican Payroll & Tax Calculator

calc_aguinaldo

Compute a Mexican aguinaldo (year-end bonus): gross, the UMA-based exempt portion, the taxable portion, its ISR, and the net. Minimum 15 days by law. Do NOT compute from memory — the exemption is UMA-indexed per year. Returns gross, taxable, exempt, isr, net, and the days used.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNoTax-table year.
days_workedYesDays worked in the year.
daily_salaryYesDaily salary (MXN).
aguinaldo_daysNoAguinaldo days (defaults to the legal 15).
paid_in_januaryNoJanuary UMA boundary.
monthly_ordinary_salaryNoMonthly ordinary salary for ISR (defaults to daily x 30.4).

TDQS

B3.4/5.0
Behavior3/5

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

No annotations provided, so description carries full burden. States the tool is computational and lists return values, but does not explicitly confirm it is read-only or disclose side effects.

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?

Concise, front-loaded with purpose, and to the point. No superfluous words, though could be slightly better structured (e.g., not using bullet points).

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

Completeness3/5

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

Lists return components and legal minimum, but lacks details on proportional calculation for partial year, edge cases, or formula explanation. Adequate but with gaps.

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%, baseline is 3. The description adds context about UMA-indexed exemption and default days, but does not significantly extend beyond schema descriptions.

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?

Clearly states it computes a Mexican aguinaldo and lists components. The name differentiates from siblings like calc_finiquito, but explicit sibling differentiation is missing.

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?

Includes a warning not to compute from memory, implying use for accurate figures. No explicit when-to-use vs alternatives, though siblings are different calculation types.

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.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool targets a distinct and well-defined payroll/tax concept (aguinaldo, finiquito, IMSS, ISR) with no functional overlap, making it easy for an agent to select the correct one.

Naming Consistency5/5

All tool names follow a consistent 'calc_' prefix plus a specific concept (calc_aguinaldo, calc_finiquito, calc_imss, calc_isr), using snake_case throughout.

Tool Count5/5

Four tools is an appropriate scope for a payroll/tax calculator, covering the essential mandatory calculations without being overly granular or sparse.

Completeness4/5

The tools cover the main Mexican payroll obligations (year-end bonus, severance, social security, income tax). Minor gaps like profit sharing (PTU) or annual tax return are absent, but the core is well-covered.

Resources