Skip to main content
Glama

Business days

business_days
Read-onlyIdempotent

Count business days between start and end (inclusive), or find the date that is N business days after start (add=N; negative N goes backward; start itself is not counted). Uses the country's weekend days, public holidays and make-up working days. For Japan, set year_end_closed to also skip 12/29-1/3.

Input Schema

NameRequiredDescriptionDefault
addNoMove this many business days from start.
endNoCount up to this date (inclusive).
startYesYYYY-MM-DD
regionNoOutside Japan: state/province code (ISO 3166-2 suffix, e.g. CA for California) to include regional holidays.
countryNoISO 3166-1 alpha-2 country code (e.g. US, GB, DE, CN, JP). Defaults to JP (Japan) when omitted.JP
year_end_closedNoJapan only.
include_governmentNoOutside Japan: also treat days off only for government offices (e.g. Indonesia's cuti bersama, Canadian federal holidays) as days off.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / country / description
      Previous value: -"ISO 3166-1 alpha-2 country code (e.g. JP, US, CN, GB). Default JP."New value: +"ISO 3166-1 alpha-2 country code (e.g. US, GB, DE, CN, JP). Defaults to JP (Japan) when omitted."
  2. Changed1 schema field changed
    • addedInput schema / properties / include_government
      Added value: +{
      +  "default": false,
      +  "description": "Outside Japan: also treat days off only for government offices (e.g. Indonesia's cuti bersama, Canadian federal holidays) as days off.",
      +  "type": "boolean"
      +}
  3. Changed3 schema fields changed
    • addedInput schema / properties / country
      Added value: +{
      +  "default": "JP",
      +  "description": "ISO 3166-1 alpha-2 country code (e.g. JP, US, CN, GB). Default JP.",
      +  "pattern": "^[A-Za-z]{2}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / region
      Added value: +{
      +  "description": "Outside Japan: state/province code (ISO 3166-2 suffix, e.g. CA for California) to include regional holidays.",
      +  "type": "string"
      +}
    • addedInput schema / properties / year_end_closed / description
      Added value: +"Japan only."
  4. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered; the description adds real behavioral context: weekend days, public holidays and make-up working days are factored in per country, and start is excluded from counts. It does not discuss return format or edge cases like range limits, but the added semantics are solid.

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, front-loaded with the primary operation, with each clause (inclusive end, negative N, start not counted, Japan flag) carrying distinct information. Nothing is redundant.

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?

For a 7-parameter date tool with no output schema, the description covers both modes, country-specific holiday logic, and the one non-obvious flag. It leaves the exact return shape (count vs. date string) only implicit and does not explain region or include_government beyond the schema text.

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 coverage is 100%, so parameters are already documented, and the description adds some meaning beyond it: the sign convention for add, the exclusion of start, and the concrete Japan year-end window (12/29-1/3) that the schema only labels 'Japan only'. Baseline 3 applies since the schema carries most of the load.

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?

States two specific verbs (count business days between start/end, or find the date N business days from start) on a named resource. This is clearly the counting/offset tool, distinguishable from siblings like list_holidays or find_long_weekends, though it never explicitly names those alternatives.

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 how to select each mode: end for counting, add=N for forward offset, negative N for backward, and start itself is not counted. It also gives a conditional instruction (For Japan, set year_end_closed), but does not state when to prefer this tool over the sibling date tools.

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