check_date
Determine if a given date is a school holiday or public holiday for a Swiss canton, helping with event planning.
Instructions
Check whether a given date falls into school holidays or a public holiday.
<use_case>The everyday scheduling question: can we hold the parents' evening on that Thursday? Checks one date against both school and public holidays.</use_case>
The everyday question behind this tool: "Can we schedule the parents' evening on that Thursday?"
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": {
"check_date_iso": "<check_date_iso>",
"canton": "<canton>"
},
"name": "check_date"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| canton | Yes | ISO code, e.g. CH-ZH | |
| language | No | DE | |
| school_type | No | ||
| check_date_iso | Yes | Date as YYYY-MM-DD |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Human-readable caveat, set when provenance is 'degraded'. | |
| canton | Yes | ||
| source | Yes | Attribution string of the upstream source. | |
| matches | Yes | ||
| provenance | Yes | live_api = freshly fetched, cached = in-memory cache, degraded = upstream unreachable, stale or empty payload. | |
| checked_date | Yes | ||
| retrieved_at | Yes | ISO-8601 UTC timestamp of the underlying fetch. | |
| is_public_holiday | Yes | ||
| is_school_holiday | Yes |