Business-day job schedule
business_day_scheduleJob schedules that skip weekends and public holidays, which cron cannot express: "3rd business day of the month at 09:00", "last business day", "every Monday, or the next business day if it is a holiday", or any cron with a holiday rule. Returns the next runs and whether it runs today. DST-aware. Use for payroll, billing, reports and batch jobs. First 25 calls per day are free, then $0.001 per call (x402).
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": {
"rule": "<rule>"
},
"name": "business_day_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | 1 = first business day of the month, -1 = last, -2 = second to last | |
| day | No | 1–31 (31 = month end in short months) or "last" | |
| from | No | Runs at or after: date, local datetime or ISO 8601. Default now | |
| rule | Yes | nth_business_day (n), day_of_month (day), weekly (weekdays), cron (expression). "last business day" and "first business day" work | |
| time | No | Local HH:MM (not for cron) | 09:00 |
| count | No | Runs to return | |
| adjust | No | For weekend/holiday dates. modified_following: next, unless that is next month, then previous. following/preceding work | next |
| months | No | Only these months, e.g. [1,4,7,10] | |
| country | No | ISO 3166-1 alpha-2 country code (207 countries); its public holidays (2000–2050) are excluded from business days | |
| holidays | No | Extra dates excluded from business-day counts (rest days from workdays are always excluded) | |
| timezone | No | IANA zone (default UTC) | |
| weekdays | No | 0 = Sunday, e.g. [1] for Mondays | |
| workdays | No | Working days of the week, 0 = Sunday. Default [1,2,3,4,5] (Mon–Fri); e.g. [0,1,2,3,4] for Sun–Thu or [1,2,3,4,5,6] for Mon–Sat | |
| check_date | No | ||
| expression | No | Cron, 5 or 6 fields, max 96 runs a day |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | ||
| note | No | ||
| rule | Yes | ||
| runs | Yes | ||
| check | Yes | ||
| count | Yes | ||
| adjust | Yes | ||
| timezone | Yes | ||
| description | Yes |