Calculate Mexican payroll (ISR, subsidy, IMSS, Infonavit)
calc_payroll_mxUse this when you need the Mexican income-tax withholding (ISR, monthly tariff of Anexo 8 RMF), the employment subsidy (subsidio para el empleo), the IMSS employer and employee contributions per branch (sickness and maternity with the 3-UMA excess, disability and life, retirement, unemployment and old age with the current employer ramp, childcare, work risk by class I–V), the optional 5% Infonavit, the net pay and the total employer cost for a gross salary, in MXN. Handles the 25-UMA cap, the minimum-wage rules (no ISR withholding, employer pays the worker quotas), the salario diario integrado with the statutory factor, January (previous UMA) and monthly, biweekly or weekly periods. Tables available for 2026 (tableVersion = DOF date); other years return INVALID_INPUT without charge. Deterministic, offline, no personal data stored.
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": "calc_payroll_mx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Fiscal year of the tables (default 2026). | |
| items | No | Batch mode: up to 500 items, each with the same fields as a single call. Omit when validating a single value through the top-level fields. | |
| month | No | Month 1–12. Only January differs: the previous UMA and the January subsidy percentage apply. Default: February onward. | |
| riskClass | No | IMSS work-risk class I–V (art. 73 LSS average premiums: I offices, II commerce, III light industry, IV heavy industry, V mining/construction). Default I. | I |
| dailySalary | No | Gross daily wage in MXN (cuota diaria), e.g. 315.04. Provide monthlyGross or dailySalary. | |
| periodicity | No | Pay period: monthly (30.4 days, default), biweekly (15 days) or weekly (7 days). Tariffs and subsidy are scaled by days / 30.4 as in Anexo 8. | monthly |
| monthlyGross | No | Gross taxable salary per month in MXN (30.4 days), e.g. 20000. Provide monthlyGross or dailySalary. | |
| northernBorder | No | true if the worker is in the Zona Libre de la Frontera Norte (higher minimum wage). Default false. | |
| includeInfonavit | No | Add the 5% employer Infonavit contribution to the employer cost (default true). | |
| integrationFactor | No | Salario diario integrado factor; default 1.0493 (statutory minimum: 15 days aguinaldo, 12 vacation days, 25% premium). Use a higher factor for better benefits or seniority. |