Skip to main content
Glama

Business-day calculator: add or count working days, skipping weekends and public holidays (KR, US, GB, DE, FR, JP)

time_business_days
Read-onlyIdempotent

Use when computing due dates, SLAs, settlement or delivery dates. Input: start date, then days (add -260..260 business days) or end (count business days between), optional country KR, US, GB, DE, FR or JP for public holidays (omit = weekends only). Output: JSON result date or business/calendar day counts, holidays skipped on the way, holiday scope. Use instead: kr_public_holidays for the Korean holiday list. Example: ?start=2026-12-22&days=5&country=US Price: $0.003 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.

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": "time_business_days"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoCount business days from start (excluded) to end (included), at most 2 years apart; ignored when days is given
daysNoBusiness days to add (negative = go back); give days or end (days wins if both)
startYesStart date YYYY-MM-DD (2004–2099)
countryNoPublic holiday calendar (omit for weekends only)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive behavior, but the description adds useful context beyond that: pricing ($0.003 per call via x402), output JSON shape, holiday-skipping behavior, and the -260..260 business-day range. It does not contradict the annotations.

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 definition is front-loaded with the use case, then inputs, outputs, alternative, example, and price. It is dense but every sentence contributes useful information; the example query string is minor extra.

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 explains the return values (result date or business/calendar day counts, holidays skipped, holiday scope). It also covers cost, input semantics, and alternatives, which is sufficient for a 4-parameter tool of moderate complexity.

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 description coverage is 100%, so the schema already documents all four parameters. The description adds the concrete country codes and a query-string example, but otherwise mostly restates what the schema provides.

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?

The description states a specific verb and resource: computing due dates, SLAs, and settlement dates by adding or counting business days. It explicitly distinguishes itself from the sibling kr_public_holidays, so an agent can tell which tool to choose.

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?

It gives clear when-to-use guidance (due dates, SLAs, settlement, delivery) and an explicit alternative (kr_public_holidays for the Korean holiday list). It also clarifies that omitting country means weekends only.

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