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

TableJSON 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"]

TDQS

A4.6/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 delivers: counting starts the day after the given date, negative days go backward, weekends and Japanese holidays are excluded, the 'banking' calendar adds bank holidays, and days=0 behavior is explained with the skipped field. This is comprehensive behavioral disclosure.

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?

The description is compact yet information-dense, front-loading the core operation, then covering edge cases, calendar options, an alternative tool, and an example—all without unnecessary words.

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?

Given that there is no output schema, the description explains the result and mentions the skipped field, but the exact return structure (e.g., whether it's a plain date string or an object with metadata) is not fully specified. It covers negative days, zero days, calendar variants, and alternatives, so it is quite complete overall.

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. The description adds meaning beyond the schema: the starting date is not counted, negative days indicate backward calculation, calendar options are explained, and days=0 semantics are clarified. It doesn't add new meaning for extra_closed_dates, but the schema already documents it.

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?

The description clearly states the tool's function: returning the date that is N business days after or before a specified date, with explicit counting rules. It distinguishes from the sibling is_holiday by directing users to that tool for simple business-day checks.

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?

It explicitly says to use is_holiday if only checking whether a date is a business day, and notes that days=0 can also provide that via skipped. However, it does not mention business_days_between or list_holidays, so sibling differentiation is not complete.

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.

TDQS

A4.5/5.0
Disambiguation5/5

Each tool has a distinct purpose: adding business days, counting between dates, checking holiday status, and listing holidays. No overlap or ambiguity.

Naming Consistency5/5

All tool names use snake_case with a consistent verb_noun or is_ pattern (add_business_days, business_days_between, is_holiday, list_holidays).

Tool Count5/5

4 tools is appropriate for a calendar/holiday server, covering the essential operations without being too sparse or overloaded.

Completeness5/5

The tool set covers core business day arithmetic (add, count) and holiday information (check, list). Negative days and calendar options are included, so no obvious gaps.