Skip to main content
Glama

Engine Heart

calendar.query_holiday

查询指定公历日期的中国法定节假日或调休安排,同时返回农历信息。支持2025、2026年。参数date格式:YYYY-MM-DD

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": "<date>"
    },
    "name": "calendar.query_holiday"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes公历日期,格式 YYYY-MM-DD,如 "2026-10-01"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry behavioral disclosure. It does add real value: it reveals that the response includes lunar information in addition to holiday/workday status, and it states supported years (2025, 2026). However, it does not state what happens for out-of-range dates or how the holiday versus make-up workday case is represented in the response.

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 definition is compact and front-loaded: purpose first, then the supported-year constraint, then the parameter format. Every sentence carries information, with only minor redundancy in restating the date format already present in the schema.

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?

For a single-parameter read tool with no annotations and no output schema, the description covers purpose, response extras (lunar info), and year limits. The main gap is that return-value structure and out-of-range behavior are not described, which matters more given the absence of an output schema.

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 100% and there is a single required parameter already documented with format and example. The description restates the YYYY-MM-DD format but adds no new meaning (e.g. whether timezone or date-boundary matters). A baseline of 3 is appropriate when the schema fully handles the parameter.

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 gives a specific verb+resource: query Chinese statutory holidays or make-up workday (调休) arrangements for a specified Gregorian date, plus lunar calendar info. This is clearly narrower than a listing tool like calendar.list_holidays because it is scoped to one date, although it does not name that sibling 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 implied by the scope statement: use it for a single Gregorian date within 2025 or 2026. The supported-year constraint is genuinely useful guidance because it implies usage boundaries, but no explicit when-not or alternative (e.g. listing all holidays) is named.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources