Skip to main content
Glama
mcp-chinese-holiday

mcp-chinese-holiday

by kyrenbo

count_workdays

Count actual workdays between two dates by excluding Chinese public holidays and including adjusted make-up workdays, so scheduling and staffing calculations follow official 2024–2026 schedules.

Instructions

统计日期区间内的实际工作日天数(自动排除节假日、计入调休补班日)。

Args: start_date: 开始日期(含) end_date: 结束日期(含)

Returns: JSON:区间工作日/休息日天数统计

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "count_workdays"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateYes
start_dateYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose real behavior: holidays are auto-excluded, makeup workdays are included, and both bounds are inclusive. It leaves out the holiday calendar's region/coverage, the expected date format, timezone assumptions, and what happens with an invalid or reversed range, so significant behavioral gaps remain.

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 key behavioral rule is front-loaded in a single sentence, followed by short Args and Returns blocks. The Returns line is mildly redundant given an output schema exists, but the overall structure is efficient and easy to scan.

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

Completeness3/5

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

An output schema exists, so the brief Returns note is sufficient, and for a two-parameter tool the description covers purpose and boundaries adequately. What is missing is operationally important: the accepted date format and the holiday calendar's scope, both of which an agent needs before calling correctly.

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 0%, so the description must supply parameter meaning; it does define both parameters and, importantly, states they are inclusive bounds — semantics the schema does not carry. However, no date format or example value is given, so an agent cannot know whether to pass '2024-01-01' or another representation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence gives a specific verb and resource (count workdays) plus the exact scope (a date range), and it adds the distinguishing rule that holidays are excluded and makeup workdays (调休补班日) are counted. Siblings like is_workday and next_workday operate on a single date, so the range-aggregation purpose is distinguishable, though the description never names an alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied by the purpose statement: an agent can infer this is the tool for range-level totals rather than single-date checks. There is no explicit when-to-use/when-not, no mention of prerequisites (e.g., that the holiday calendar is region-specific), and no sibling named as the alternative for per-day lookups.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.