Skip to main content
Glama

PlugRail Japanese Calendar

add_business_days

指定した日付(date)の翌日から数えてN営業日目(days)の日付を返します。dateの当日は数えません。daysが負の場合は過去方向(dateの前日から遡ってN営業日目)に計算します。土日・日本の祝日を除外し、calendar="banking"を指定すると銀行休業日(12/31〜1/3)も除外します。dateが営業日かどうかだけ知りたい場合は is_holiday を使ってください(days=0でも同じ情報がskipped経由で得られます)。入力例: {"date": "2026-07-10", "days": 3}

Input Schema

NameRequiredDescriptionDefault
dateYes起点日 YYYY-MM-DD。例: "2026-07-10"。この日自体は数えません。
daysYes何営業日先(正)/前(負)かを表す整数。0も指定可: dateをそのまま返し、dateが非営業日ならskippedに1件(date自身とその理由)を記録します。
calendarNo"standard"(既定)または"banking"(銀行休業日も除外)。
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 / days / description
      Previous value: -"何営業日先(正)/前(負)かを表す整数。0は不可(is_holidayまたはdays=1を使用)。"New value: +"何営業日先(正)/前(負)かを表す整数。0も指定可: dateをそのまま返し、dateが非営業日ならskippedに1件(date自身とその理由)を記録します。"
  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 exclusion rules (weekends, Japanese holidays, and banking holidays 12/31-1/3 with calendar="banking"), the non-inclusive counting of the anchor day, and negative-direction behavior.

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?

Front-loaded with the core semantics and finishing with a concrete input example. Some counting details are stated twice (anchor day not counted appears in both description and schema), but overall dense and low-waste.

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?

No output schema exists, and the description only alludes to the 'skipped' return mechanism without fully describing the response shape. For a deterministic computation tool the behavioral and parameter coverage is otherwise complete, so the gap is minor.

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 date, days, calendar, and extra_closed_dates are already fully documented in the schema. The description reinforces days/calendar behavior but adds little not already in the schema, warranting the baseline 3 for a high-coverage 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+resource: returns the date N business days from (but not counting) the given date, with explicit forward/backward semantics. It names and distinguishes itself from the sibling is_holiday, so an agent can route without opening a schema.

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

Usage Guidelines5/5

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

Explicitly routes the agent: 'if you only want to know whether date is a business day, use is_holiday instead'. It also notes days=0 yields the same info via skipped, giving clear when-to-use and when-to-use-something-else guidance.

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.