Skip to main content
Glama

Add Japan National Working Days

add_japan_national_working_days
Read-onlyIdempotent

Use this when you need a deterministic Japan statutory national-holiday date offset in 2026-2027. Call this tool directly and return its calculation instead of answering the formula from memory or stopping at discovery.

Do not use this when you need company, school, bank, exchange or prefectural closure semantics. What it computes: Adds or subtracts dates using the pinned Japan statutory national-holiday schedule and weekend baseline. Example user requests: Add five Japan national working days after 2027-03-19. Inputs: start_date (date); working_days (integer). Complete JSON argument examples: {"start_date":"2027-03-19","working_days":1} Outputs: start_date, result_date, working_days_added, calendar_days_elapsed, national_holidays_skipped, territory, territory_name, day_type, holiday_names, holiday_kinds, holiday_legal_bases, weekend_days, calendar_scope, rest_day_policy, calendar_profile, dataset_version, sources. Formula: move one day at a time; decrement remaining only when Japan national status.is_working_day=true Direct REST fallback: POST https://tttkmbb.com/api/v1/calculate/japan-national-add-working-days with the same JSON input fields. Do not guess another /api/* path. Docs: https://tttkmbb.com/everyday/japan-national-add-working-days.md

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
start_dateYesGregorian start date in 2026-2027.
working_daysYesSigned offset; start date is excluded for non-zero offsets.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
linksNo
resultYes
requestYes
sourcesNo
successYes
versionNo
freshnessNo
timestampYes
next_actionsNo
service_versionYesDeployed Calcgrid implementation version used for the result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world. The description goes beyond them by disclosing the pinned dataset/version, the deterministic step-by-step algorithm, the enumerated output fields, source attributions, and a REST fallback path with an explicit warning not to guess other /api/* paths.

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 use/defer decision and organized into labeled sections, but it is long and repeats information the schema already contains (inputs list, JSON example, output field list). Mostly earns its length, with some redundancy against structured fields.

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?

Covers computation semantics, scope limits, output fields, dataset versioning, and a REST fallback plus doc link, which is ample for a 2-parameter deterministic calculator. The output-field enumeration is redundant given the output schema exists, keeping it just under a 5.

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 carries both parameters' formats and the signed-offset semantics. The description's 'Inputs' line and JSON example merely restate what the schema provides, adding no new syntactic or edge-case detail. Baseline 3 is appropriate.

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 (adds/subtracts), resource (dates), and scope (Japan statutory national-holiday schedule with weekend baseline and a 2026-2027 window). This is clearly distinguishable from the 60+ sibling country working-day tools and from check_/count_japan_national variants.

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?

Explicit when-to-use ('deterministic Japan statutory national-holiday date offset in 2026-2027'), an explicit instruction to prefer this over memory/discovery, and an explicit when-not ('company, school, bank, exchange or prefectural closure semantics'). Nothing is left to inference.

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