Skip to main content
Glama

Count or add business days (with public holidays)

business_days
Read-onlyIdempotent

Count business days between two dates, or add/subtract N business days from a date, skipping weekends and (optionally) the country's official public holidays. Returns the holidays skipped. Exact; do not do this in your head.

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
endNoEnd date YYYY-MM-DD (to count business days between)
startYesStart date YYYY-MM-DD
countryNoISO country code for holidays, e.g. US, GB, DE (optional)
add_daysNoOr: number of business days to add (negative to subtract)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and open-world behavior, and the description adds real context on top: weekends are always skipped, holidays are skipped only when a country is supplied, and the response reports which holidays were skipped. It does not address precedence if both 'end' and 'add_days' are supplied, which is the one behavioral ambiguity left.

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

Conciseness5/5

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

Two tight sentences: the primary capability and its two modes come first, followed by the skip rules, the return value, and a short exactness admonition. Every clause carries information an agent needs, and nothing is padded.

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 discloses that skipped holidays are returned, and it explains how the optional country parameter changes results. For a four-parameter date calculator this is nearly complete; only the both-modes-provided case and date format assumptions are left unstated.

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, but the description adds meaning the schema does not: the 'or' framing signals that 'end' and 'add_days' are mutually exclusive modes rather than combinable filters, and it clarifies that 'country' drives optional holiday skipping rather than mere labeling.

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?

The description states a specific operation over a specific resource: counting business days between two dates or offsetting a date by N business days, with weekends and optional holidays skipped. It is unmistakably distinct from arithmetic-adjacent siblings like unit_convert or timezone_convert, though it never names the closest sibling (public_holidays) to draw the line explicitly.

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 only implied: 'Exact; do not do this in your head' nudges the agent to call the tool rather than compute mentally, and the two modes (count vs. offset) are described. There is no explicit statement of when to prefer this over public_holidays for holiday-only queries, and no exclusions.

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