Skip to main content
Glama
Tanod MCP Server

Tanod MCP Server

Official

count_or_add_business_days

Read-onlyIdempotent

Count business days between two dates or add working days while skipping public holidays, returning signed counts or an offset date.

Instructions

utilpeek: Count business days between two dates or add working days, skipping public holidays. For the holiday list use get_public_holidays. Returns a signed count (Excel NETWORKDAYS by default) or an offset date (Excel WORKDAY), plus skipped holidays. Ranges up to 20 years; with a country, 1990-2100. Bad input: uncharged 422. Verify library holiday rules with an official source for legal or payroll use. Typically under 0.2 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/business-days-api.html

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": {
      "mode": "<mode>",
      "start": "<start>"
    },
    "name": "count_or_add_business_days"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoCount only; YYYY-MM-DD, within 20 years. Earlier gives negative count.
daysNoAdd only; negatives subtract, 0 returns start. Start never counted (Excel WORKDAY).
modeYesCount business days or add signed business days.
startYesStart date YYYY-MM-DD (1900-01-01..2199-12-31).
countryNoISO 3166-1 alpha-2; skips /v1/holidays dates (1990-2100).
weekendNoNonworking weekdays; default sat/sun; [] for none.
include_endNoCount only; defaults to true. Both true: Excel NETWORKDAYS. Start true/end false: [start, end), like numpy.busday_count.
subdivisionNoCountry subdivision code or name; requires country.
include_startNoCount only; defaults to true.

Output Schema

NameRequiredDescriptionDefault
endNo
dateNo
daysNo
modeNo
noteNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
startNo
sourceNo
countryNo
weekdayNo
weekendNo
countingNo
include_endNo
subdivisionNo
holiday_daysNo
weekend_daysNo
business_daysNo
calendar_daysNo
include_startNo
holidays_skippedNo
holidays_truncatedNo
start_is_business_dayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.4

TDQS

A4.6/5.0
Behavior5/5

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

The annotations already declare read-only, idempotent, non-destructive behavior, but the description adds pricing, free quota, latency, uncharged 422 errors, range constraints, a holiday-library verification caveat, and the return shape. This is substantial behavioral context beyond what annotations provide.

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 purpose and sibling handoff are front-loaded, and pricing, latency, and docs are useful for agent selection. However, the description is dense and packs many operational details into one paragraph, making it slightly crammed rather than perfectly structured.

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 nine-parameter tool with an output schema and rich annotations, the description covers input limits, return shape, error behavior, cost, latency, and sibling routing. Nothing important for correct invocation appears missing.

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 nine parameters thoroughly. The description restates the Excel NETWORKDAYS/WORKDAY framing and range limits already present in the schema, adding little parameter-level meaning beyond that baseline.

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: count business days between dates or add working days while skipping public holidays. It distinguishes count from add and explicitly routes holiday-list needs to the get_public_holidays sibling, so an agent can identify the tool without opening the schema.

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 names the alternative tool for holiday lists, explains the two modes, states date-range limits, and gives a caveat for legal or payroll use. This is explicit when-to-use and alternative guidance rather than implied usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools