Skip to main content
Glama

LLPRO Legal Deadlines

Business Days Calculator (US Holidays)

business_days
Read-onlyIdempotent

Count business days between two dates, or find the date a number of business days before or after a date, skipping Saturdays, Sundays and US federal holidays on the days they are observed. Send start and either end (to count) or add_business_days (to step; negative steps back). Holidays follow 5 U.S.C. 6103 as federal offices observe them (Saturday holiday on the Friday before, Sunday holiday on the Monday after) or, if you choose, as the Federal Reserve Banks do (a Saturday holiday is not moved). Get back the count both ways (both dates included, and start left out), or the result date, with the weekend days and every holiday skipped by name and date. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/business-days). Labels are your own text: emails, web addresses and long digit runs are refused. Not legal, tax or financial advice.

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. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well past the annotations (readOnly, idempotent, non-destructive, closed-world) by disclosing input rejection rules (emails, web addresses, digit runs refused), rate limiting ('hourly limit'), the free/no-model/no-network/no-storage posture, and signed outputs with a verification URL. It also disclaims scope ('Not legal, tax or financial advice'), which genuinely informs how an agent should relay results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose and mode routing are correctly front-loaded, but the back half is a dense run-on chain of disclosures (answer field names, signature, label restrictions, legal disclaimer) in one paragraph. Naming nine answer fields as bare jargon without explaining them dilutes rather than informs, and the paragraph could be split for scanability.

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?

With no output schema, the description usefully enumerates the return fields and states the error contract ('ok false with the reason (bad input, too large, hourly limit)'). What remains thin is what each answer field means, but coverage of inputs, failure modes, and result shape is sufficient for a stateless calculator.

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 both the holidays enum values and the step semantics are already fully documented in structured fields; the description largely restates the observation rules. It adds only marginal value, such as the framing 'as federal offices observe them,' without new format or constraint detail beyond the schema.

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?

Opens with a specific verb and resource: 'Count business days between two dates, or find the date a number of business days before or after a date.' The two operating modes (count vs. step) are named immediately, so an agent knows exactly what the tool computes.

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?

Explicitly states the input pattern for each mode: 'Send start and either end (to count) or add_business_days (to step; negative steps back),' and the schema reinforces that both must not be sent. It lacks any explicit statement of when to reach for a different sibling calculator, but the mutually exclusive mode routing is clear enough to call correctly.

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