Skip to main content
Glama

Business Days

business_days
Read-onlyIdempotent

Do business-day math that skips weekends and your holiday list. FREE.

Either add N business days to start_date (set add_days), or count the business days between start_date and end_date (set end_date). Typical input {"start_date": "2026-03-02", "add_days": 10} returns {"result_date": "2026-03-16", "result_weekday": "Monday", ...}; with end_date set it returns {"business_days_between": N, "from": ..., "to": ...}.

Use when the span must exclude weekends and named holidays. Not for plain calendar-day differences, which are a direct subtraction, and not for scheduling backward from a fixed deadline (deadline_planner). Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""} (for example {"error": "dates must be YYYY-MM-DD"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Input Schema

NameRequiredDescriptionDefault
add_daysNoBusiness days to add; negative subtracts. Range -5000 to 5000. Ignored when end_date is provided.
end_dateNoOptional end date, ISO YYYY-MM-DD. When set, the tool counts business days between start_date and end_date instead of adding.
holidaysNoOptional list of ISO YYYY-MM-DD dates to treat as non-working days, e.g. ["2026-12-25"].
start_dateYesAnchor date in ISO format YYYY-MM-DD, e.g. "2026-03-02".

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered; the description's real contribution is the error contract (never raises a protocol error, returns {"error": ...} with a fix hint) and retry safety, which annotations cannot express. The restatement of "read-only and idempotent" is redundant with annotations and doesn't add value, keeping it out of the top band.

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?

Front-loaded with the purpose and the two usage modes, then return shapes, then exclusions, then errors – a sensible ordering. It is somewhat longer than needed, and the "FREE." fragment and redundant re-statement of idempotency are filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Output schema exists, but the description still sketches both return shapes and fully specifies the error response behavior for a stateless calculator, which is everything an agent needs to call it and recover from bad input. No meaningful gap remains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so a 3 is the baseline, but the description adds genuine meaning by explaining the mode switch between add_days and end_date and supplying a concrete worked input/output pair. It stops short of discussing negative add_days or the holidays array in prose, which the schema already handles.

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?

States a specific verb and resource ("business-day math that skips weekends and your holiday list") and immediately enumerates its two modes, add vs. count. It also explicitly separates itself from the sibling deadline_planner, so an agent can route without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-to-use ("when the span must exclude weekends and named holidays") and two explicit when-not cases: plain calendar-day subtraction and backward scheduling from a deadline, the latter naming the alternative sibling deadline_planner. Nothing is left to inference.

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.