Skip to main content
Glama

time_business_days_batch

Read-only

Business days in bulk (US federal holidays) — Up to 100 business-day calculations in one call. items = entries separated by ; or | or newlines: START..END counts business days between two dates (start excluded, end included; add inclusive=true to count both), START+N or START-N adds or subtracts N business days. Skips weekends and US federal holidays with OPM observed-date rules (holidays=none to skip only weekends). Each result lists the holidays hit; bad items get an error without failing the call. Dates YYYY-MM-DD. Price: $0.002 USDC (Base, 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": {
      "items": "<items>"
    },
    "name": "time_business_days_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYese.g. 2026-11-25+3;2026-11-27..2026-12-31;2026-12-24+1

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Adds substantial context beyond the readOnly/openWorld annotations: per-item partial failure is tolerated ('bad items get an error without failing the call'), weekday/weekend and OPM observed-holiday rules are spelled out, and the payment requirement ($0.002 USDC via x402) is disclosed.

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?

Front-loads purpose and limit, then moves to syntax, edge-case behavior, and cost. The semicolon-delimited clause list is dense but every clause encodes a distinct rule; nothing is filler.

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?

For a one-parameter tool with no output schema, the description covers input grammar, counting convention, holiday policy, failure mode, result shape ('lists the holidays hit'), and price — everything needed to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema only supplies an example string at 100% coverage; the description supplies the actual grammar — three separator choices, START..END ranges with start-excluded/end-included semantics, START+N/-N offsets, and the holidays=none toggle. This is meaning the schema does not carry.

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 ('Business days in bulk') with a hard scope boundary ('Up to 100 business-day calculations in one call'), which distinguishes it from the singular sibling time_business_days without needing to name it.

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?

Clearly implies when this is the right pick (many calculations at once) and documents the two conditional modes (inclusive=true, holidays=none). It stops short of explicitly naming time_business_days as the alternative for one-off queries, so the routing guidance must be inferred.

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