Skip to main content
Glama

ベストカレンダー 暦データ

日数と営業日数

count_days
Read-only

2 つの日付の間の日数(開始日・終了日を含めるか選べる)と営業日数(土日祝を除く。定休の曜日・お盆・年末年始・個別の休業日と営業日も指定できる)。数え方は /tools/date-calculator と同じ。business_count_start: true のときは営業日数に開始日も数え、既定の false は開始日を数えない(ある月の営業日の数は、start を 1 日・end を末日にして business_count_start: true を指定した値)。

Input Schema

NameRequiredDescriptionDefault
endYesYYYY-MM-DD(1926-01-01〜2080-12-31)
obonNoお盆 8/13〜16 を休む(既定 false)
startYesYYYY-MM-DD(1926-01-01〜2080-12-31)
nenmatsuNo年末年始 12/29〜1/3 を休む(既定 false)
open_datesNo個別の営業日(祝日や定休日でも営業する日)
include_endNo日数に終了日を含める(既定 false)
closed_datesNo個別の休業日
include_startNo日数に開始日を含める(既定 true)
close_holidaysNo祝日(振替休日・国民の休日を含む)を休む(既定 true)
closed_weekdaysNo定休の曜日(既定は ["土", "日"]。空の配列なら曜日では休まない)
business_count_startNo営業日数に開始日も数える(既定 false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The annotations (readOnlyHint true, destructiveHint false) already establish that the tool is a safe read-only calculation. The description adds context the annotations do not: which days are excluded from the business-day count (weekends, holidays, closed weekdays, Obon, New Year, individual closures and openings), and which counting rules apply. It does not describe the response shape or ordering.

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?

Three sentences with the core purpose stated first, followed by the counting rules and then the edge-case semantics. The final sentence is dense and convoluted, and some of the content simply restates the per-parameter documentation in the input schema, but overall it reads cleanly and stays on topic.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter tool with complex holiday logic and no output schema, the description explains the inputs well but never says what the tool returns. The caller has to infer the response shape, presumably total days and business days, which is the biggest gap given that multiple counts look plausible.

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 description coverage is 100%, so the schema handles the bulk of the parameter documentation and the baseline score of 3 applies. The description goes slightly beyond the schema: it clarifies business_count_start (whose schema text is just one line) and explains the concrete effect of that flag, so it adds some semantic value.

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 verb (counting) and a specific resource (days and business days between two dates), and spells out the holiday/weekend rules that define the calculation. It does not differentiate itself from the available siblings such as check_business_day, add_days, or find_dates; its only pointer is to an external web tool (/tools/date-calculator).

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?

It gives one concrete usage recipe – counting the business days in a month by setting start to the 1st, end to the last day, and business_count_start: true – and says the counting rules match /tools/date-calculator. However, it never says when to choose this tool over check_business_day or add_days, and it never states when this tool is not appropriate.

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