Skip to main content
Glama

Is today a holiday?

is_holiday_today
Read-only

Check whether today or a specified date is a public holiday in a Swiss canton, or a nationwide holiday when no canton is set. Cantonal-only holidays are listed separately and do not count.

Instructions

Check whether today (Swiss local date) or a given date is a public holiday in a canton, or, without a canton, whether it is a nationwide public holiday (cantonal-only holidays are listed separately and do not count).

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

Input Schema

NameRequiredDescriptionDefault
dateNoDate YYYY-MM-DD (default: today)
cantonNoCanton code (default: nationwide check)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.3

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds a genuinely non-obvious behavioral rule — cantonal-only holidays are reported separately and do not count toward the default nationwide answer — which prevents misinterpretation. It does not say what happens with an invalid canton code or what the response shape is.

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?

One front-loaded sentence with no filler, scoping date and canton before the caveat. The nested parentheticals make it slightly denser than necessary, but every clause carries information an agent needs.

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-optional-parameter read-only boolean predicate with full schema coverage and annotations carrying safety, nothing essential is missing. The only plausible gap is the exact return shape, and the note that cantonal holidays are 'listed separately' gives enough of a hint for this low-complexity tool.

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. The description still adds meaning beyond the schema by specifying 'today' means the Swiss local date, resolving the timezone ambiguity that the schema leaves open, and by restating that omitting canton yields the nationwide check, which the schema only implies via its default note.

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?

The description names a specific verb ('Check whether') and resource ('public holiday') and pins down both scope axes: today vs. a given date, and canton vs. nationwide. The parenthetical about cantonal-only holidays sharpens what the check actually returns rather than restating the name.

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?

It clearly conveys the two usage modes — supply a canton for a cantonal check, omit it for a nationwide check — which matches the schema defaults. It does not name alternatives or state when-not to use it, but no sibling in the catalog overlaps with holiday lookup.

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

Deploy Server

Other Tools