Skip to main content
Glama

Count business days between two dates

business_days_between
Read-only

Counts business days between two dates on a joint calendar: days after start up to and including end (inclusive=true also counts start). Negative if end is before start. Lists weekday holidays in range. Max 10 years. Deterministic, no AI. Price: $0.001 USDC per call via x402 (Base); the first 5 calls per day per client are free.

Input Schema

NameRequiredDescriptionDefault
endYesEnd date YYYY-MM-DD
startYesStart date YYYY-MM-DD
calendarsNoComma list of calendars; a day is a business day only if open in all. XNYS (NYSE), FED (Fedwire/FedACH), TARGET2 (EUR), UK-ENG. Aliases: NYSE, US, ACH, EUR, UK. Default FED.
inclusiveNotrue to count the start date too

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld annotations by disclosing a hard bound (max 10 years), determinism ('no AI'), the return shape (count plus weekday holidays in range), and commercial behavior (x402 USDC pricing, 5 free calls/day/client). Cost and rate-limit disclosure is exactly the context an agent needs before calling.

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 computation semantics and efficient overall, with each sentence carrying distinct information. The trailing pricing/limit clause is relevant but slightly bulky relative to the rest.

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?

With no output schema, the description still explains the return value (count, sign behavior, holiday list) and adds the operational constraints. An agent has everything needed to call it correctly and predict the result.

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 the baseline is 3; the description adds the counting convention itself — 'days after start up to and including end (inclusive=true also counts start)' — which clarifies what the two required date params actually compute. The calendars param semantics (joint intersection) are left entirely to 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?

States a specific verb and resource ('counts business days between two dates') and pins down the exact counting convention (days after start, up to and including end) on a joint calendar. The semantic detail is enough to distinguish it from add_business_days or is_business_day 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 Guidelines3/5

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

Usage is implied through the counting semantics (inclusive flag, negative result when end < start), but no sibling is named and no when-to-use/when-not guidance is given. It also doesn't say which calendar to pick versus list_holidays or settlement_date workflows.

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