Skip to main content
Glama
fbdo

business-day-mcp

by fbdo

business_days_between

Count business days and list weekday holidays between two dates using country-specific holiday calendars. Ideal for SLAs, delivery windows, or payroll periods.

Instructions

Count business days and list weekday holidays between two dates.

Use this to measure working-day spans for SLAs, delivery windows, or payroll periods. Weekend holidays are NOT listed in holidays_in_range (they do not reduce the business-day count); weekday holidays are.

Args: start_date: ISO 8601 date string (YYYY-MM-DD). Must be <= end_date. end_date: ISO 8601 date string (YYYY-MM-DD). country: ISO 3166-1 alpha-2 code (case-insensitive, normalized to upper). inclusive: When True, both endpoints count toward the range. When False (default), end_date is excluded (half-open interval). subdiv: Optional country-specific subdivision code (case-sensitive; see get_supported_countries). When omitted, only nation-wide holidays are considered.

Returns: dict with keys: start_date, end_date, country, subdiv (only if provided), inclusive, business_days (int), calendar_days (int), holidays_in_range (list of {date, name} for weekday holidays only).

Raises: ValueError: if start_date > end_date, the span exceeds 100 years, dates are malformed, or country/subdiv is unknown.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
start_dateYes
end_dateYes
countryYes
inclusiveNo
subdivNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

No annotations provided, so the description carries full burden. It details behavior: only weekday holidays listed, inclusive/exclusive effect, 100-year span limit, and error conditions (ValueError for invalid input). This is comprehensive.

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?

Well-structured with paragraphs and bullet points (Args, Returns, Raises). Every sentence adds value, though slightly verbose. Could be tightened but overall effective.

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?

Given 5 parameters, output schema existence, and sibling tools, the description is complete. Explains return dict structure, error types, and distinguishes from siblings like get_supported_countries.

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?

Schema description coverage is 0%, but the description fully compensates. It explains each parameter: date format, country case-insensitivity, inclusive default, subdiv case-sensitivity and relation to get_supported_countries. No ambiguity remains.

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 clearly states the tool's purpose: 'Count business days and list weekday holidays between two dates.' It distinguishes itself from sibling tools like is_business_day and list_holidays by combining counting and listing.

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?

Provides explicit use cases: 'measure working-day spans for SLAs, delivery windows, or payroll periods.' It explains what holidays are included/excluded but does not mention when to avoid this tool or suggest alternatives like is_business_day for single date checks.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fbdo/business-day-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server