Create an Out of Office block
create_out_of_officeBlock your calendar as out of office and auto-decline meeting invitations during that period. Specify start, end, and optional decline message to control which conflicting meetings are rejected.
Instructions
Creates an Out of Office event that can auto-decline meeting invitations while it lasts (auto_decline: all overlapping meetings, or only new invitations; decline_message customizes the reply). ONLY works on the PRIMARY calendar of a Google Workspace account — consumer Gmail and secondary calendars get HTTP 400. Always timed (start/end date_time), never all-day. Manage it afterwards like any event: update_event to change it, delete_event to remove it, list_events with event_types=["out_of_office"] to find existing blocks. Not retried after an ambiguous failure — check list_events before re-sending.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | No | Title (defaults to "Out of office"). | |
| time_zone | No | IANA time zone name, e.g. "Europe/Berlin" or "America/New_York". | |
| calendar_id | No | The calendar id from list_calendars, or "primary" for the authenticated user's main calendar. | primary |
| auto_decline | No | Which conflicting meeting invitations Calendar auto-declines: none, all overlapping ones, or only new ones arriving after the block is created (existing meetings survive). | |
| send_updates | No | Who receives an email about this change: all guests, only guests outside your organization, or nobody. Defaults to none — attendees are NOT notified unless you pass all. | |
| end_date_time | Yes | Block end, RFC3339. | |
| decline_message | No | Message sent with each auto-declined invitation. | |
| start_date_time | Yes | Block start, RFC3339 (these blocks are always timed, never all-day). |