Skip to main content
Glama

Agent Data Hub

Business days & public holidays

calendar_business_days
Read-onlyIdempotent

Public holidays and working days for 200+ countries (with regional rules and local weekends, e.g. Fri–Sat in Saudi Arabia). Modes: list a year's holidays; count business days between start and end; or add N business days to a date. Price: $0.001 per call (USDC on Base via x402); the first 10 calls per day are free.

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": {
      "country": "<country>"
    },
    "name": "calendar_business_days"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNoInteger — add N business days to start
endNoEnd date YYYY-MM-DD — counts business days in range
startNoStart date YYYY-MM-DD (default today)
regionNoOptional state/region code, e.g. CA for US-CA
countryYesISO 3166-1 alpha-2 country code, e.g. US, GB, DE, AE

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds genuinely non-obvious context: the localized weekend rule (Fri–Sat in Saudi Arabia) and, importantly, the cost model ($0.001 per call, first 10 free per day), which materially affects whether an agent should call it repeatedly. It does not describe error or invalid-date behavior.

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 dense sentences with the capability statement, coverage caveat, and mode list front-loaded, followed by the pricing caveat. No filler, no repetition of the title, and every sentence carries decision-relevant information.

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?

There is no output schema, so the description carries some return-value burden, and it partially meets it by implying a holiday list for one mode and a count for the others. It never states the response shape for the list mode or what happens with an invalid country/region, which is the remaining gap for a 5-parameter, annotation-light-output tool.

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 a 3 would be the baseline. The description earns the extra point by explaining cross-parameter mode semantics — that start combined with end counts a range while add shifts a date — which the per-parameter schema text does not convey on its own.

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 a specific resource (public holidays and working days) and enumerates three concrete operations: listing a year's holidays, counting business days in a range, and adding N business days to a date. It also states the coverage scope (200+ countries, regional rules, local weekends). It does not explicitly distinguish itself from the sibling calendar_holidays, so it stops short of a 5.

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?

The three modes are stated clearly enough that an agent can infer which parameter combination triggers which behavior (end for counting, add for offsetting). However, there is no explicit when-not guidance and no sentence telling the agent to prefer calendar_holidays for pure holiday listing, which is the most likely sibling confusion.

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