Skip to main content
Glama
mcp-chinese-holiday

mcp-chinese-holiday

by kyrenbo

is_workday

Determine if a date is a workday or school day in China, including statutory holidays and adjusted workdays. Enter a date or 'today'/'tomorrow' to receive a boolean result and reasoning.

Instructions

判断某一天是否需要上班/上学(考虑节假日与调休)。

Args: date_str: 日期,支持多种写法与"今天/明天"

Returns: JSON:is_workday 布尔结果及判定依据

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

Input Schema

NameRequiredDescriptionDefault
date_strYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden, and it does add useful behavior: the judgment factors in official holidays and 调休, and the response includes both a boolean and the reasoning behind it. However, it omits which regional or calendar system the holiday data comes from, how current the data is, and what happens when the input cannot be parsed — all material for a date-judgment tool with no readOnly/rate-limit metadata.

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?

It is short and front-loaded, with the Args/Returns split making it easy to scan. The Returns section largely restates what the output schema already provides, which is mild redundancy but not harmful.

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 predicate tool with an output schema, purpose, accepted input forms, and the shape of the result are all covered. The remaining gap is the missing holiday-calendar scope and error behavior on invalid dates, which matters but is secondary for a tool this simple.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate, and it does: it states that date_str accepts multiple written formats and relative expressions such as "今天/明天", which the schema (a bare string titled 'Date Str') does not convey. It stops short of enumerating the accepted formats or the timezone assumed, but the semantic gap is largely closed.

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 determination (whether a given day is a workday/school day) and adds the key scope qualifier that holidays and 调休 make-up workdays are taken into account. It is clear on its own, but it never distinguishes itself from the sibling tools next_workday or check_date, which an agent could easily confuse with it.

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: an agent can infer that it should call this tool when it needs a yes/no verdict for one specific date. There is no explicit statement about when to prefer it over next_workday (finding the following workday) or get_holidays, and no mention of any prerequisites or exclusions.

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