Skip to main content
Glama

List holidays

list_holidays
Read-onlyIdempotent

Holiday rows for one year. us-federal-opm and us-fed-banking return the eleven nationwide legal public holidays. On us-fed-banking, observed is null when the legal date is a Saturday, because Friday stays open. us-nyse returns the NYSE full-day table and accepts only 2026 through 2028. us-sifma returns the SIFMA U.S. full-close table and accepts only 2026 and 2027. us-ca returns the California state-office table and accepts only 2026. us-ny returns the New York State office table and accepts only 2026 and 2027. us-nyc returns the New York City office table and accepts only 2026 and 2027. A Saturday holiday closes Friday. year is 2021 through 2100 on the federal calendars. Years after 2030 use the same rules and are not a later official table.

Input Schema

NameRequiredDescriptionDefault
yearYesCalendar year, 2021 through 2100.
calendarNoCalendar id. Omit for us-federal-opm. Unknown ids are an error. us-fed-banking keeps Reserve Banks open on the Friday before a Saturday holiday. us-nyse is NYSE full-day holidays for 2026 through 2028. us-sifma is SIFMA recommended U.S. full closes for 2026 and 2027. An early close stays open. us-ca is California state offices for 2026. A Saturday holiday does not close Friday. us-ny is New York State executive-branch offices for 2026 and 2027. A floating holiday stays open. us-nyc is New York City offices for 2026 and 2027. A Saturday holiday closes Friday.

Output Schema

NameRequiredDescriptionDefault
yearYesyear
countYescount
sourcesYessources
calendarYescalendar
holidaysYesholidays
disclaimerYesdisclaimer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), yet the description adds real behavioral nuance: observed is null on us-fed-banking when the legal date is Saturday, Saturday holidays close Friday, distinct full-day vs. early-close semantics, per-calendar acceptance windows, and the forward-compatibility caveat that post-2030 years use identical rules rather than a later official table.

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 nearly every sentence carries a distinct per-calendar rule. It is a dense wall of prose with mild redundancy, though, repeating the Saturday-closes-Friday rule in both the bank and generic phrasings that the schema already states for us-fed-banking.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter lookup tool with an output schema present, the description covers the caller's real ambiguities: which calendar to pick, what each calendar's rows mean, default behavior, year limits per calendar, and forward-compatibility. Nothing needed to invoke it correctly is missing.

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 100%, so the baseline is 3, but the description genuinely adds meaning beyond the schema's generic 2021-2100 range by stating per-calendar year windows (us-nyse 2026-2028, us-sifma/ny/nyc 2026-2027, us-ca 2026) and the default-when-omitted behavior. It does not restate the enum values, but that is handled by the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource+scope: 'Holiday rows for one year.' It immediately distinguishes itself from siblings like list_calendars (which enumerates calendars) and is_business_day (which tests a single date). An agent knows exactly what this tool returns.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives rich context for choosing among the seven calendars, including their legal meaning and accepted year windows, which effectively routes the agent. However, it never explicitly names an alternative (e.g., use list_calendars to discover ids) or states when not to use this tool, so it stops short of full when/when-not guidance.

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