Skip to main content
Glama

Duo Data Utilities

Business-day arithmetic with a caller-supplied weekend mask and holiday list

time_business-days
Read-onlyIdempotent

Business-day arithmetic with a caller-supplied calendar: add or subtract N working days from a date, or count the working days between two dates. The weekend is specified as a weekday mask so Friday-Saturday and Sunday-only weeks work, and holidays are passed in as an explicit date list, so the answer never depends on a holiday table that can go stale. Returns the result date, the day count, and the first 1,000 skipped dates with the reason each was skipped. Price: $0.05 per successful call, paid over x402 (USDC on Base).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opNoadd (default) N business days to from, or count business days between from and to. Accepted: add, count.
toNoEnd date YYYY-MM-DD, may precede from. Required when op=count. Accepted: a calendar date as YYYY-MM-DD.
daysNoBusiness days to add, -3650 to 3650. Required when op=add. Accepted: integer between -3650 and 3650.
fromYesStart date, YYYY-MM-DD. Accepted: a calendar date as YYYY-MM-DD.
weekendNoComma-separated weekday names or ISO numbers. Default sat,sun. Empty string = no weekend. Accepted: comma-separated weekday names (mon..sun) or ISO numbers 1-7.
holidaysNoComma-separated YYYY-MM-DD holiday dates. Accepted: comma-separated YYYY-MM-DD dates, at most 2048 characters.
inclusiveNoFor op=count: start (default, half-open [from, to)), both or neither. Accepted: start, both, neither.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With annotations covering the safe-read/idempotent profile, the description still adds substantial non-obvious context: the paid-invocation model ($0.05 per successful call over x402/USDC on Base) and the return payload (result date, day count, first 1,000 skipped dates with reasons). These are behavioral facts an agent cannot infer from annotations or schema.

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?

Three sentences, front-loaded with the operation set, then the calendar-flexibility rationale, then the return shape and price. No filler sentences and no restating of the title.

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 7-parameter tool with no output schema, the description covers operations, calendar semantics, and the return payload, and even discloses the payment requirement. An agent has everything needed to decide to call it and to interpret results.

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: it motivates the weekday-mask design (Friday-Saturday and Sunday-only weeks) and the explicit holiday list so callers understand why holidays are an argument rather than a table lookup.

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?

Names the specific resource (business-day arithmetic) and both operations (add/subtract N working days, count days between dates), plus the distinguishing detail of a caller-supplied calendar. This clearly separates it from sibling time_calendar and time_rrule.

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?

Explains the two operating modes and the conditions that govern them (op=add vs op=count, mask-driven weekends, explicit holiday list), and gives a rationale for why the answer is stable. It never states when to prefer a sibling tool instead, so it stops short of a 5.

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