Skip to main content
Glama

PlugRail Japanese Calendar

business_days_between

from〜to間の営業日数を数えます。既定では「fromを含まず、toを含む」境界です(例:「今日から支払期日まで何営業日か」)。include_from/include_toで境界を変更できます。土日・日本の祝日を除外し、calendar="banking"を指定すると銀行休業日(12/31〜1/3)も除外します。from > to の場合はエラーにせず、from/toとinclude_from/include_toを入れ替えて計算した結果の符号を反転した値(負の営業日数)を返します(反対称則: count(A,B,x,y) = -count(B,A,y,x)。A≠B、すなわちfrom≠toの場合に成立する恒等式で、from===toはこの分岐に入らないため対象外)。入力例: {"from": "2026-07-10", "to": "2026-07-20"}

Input Schema

NameRequiredDescriptionDefault
toYes終点日 YYYY-MM-DD。例: "2026-07-20"。fromより前の日付も指定可(結果は負の営業日数になります)。
fromYes起点日 YYYY-MM-DD。例: "2026-07-10"。
calendarNo"standard"(既定)または"banking"(銀行休業日も除外)。
include_toNotoを営業日数に含めるか。既定はtrue。
include_fromNofromを営業日数に含めるか。既定はfalse。
extra_closed_datesNo顧客固有の追加休業日(YYYY-MM-DD の配列)。例: ["2026-12-29", "2026-12-30"]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedInput schema / properties / to / description
      Previous value: -"終点日 YYYY-MM-DD。例: \"2026-07-20\"。fromより前の日付は不可。"New value: +"終点日 YYYY-MM-DD。例: \"2026-07-20\"。fromより前の日付も指定可(結果は負の営業日数になります)。"
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses the default excluded-boundary rule, weekend/Japanese-holiday exclusion, the added banking closure range (12/31〜1/3), and — critically — that from > to returns a negative count instead of erroring, including the antisymmetry identity and its from≠to precondition. That is exactly the non-obvious behavior an agent could not infer.

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?

Core purpose and default boundary are front-loaded, and the input example at the end is immediately usable. The antisymmetry parenthetical is verbose and largely answers a question few agents will ask, costing it the top score.

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 6-parameter, annotation-free tool the description covers boundary semantics, exclusion rules, and edge-case return behavior; the remaining parameters are fully documented in a 100%-covered schema, and no output schema means the numeric return is implicit in "営業日数を数えます". It stops just short of stating the return type explicitly or mentioning extra_closed_dates.

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 the baseline is 3, but the description adds meaning beyond the schema: it explains why include_from defaults false and include_to true via a worked example, and specifies the concrete dates added by calendar="banking" where the schema only says "銀行休業日も除外". Only extra_closed_dates is left entirely to the schema.

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?

States a specific verb and resource (count business days between from and to) and immediately scopes it with the default boundary semantics. It is clearly distinguishable from siblings add_business_days (shifting a date), is_holiday (single-date test), and list_holidays (enumeration), without needing to open any schema.

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 a concrete use scenario ("今日から支払期日まで何営業日か") and tells the agent how to alter behavior via include_from/include_to and calendar="banking". However, it never explicitly routes the agent away from or toward named alternatives, so it stays at clear-context rather than explicit when/when-not.

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.