Skip to main content
Glama

China Workday Calendar

China workday check

cn_workday_check
Read-only

Is a date a working day in mainland China? Applies State Council (国务院) holiday notices: public holidays, weekend makeup workdays (调休补班) and ordinary weekends; returns the holiday name and the gov.cn source link. Pass date for one day, or from and to (inclusive, up to 366 days) to count and list working days. Coverage 2020-01-01..2027-12-31. Free for 20 calls per day, then pay-per-call over x402.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cn_workday_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoRange end, inclusive (YYYY-MM-DD)
dateNoOne date (YYYY-MM-DD). Do not combine with from/to.
fromNoRange start, inclusive (YYYY-MM-DD)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already mark it read-only and closed-world, but the description adds genuinely useful non-schema behavior: the returned holiday name and gov.cn source link, the 2020-2027 coverage horizon, and a free tier of 20 calls/day with pay-per-call over x402 beyond that. Rate limits and pricing are exactly the kind of context annotations cannot convey; only error/out-of-coverage behavior is left unstated.

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 question and authoritative source, then modes, then coverage and pricing. Nearly every clause carries information, though the pricing/coverage sentence stacks several facts at the tail where an agent may skim past them.

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?

For a 3-parameter lookup with no output schema, the description covers purpose, mode selection, date format expectations, coverage bounds, return contents, and cost model. Only out-of-coverage or invalid-range failure behavior remains unspecified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and already documents the YYYY-MM-DD patterns and the 'do not combine date with from/to' rule, so the baseline is 3. The description goes beyond it by stating that from/to are inclusive and capped at 366 days, which is operationally important and not encoded in the 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 question answered (is a date a working day in mainland China) plus the authoritative basis (State Council holiday notices covering public holidays, 调休补班 makeup workdays, and ordinary weekends). This is concrete enough to distinguish it from the unrelated sibling package_advisories 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 Guidelines4/5

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

Gives clear invocation modes: pass 'date' for a single day, or 'from' and 'to' for an inclusive range, with the 366-day cap and the coverage window 2020-01-01..2027-12-31 spelled out. It does not explicitly state when not to use the tool (e.g., dates outside coverage), but the practical selection guidance is clear.

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.