Business days & public holidays (200+ countries)
business_daysUse this when you need to add business days to a date (SLAs, due dates, payment terms), count the business days between two dates, check whether a date is a working day, or list the public holidays of a year, in 200+ countries. Weekends are configurable (default Saturday–Sunday) and regional holidays can be included with an ISO 3166-2 region. Holidays come from Nager.Date (MIT), cached offline for AR, AU, BR, CA, CL, CO, DE, ES, FR, GB, IT, MX, PE, US and fetched live (then cached) for the other countries; Mexico uses the statutory rest days of the Ley Federal del Trabajo art. 74 computed from the law. Deterministic. Countries without a calendar (e.g. IN) return UNSUPPORTED_COUNTRY without charge.
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": "business_days"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Start date (YYYY-MM-DD), e.g. "2026-03-13". Required with `days` or `endDate`; alone it tells whether the date is a business day. | |
| days | No | Business days to add to `date` (negative to go back), e.g. 10 for a 10-business-day SLA. | |
| year | No | Year to list the public holidays of, e.g. 2026. Use alone (without `date`). | |
| 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. | |
| region | No | Optional ISO 3166-2 subdivision to include its regional holidays, e.g. "US-CA", "DE-BY", "ES-CT". | |
| country | No | ISO 3166-1 alpha-2 country code, e.g. "MX", "US", "DE", "BR". "UK" is accepted for "GB". | |
| endDate | No | End date (YYYY-MM-DD) to count business days after `date` up to and including `endDate`. | |
| weekend | No | ISO weekdays that are not business days (1 = Monday … 7 = Sunday). Default [6, 7]; use [5, 6] for Friday–Saturday weekends. | |
| holidayTypes | No | Nager.Date holiday types that count as non-working days. Default ["Public"]; add "Bank" for banking calendars. |