Skip to main content
Glama

Business Days Calculator (US Holidays)

business_days
Read-onlyIdempotent

Count US business days between two dates, or step a number of business days from a date (skips weekends and federal holidays). Free. Example: {"start": "2026-11-20", "end": "2026-12-01"}

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": {
      "start": "<start>"
    },
    "name": "business_days"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoTo count: the end date, YYYY-MM-DD, on or after start. Send end or add_business_days, not both.
labelNoOptional label, e.g. 'notice period' (your own text, echoed).
startYesStart date, YYYY-MM-DD.
holidaysNofederal_offices (default): 5 U.S.C. 6103 holidays, Saturday ones on the Friday before and Sunday ones on the Monday after. federal_reserve_banks: the same holidays, Sunday ones on Monday, Saturday ones not moved.federal_offices
add_business_daysNoTo step: how many business days after start (negative: before start), not counting start itself. 1 = the next business day. Not 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered structurally. The description contributes the actual computation rule (weekends and US federal holidays are skipped) and the cost note ('Free'), which is genuine added context. It does not disclose the return shape per mode, which matters given there is no output schema.

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?

Two compact sentences followed by a short example; the dual-mode purpose is front-loaded and nothing is buried. The one-word 'Free.' is a slight marketing aside, but cost relevance is defensible and it costs almost no reading effort.

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 deterministic, closed-world calculator with 100% schema coverage and complete annotations, this is nearly everything an agent needs to invoke it correctly. The remaining gap is that the description never says what comes back (a count for the date-range mode versus a resulting date for the step mode), which is the one thing absent from the structured data since no output schema exists.

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%, so every parameter, the date pattern, the holiday enum semantics, and the mutual exclusion rule are already documented in the schema. The description only adds a concrete example call, which is useful but not new parameter meaning beyond the structured fields, so the baseline 3 applies.

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?

States specific verbs and resource: 'count US business days between two dates' or 'step a number of business days from a date', plus the computation rule (skips weekends and federal holidays). This is clear enough that an agent knows exactly what it computes; there are no date-related siblings to disambiguate against, so the absence of sibling differentiation is not a practical gap.

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?

The two operating modes are named directly in the description and map to the two optional parameter paths (end vs add_business_days), giving clear context for which mode applies. It stops short of restating the schema's explicit exclusion ('send end or add_business_days, not both') or of any when-not guidance, so it is clear context rather than full routing advice.

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.

Resources