Skip to main content
Glama
mcp-chinese-holiday

mcp-chinese-holiday

by kyrenbo

next_workday

Find the next working day on or after a given date in China, accounting for statutory holidays and adjusted workdays, and return its date and weekday.

Instructions

查询从某天开始(含当天)的下一个需要上班的日期。

Args: date_str: 日期

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": {
      "date_str": "<date_str>"
    },
    "name": "next_workday"
  }
}

Input Schema

NameRequiredDescriptionDefault
date_strYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the inclusive-start rule and that the result includes both the date and its weekday, and '需要上班的日期' implies weekend/holiday awareness. It does not state which holiday calendar or timezone is used, or whether the input format is validated — relevant for a date-computation tool with no annotation coverage.

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 core sentence is short and front-loaded with the key scoping rule. The Args/Returns block is boilerplate and partly redundant with the existing output schema, but it costs little.

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 description needn't explain return values, and it correctly stays brief. The remaining gap is the input date format and the holiday-calendar assumption, which matter for correct invocation and are absent from both description and schema.

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

Parameters2/5

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

Schema description coverage is 0% — the schema only offers the bare title 'Date Str'. The description's 'date_str: 日期' merely restates the parameter name in Chinese and adds no format, example, or accepted range (e.g. YYYY-MM-DD), so it fails to compensate for the coverage gap.

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 description states a specific verb+resource: find the next date that requires work, starting from and including the given day. That is clearly distinct from is_workday (a boolean check) and next_holiday (a different target), though it never names those siblings 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?

The parenthetical '(含当天)' is genuinely useful usage information: it tells the agent the start date is included in the search, which is the main ambiguity for this kind of tool. However, there is no explicit statement of when to prefer this over is_workday or next_holiday, so routing 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.