Skip to main content
Glama

Business days between dates, working days calculator: count working days between two dates, skipping weekends and public holidays

date_business_days
Read-only

Count business (working) days between two dates, skipping weekends and public holidays for the US, UK, Sweden, Germany, France, Norway, Denmark or Finland, and list the holidays skipped; or give add=N to get the date N business days after (or before) a date. Other countries count weekends only, and the answer says so. Use for delivery estimates, SLAs, payment terms and payroll dates. Example: from=2026-12-01. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
toNoEnd date, YYYY-MM-DD (inclusive; default: the last day of the start month); or use add
addNoBusiness days to add to from (negative to go back), instead of to
fromYesStart date, YYYY-MM-DD
countryNoHoliday calendar: US, GB, SE, DE, FR, NO, DK or FI (default: weekends only)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Adds genuinely new context beyond the annotations: per-call pricing, 25 free calls, failed calls free, and the warning that repeats are not free (consistent with idempotentHint=false). It also discloses the fallback behavior for unlisted countries. The 'reads or computes only and changes nothing' sentence largely restates readOnlyHint/destructiveHint, and return-field structure is only hinted at, 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 core operation and both modes, then use cases, then an example, then pricing. Dense and mostly waste-free, though the pricing/commercial tail adds bulk that an agent making a first selection does not strictly need.

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 4-parameter computational tool with no output schema, the description covers both modes, the default for 'to', the country-calendar fallback, and the cost model. The only gap is the exact shape of the returned counts/holiday list, which it gestures at ('list the holidays skipped') without detail.

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 already 100%, so baseline would be 3; the description adds value by spelling out the country calendars with human-readable names (US, UK, Sweden, Germany, France, Norway, Denmark, Finland) that map onto the ISO codes in the schema, and by clarifying the add=N alternative including negative values. It still doesn't clarify how conflicting to/add inputs are resolved.

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+resource ('count business days between two dates') and covers both modes (count between dates, or add=N to shift a date) in the same breath. It is clearly distinguishable from date_diff/date_add siblings because it names the weekend-and-holiday skipping behavior and the country calendars.

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?

Gives concrete use cases ('delivery estimates, SLAs, payment terms and payroll dates') and explains the two modes with an inline example. It does not explicitly name the sibling alternatives (date_add, date_diff) or exclude cases where a plain calendar-day diff is the right choice, so it stops short of full when/when-not routing.

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.