Skip to main content
Glama
mcp-chinese-holiday

mcp-chinese-holiday

by kyrenbo

check_date

Check whether a given date is a workday, weekend, statutory holiday, or adjusted workday in China, returning its weekday, holiday name, and rest status.

Instructions

查询某一天是工作日、周末、法定节假日还是调休上班日。

Args: date_str: 日期,支持 2026-01-01 / 2026/1/1 / 20260101 / 今天 / 明天

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": "check_date"
  }
}

Input Schema

NameRequiredDescriptionDefault
date_strYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/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 of disclosure, and it does state the shape of the response (date, weekday, type, holiday, whether it is a rest day) and the accepted input formats. It does not spell out the behavior on unparseable dates or whether relative words like 今天 are resolved against local time; those are the remaining gaps for a side-effect-free lookup tool.

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 purpose is front-loaded in the first line, followed by a short Args/Returns block, with no filler sentences. It reads like a compact docstring: slightly format-heavy, but every line adds usable information.

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 single-parameter pure lookup with an output schema already available, the definition covers what an agent needs in order to call the tool and interpret the response. What is missing is routing relative to the sibling tools, plus the error behavior on invalid input.

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 description coverage is 0%: date_str is an undescribed bare string. The description compensates with concrete accepted formats (2026-01-01, 2026/1/1, 20260101) and relative words (今天, 明天), which is exactly the meaning missing from the schema.

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 names a specific verb and object ('查询某一天是工作日、周末、法定节假日还是调休上班日'), so the four-way classification it returns is unambiguous. It does not contrast itself with the nearest sibling is_workday, so the difference between a boolean check and a full day-type classification has to be inferred.

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?

Use is implied by the purpose: this is the tool for classifying one particular day. There is no explicit 'use this when... / use that instead' routing against is_workday, count_workdays, or get_holidays, and no mention of when the tool is unsuitable, such as for ranges of dates or year-level calendars.

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