Skip to main content
Glama

Business Days Calculator API - add working days, count between dates

business_days
Read-onlyIdempotent

Working-day maths with each country's (and state's) public holidays: add or subtract N business days to a date (payment terms, delivery, legal deadlines), or count business days between two dates. Custom weekend (e.g. Fri-Sat). Returns the holidays that were skipped. < 50 ms. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/business-days.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "add": 5,
      "start": "2026-12-22",
      "country": "DE"
    },
    "name": "business_days"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNoBusiness days to add (negative = back)
endNoOr an end date YYYY-MM-DD to count business days between
startNoStart date YYYY-MM-DD (default today)
countryYesISO 3166 alpha-2 code, e.g. DE, BG, US
weekendNoWeekend weekdays, 0=Mon..6=Sun, default 5,6
subdivisionNoState/region code (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/openWorld annotations, the description discloses latency (<50 ms), a free-tier quota (5 calls/day per IP), and both paid access paths with the exact header (X-API-Key) and x402 endpoint. It also states a non-obvious return behavior — the skipped holidays are returned — which is exactly the kind of context annotations cannot carry.

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?

The core capability and the two modes are front-loaded in the first sentence, with pricing/auth compressed into a single trailing clause. It is dense but every sentence carries operational value; the URL-and-price block is the only slightly heavy element, and it is justified for an agent that must know how to authenticate.

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 does the right thing by noting that skipped holidays are returned, and it covers auth and rate limits for a paid API. It stops short of describing the response shape for the counting mode (a number vs. a list) or error behavior for invalid country codes, which leaves a small gap for a 6-parameter tool.

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 coverage is 100%, so the schema already explains add/end/start/country/weekend/subdivision including the negative-add convention. The description only reinforces two of these (custom weekend such as Fri–Sat, and that country/subdivision select the holiday calendar), adding modest semantic framing rather than new per-parameter meaning. Baseline 3 applies.

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 names two concrete operations on a concrete resource: add/subtract N business days to a date, and count business days between two dates, with country/state holiday calendars. It is clearly not a generic date calculator, though it never explicitly contrasts itself with the sibling business_check (single-date holiday test) or date_calculator, so the differentiation is inferred rather than stated.

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?

It supplies concrete usage contexts (payment terms, delivery, legal deadlines) and implicitly tells the agent how to pick a mode: use 'add' for forward/backward offsets, use 'end' to switch to counting between dates. What is missing is any exclusion guidance — e.g., when to prefer business_check for a single date — so the agent must guess at the boundary with siblings.

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