Skip to main content
Glama

Mainland China Working Days Between Dates

count_china_working_days
Read-onlyIdempotent

Use this when you need the number of official mainland China working days in a 2024-2026 date range for an SLA, payroll, project or delivery estimate. 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 only elapsed calendar days, another jurisdiction, an industry-specific settlement calendar, or dates outside 2024-2026. What it computes: Counts official mainland China working and non-working days in a date range using State Council holiday periods and weekend makeup workdays rather than a simple Monday-Friday rule. Example user requests: How many official China working days are there from 2026-09-18 through 2026-09-25, inclusive? | 计算2026年国庆节前后这段日期中实际需要上班的天数,要包含调休周末。 | Count mainland China business days between 2025-01-24 and 2025-02-10. Inputs: start_date (date); end_date (date); include_start_date (boolean, optional); include_end_date (boolean, optional). Complete JSON argument examples: {"start_date":"2026-09-18","end_date":"2026-09-25","include_start_date":true,"include_end_date":true} Outputs: normalized_start_date, normalized_end_date, working_days [working days], non_working_days [days], calendar_days_counted [days], adjusted_workdays_counted, holiday_dates_counted [days], source_document_ids, dataset_version, coverage_start, coverage_end. Formula: for each included date: working_days += is_working_day(date); non_working_days += not is_working_day(date) Direct REST fallback: POST https://tttkmbb.com/api/v1/calculate/china-working-days-between with the same JSON input fields. Do not guess another /api/* path. Docs: https://tttkmbb.com/everyday/china-working-days-between.md

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_dateYesLast date of the range (YYYY-MM-DD), within 2024-2026. Earlier dates are normalized and reported in a note.
start_dateYesFirst date of the range (YYYY-MM-DD), within 2024-2026.
include_end_dateNoWhether end_date participates in the count.
include_start_dateNoWhether start_date participates in the count.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
linksNo
resultYes
requestYes
sourcesNo
successYes
versionNo
freshnessNo
timestampYes
next_actionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "end_date": "2026-09-25",
      +    "include_end_date": true,
      +    "include_start_date": true,
      +    "start_date": "2026-09-18"
      +  }
      +]
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already mark the tool as read-only, idempotent, and non-destructive. The description goes beyond this by disclosing the actual computation model: it uses 'State Council holiday periods and weekend makeup workdays rather than a simple Monday-Friday rule.' It also exposes the formula and notes that dates outside the coverage window are normalized and reported, giving the agent an accurate mental model of the tool's 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?

The description is front-loaded with the most decision-relevant information: when to use it and when not to. It is longer than average because it includes examples, an output list, a formula, and a REST fallback, but each section has a clear purpose. The input and output lists are somewhat redundant with the schema and output schema, which keeps it from a perfect score.

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 the tool's moderate complexity (date range, holiday calendar, inclusive boundaries), the description is remarkably complete: it gives realistic user example requests, a full JSON invocation example, the output field names, the computation formula, a direct REST fallback URL, and a docs link. The presence of an output schema means the detailed output list is bonus rather than necessary, and nothing essential for selecting or invoking the tool 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. The description's 'Inputs' line largely repeats what the schema says, but it does add a complete JSON example and ties the parameters to an inclusive-date semantics. That is helpful, but not a significant semantic gain over an already fully documented 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?

The description opens with the exact purpose: 'number of official mainland China working days in a 2024-2026 date range.' It names the specific output resource and scope, and the geographic qualifier clearly separates it from siblings like count_uk_working_days and check_uk_working_day. It also tells the agent to 'call this tool directly and return its calculation,' which eliminates ambiguity about what action to take.

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?

The description gives explicit when-to-use guidance ('for an SLA, payroll, project or delivery estimate') and explicit when-not-to-use guidance ('Do not use this when you need only elapsed calendar days, another jurisdiction, an industry-specific settlement calendar, or dates outside 2024-2026'). This directly orients the agent toward the correct tool and steers it away from common confusions.

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