Skip to main content
Glama

Count business days / 期間の営業日数

count_business_days
Read-onlyIdempotent

Count business days from start to end, inclusive of both ends. Returns 0 if start is after end. The period can be up to 3,660 days (about 10 years). / start から end までの営業日の数(両端を含む)。start が end より後なら 0。期間は3,660日(約10年)まで。

Input Schema

NameRequiredDescriptionDefault
endYesEnd date (YYYY-MM-DD) / 終了日
startYesStart date (YYYY-MM-DD) / 開始日
calendarNo"standard": weekends and national holidays are closed. "bank": also closed Dec 31 - Jan 3 (Japanese bank holidays). / standard:土日・祝日が休み。bank:加えて12月31日〜1月3日が休み(銀行の休業日)standard
extra_holidaysNoAdditional company-specific closed days (e.g. summer break). / 会社独自の休み
extra_business_daysNoDays treated as business days even if they are weekends or holidays. / 休日でも営業日とする日

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / calendar / maxLength
      Added value: +200
    • addedInput schema / properties / end / maxLength
      Added value: +200
    • addedInput schema / properties / start / maxLength
      Added value: +200
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, openWorldHint=false), but the description adds real behavioral detail beyond them: inclusive endpoints, a defined degenerate case ('Returns 0 if start is after end'), and a hard limit of 3,660 days. It does not explain how the calendar/override parameters interact, which keeps it below a 5.

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 lead sentence front-loads the core operation and the second and third sentences cover the two edge cases efficiently. It loses a point only because the full text is duplicated verbatim in Japanese, doubling length without adding information for a single-language reader.

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 5-parameter tool with 100% schema coverage and no output schema, the description supplies the key semantics an agent needs: what is counted, inclusive boundaries, the degenerate result, and the maximum span. The interaction between calendar and the two override arrays is left entirely to the schema, which is a minor gap given full coverage.

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 start, end, calendar, extra_holidays, and extra_business_days with format and enum semantics. The description adds nothing parameter-specific beyond restating the start/end relationship, so the baseline 3 applies.

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 states a specific verb and resource ('Count business days from start to end') plus a scope qualifier ('inclusive of both ends'), which lets an agent distinguish it from siblings like add_business_days and check_business_day. It does not, however, explicitly name or contrast those siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the verb 'count' within a date range, and boundary behavior is stated, but the description never says when to prefer this over adjust_to_business_day, check_business_day, or list_holidays. No exclusions or alternative-selection criteria are given.

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