list_holidays
Retrieve the full holiday calendar for a year and country, sorted by date. Optionally include regional holidays for detailed planning.
Instructions
List all holidays for a given year and country, sorted by date.
Use this to enumerate the full holiday calendar — for display, planning, or cross-referencing. Includes holidays that fall on weekends.
Args: year: Four-digit year (e.g. 2026). country: ISO 3166-1 alpha-2 code (case-insensitive, normalized to upper). subdiv: Optional country-specific subdivision code (case-sensitive; see get_supported_countries). When omitted, only nation-wide holidays are returned. Example: country="DE", subdiv="BY" adds Bavarian regional holidays such as Epiphany (Jan 6) and All Saints' Day (Nov 1). Category filtering (e.g. catholic vs evangelical) is not currently supported; the union of applicable categories is returned.
Returns: dict with keys: year, country, subdiv (only if provided), holidays (list of {date: YYYY-MM-DD, name: str}, sorted ascending by date).
Raises: ValueError: on unknown country/subdiv.
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": {
"year": "<year>",
"country": "<country>"
},
"name": "list_holidays"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| country | Yes | ||
| subdiv | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||