calendar_events_add
Schedule a one-off time window for downtime, maintenance, delivery, or shift on an entity using timezone-aware ISO 8601 start/end timestamps.
Instructions
SIDE-EFFECTFUL. Add a one-off time window (downtime, maintenance, a delivery, a shift, an inspection, etc.) to an entity. NOT idempotent: calling this twice creates two events. starts_at/ends_at must be ISO 8601 with an explicit timezone (Z or ±HH:MM), naive timestamps are rejected because their meaning would be ambiguous once stored as UTC. Returns {event}. Follow up with calendar_events_conflicts to check for overlaps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Freeform event type, e.g. 'downtime', 'maintenance', 'delivery', 'shift'. | |
| notes | No | Optional free-text notes about the event. | |
| title | Yes | Short title for the event. | |
| entity | Yes | Entity the event applies to, name (case-insensitive) or numeric id. | |
| source | No | Freeform provenance, e.g. 'email from ops team'. | |
| ends_at | Yes | ISO 8601 timestamp with explicit timezone; must be after starts_at. | |
| starts_at | Yes | ISO 8601 timestamp with explicit timezone, e.g. '2026-08-03T02:00:00+05:30'. | |
| original_timezone | No | IANA timezone the window was originally communicated in, for display. |