Skip to main content
Glama
mcp-chinese-holiday

mcp-chinese-holiday

by kyrenbo

next_holiday

Calculate the days remaining until the next Chinese statutory holiday from a given date, or return the current holiday if that date falls within one.

Instructions

查询距离下一个法定假期还有多少天。如果当天正在假期中,返回当前假期本身。

Args: date_str: 起算日期,默认"今天"

Returns: JSON:假期名称、起止日期、天数、距离

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

Input Schema

NameRequiredDescriptionDefault
date_strNo今天

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden: it does not say which calendar or locale the statutory holidays belong to, which timezone the concept of "today" uses, or what happens when the query crosses a year boundary. It does provide the useful edge-case behavior and enumerates the return fields, but a lot of behavior remains undisclosed.

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, and the Args and Returns sections are terse and scannable. Nothing is truly redundant; the only weakness is that the structured sections read as template boilerplate rather than prose tailored to the task.

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 describing return values is optional, and the description does it anyway. What is missing concerns the tool's core domain: the calendar and timezone assumption, and the date_str format. These gaps matter for an agent that must choose between several date-related siblings.

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 has to carry all parameter semantics. It correctly explains that date_str is the starting date and defaults to "今天", which is more than the bare schema enum, but it never gives the accepted date format, which an agent needs in order to call it correctly.

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 and resource: it counts days until the next statutory holiday, and it explicitly covers the edge case where the current date already falls inside a holiday. However, it never distinguishes itself from the siblings next_workday or get_holidays, so an agent must infer which one fits a given question.

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 name and the one conditional ("if today is in a holiday, return that holiday"). The description gives no explicit when-to-use or when-not-to-use guidance relative to next_workday, is_workday, or get_holidays.

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