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.
The everyday scheduling question: can we hold the parents' evening on that Thursday? Checks one date against both school and public holidays.
The everyday question behind this tool: "Can we schedule the parents' evening on that Thursday?"
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 |