create_holiday_profile
Create and SAVE a national-holiday profile for the organization for a specific year, AFTER the user has explicitly reviewed and confirmed the holiday list. Each holiday is either a full day off or a half/partial working day (with a start/end working window). Holiday dates MUST come from suggest_holiday_profile or the user — never invent dates. Only call this once the user has confirmed; do not call it to preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A descriptive profile name, e.g. "US Holidays 2026" or "Israel 2026". | |
| year | Yes | The calendar year this profile governs (e.g. 2026). It applies only to its year. | |
| notes | No | Optional free-text notes about this profile. | |
| source | No | Provenance of the dates: "hebcal", "nager", "manual", or "ai". Use the source returned by suggest_holiday_profile. | |
| holidays | Yes | A JSON array (as a string) of the confirmed holidays, each an object: {"date":"YYYY-MM-DD","name":"...","full_day_off":true|false,"window_start":"HH:mm","window_end":"HH:mm"}. Dates must be within the profile's year. full_day_off=false means a half/partial working day — include window_start/window_end; otherwise omit them. Example: [{"date":"2026-01-01","name":"New Year's Day","full_day_off":true},{"date":"2026-04-01","name":"Erev Pesach","full_day_off":false,"window_start":"08:00","window_end":"13:00"}] | |
| set_as_default | No | Optional. Set this profile as the organization's default holiday set for its year. | |
| default_for_countries | No | Optional comma-separated ISO-2 country codes this profile is the country-default for (for its year), e.g. "US" or "US,CA". |