Skip to main content
Glama

Business-day job schedule

business_day_schedule
Read-onlyIdempotent

Job 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

NameRequiredDescriptionDefault
nNo1 = first business day of the month, -1 = last, -2 = second to last
dayNo1–31 (31 = month end in short months) or "last"
fromNoRuns at or after: date, local datetime or ISO 8601. Default now
ruleYesnth_business_day (n), day_of_month (day), weekly (weekdays), cron (expression). "last business day" and "first business day" work
timeNoLocal HH:MM (not for cron)09:00
countNoRuns to return
adjustNoFor weekend/holiday dates. modified_following: next, unless that is next month, then previous. following/preceding worknext
monthsNoOnly these months, e.g. [1,4,7,10]
countryNoISO 3166-1 alpha-2 country code (207 countries); its public holidays (2000–2050) are excluded from business days
holidaysNoExtra dates excluded from business-day counts (rest days from workdays are always excluded)
timezoneNoIANA zone (default UTC)
weekdaysNo0 = Sunday, e.g. [1] for Mondays
workdaysNoWorking 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_dateNo
expressionNoCron, 5 or 6 fields, max 96 runs a day

Output Schema

NameRequiredDescriptionDefault
fromYes
noteNo
ruleYes
runsYes
checkYes
countYes
adjustYes
timezoneYes
descriptionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changed
    • changedInput schema / properties / adjust / description
      Previous value: -"When a scheduled date is a weekend or holiday: move to the next/previous business day; modified_following = next unless that crosses into the next month, then previous; nearest (ties go earlier); skip the run; or none. Not used by nth_business_day"New value: +"For weekend/holiday dates. modified_following: next, unless that is next month, then previous. following/preceding work"
    • changedInput schema / properties / count / description
      Previous value: -"How many runs to return (searches up to 10 years ahead)"New value: +"Runs to return"
    • changedInput schema / properties / day / description
      Previous value: -"day_of_month: 1–31 (31 means the last day in shorter months) or \"last\""New value: +"1–31 (31 = month end in short months) or \"last\""
    • changedInput schema / properties / expression / description
      Previous value: -"cron: 5 or 6 field cron expression, e.g. \"0 9 25 * *\". At most 96 runs a day"New value: +"Cron, 5 or 6 fields, max 96 runs a day"
    • removedInput schema / properties / expression / example
      Removed value: -"0 9 25 * *"
    • changedInput schema / properties / from / description
      Previous value: -"Runs at or after this time: YYYY-MM-DD (local midnight), local YYYY-MM-DDTHH:MM, or ISO 8601 with offset. Default: now"New value: +"Runs at or after: date, local datetime or ISO 8601. Default now"
    • changedInput schema / properties / months / description
      Previous value: -"Only these months, e.g. [1,4,7,10] for quarterly"New value: +"Only these months, e.g. [1,4,7,10]"
    • changedInput schema / properties / n / description
      Previous value: -"nth_business_day: 1 = first business day of the month, 3 = third; -1 = last, -2 = second to last. Not 0"New value: +"1 = first business day of the month, -1 = last, -2 = second to last"
    • changedInput schema / properties / rule / description
      Previous value: -"nth_business_day needs n; day_of_month needs day; weekly needs weekdays; cron needs expression"New value: +"nth_business_day (n), day_of_month (day), weekly (weekdays), cron (expression). \"last business day\" and \"first business day\" work"
    • changedInput schema / properties / time / description
      Previous value: -"Local run time HH:MM for nth_business_day, day_of_month and weekly (cron uses its own times)"New value: +"Local HH:MM (not for cron)"
    • changedInput schema / properties / timezone / description
      Previous value: -"IANA time zone, e.g. America/New_York (default UTC)"New value: +"IANA zone (default UTC)"
    • changedInput schema / properties / weekdays / description
      Previous value: -"weekly: weekday numbers, 0 = Sunday, e.g. [1] for every Monday"New value: +"0 = Sunday, e.g. [1] for Mondays"
    • removedOutput schema / properties / check / properties / reason / description
      Removed value: -"weekend, holiday: <name>, or null on a business day"
    • removedOutput schema / properties / check / properties / runs / description
      Removed value: -"Whether the job runs on this date"
    • removedOutput schema / properties / check / properties / scheduled_run_moved_to / description
      Removed value: -"When a run was scheduled on this date but moved: its new date, or \"skipped\""
    • removedOutput schema / properties / description / description
      Removed value: -"The schedule in plain English"
    • addedOutput schema / properties / note
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / runs / items / properties / date / description
      Removed value: -"Run date (after adjustment)"
    • removedOutput schema / properties / runs / items / properties / datetime / description
      Removed value: -"Local run time, ISO 8601 with offset"
    • removedOutput schema / properties / runs / items / properties / reason / description
      Removed value: -"Why the scheduled date was moved: weekend, or holiday: <name>"
    • removedOutput schema / properties / runs / items / properties / scheduled_date / description
      Removed value: -"The date the rule produced before the weekend/holiday adjustment"
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, openWorldHint=false), but the description adds real behavioral context beyond them: DST awareness, that it returns upcoming runs plus a 'runs today' flag, and a pricing/auth model (25 free calls/day then $0.001 per call via x402) that materially affects whether an agent should call it repeatedly. It does not discuss failure modes for invalid rules, which is the main gap.

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?

Purpose and the differentiator from cron are front-loaded, followed by use cases, then the pricing caveat at the end. It is one dense paragraph with little waste, though it would read slightly better as short separated clauses.

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?

For a 15-parameter scheduling tool with an output schema and annotations, the description covers purpose, use cases, DST behavior, return content and cost. What remains (holiday coverage years, timezone defaults, cron field limits) is already handled by the schema, so nothing essential is missing.

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 coverage is already 93%, so the schema carries nearly all parameter meaning. The description's examples implicitly illustrate how rule, n and time combine, but it does not explain or name any individual parameter (e.g. adjust, workdays, holidays), so the addition over the schema is modest and the 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 gives a concrete verb+resource ('job schedules that skip weekends and public holidays') and backs it with representative rule examples ('3rd business day of the month at 09:00', 'last business day', 'every Monday, or the next business day if it is a holiday'). It also draws an explicit boundary against plain cron ('any cron with a holiday rule'), so an agent can separate it from cron_schedule without opening schemas.

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 names concrete use cases ('payroll, billing, reports and batch jobs') and gives the condition that distinguishes it from a plain cron tool. There is no explicit when-not guidance or a named alternative for non-holiday cron needs, so it stops short of a 5.

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.