Skip to main content
Glama

Count Japan National Working Days

count_japan_national_working_days
Read-onlyIdempotent

Use this when you need an auditable Japan statutory national-holiday working-day count. 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 a company, school, bank, exchange or prefectural closure calendar. What it computes: Counts Japan statutory-baseline working and non-working dates for a pinned year range. Example user requests: Count Japan working days from 2027-03-01 to 2027-03-31. Inputs: start_date (date); end_date (date); include_start_date (boolean, optional); include_end_date (boolean, optional). Complete JSON argument examples: {"start_date":"2027-03-01","end_date":"2027-03-31","include_start_date":true,"include_end_date":true} Outputs: normalized_start_date, normalized_end_date, working_days, non_working_days, national_holidays_counted, 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: for each included date: working_days += Japan national status.is_working_day Direct REST fallback: POST https://tttkmbb.com/api/v1/calculate/japan-national-working-days-between with the same JSON input fields. Do not guess another /api/* path. Docs: https://tttkmbb.com/everyday/japan-national-working-days-between.md

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_dateYesLast date in 2026-2027.
start_dateYesFirst date in 2026-2027.
include_end_dateNoWhether end_date participates.
include_start_dateNoWhether start_date participates.

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.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior. The description adds meaningful context beyond that: the statutory-baseline scope limitation, the pinned year range, the enumerated return fields (calendar_scope, rest_day_policy, dataset_version), the computation formula, and a REST fallback endpoint. Minor gap: it does not state error handling for out-of-range dates.

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?

Well front-loaded: usage, exclusions, computation, example, inputs, and fallback in a scannable order. Slight over-length comes from enumerating the full output field list, which duplicates the existing output schema and does not fully earn its place.

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

Completeness5/5

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

Given an output schema already exists, the description need not explain return values, yet it still covers usage boundaries, inputs, a worked example, a REST fallback and docs links. Nothing an agent needs to invoke it correctly is missing.

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 documents all four parameters, their types, defaults and optionality. The description restates inputs and provides a complete JSON example but adds no semantic detail beyond what the schema supplies. Baseline 3 applies.

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 Japan statutory national-holiday working days) with an explicit scope qualifier ('statutory-baseline', 'pinned year range') that separates it from the dozens of sibling count_*_working_days tools. An agent can identify exactly what this does without opening the 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?

Explicit when-to-use ('when you need an auditable Japan statutory national-holiday working-day count') and when-not ('company, school, bank, exchange or prefectural closure calendar'). It also instructs the agent to prefer this over answering from memory or stopping at discovery, which is unusually strong routing 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.

Resources