Skip to main content
Glama
mcp-chinese-holiday

mcp-chinese-holiday

by kyrenbo

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

查询中国法定节假日、调休与工作日安排。当前数据范围:2024-2026 年。日期参数支持 2026-01-01 / 2026/1/1 / 20260101 / 今天 / 明天 等写法。

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
check_dateA

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

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

Returns: JSON:日期、星期、类型、所属假期、是否休息

is_workdayA

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

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

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

next_holidayB

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

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

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

next_workdayB

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

Args: date_str: 日期

Returns: JSON:下一个工作日及星期

get_holidaysA

获取某一年全部法定假期安排(含调休补班日)。

Args: year: 年份,如 2026

Returns: JSON:全年假期列表

count_workdaysB

统计日期区间内的实际工作日天数(自动排除节假日、计入调休补班日)。

Args: start_date: 开始日期(含) end_date: 结束日期(含)

Returns: JSON:区间工作日/休息日天数统计

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 6 tools

Disambiguation3/5

Most tools target clearly different questions (next holiday, next workday, yearly holiday list, workday counting), but check_date and is_workday overlap heavily: both answer 'what is this date / do I work'. The descriptions differentiate them (full classification vs boolean), but an agent asking 'is 2026-05-01 a workday?' could reasonably pick either.

Naming Consistency4/5

All names are snake_case and follow a verb/qualifier + noun pattern (next_holiday, get_holidays, count_workdays, check_date, is_workday). The mix of get_/count_/check_/is_/next_ is a minor deviation but remains readable and predictable.

Tool Count4/5

Six tools is a well-scoped size for a holiday-calendar domain, covering lookup, counting, and navigation. One slot (is_workday) is arguably a thinner restatement of check_date, so the set is slightly padded rather than minimal.

Completeness4/5

Core workflows are covered: yearly holiday data, date classification, workday counting, and forward navigation to the next holiday/workday. Minor gaps exist, such as listing holidays within an arbitrary date range or looking up a holiday by name, but agents can derive these from get_holidays and count_workdays.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues