Skip to main content
Glama

Create an Out of Office block

create_out_of_office

Block 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

TableJSON Schema
NameRequiredDescriptionDefault
summaryNoTitle (defaults to "Out of office").
time_zoneNoIANA time zone name, e.g. "Europe/Berlin" or "America/New_York".
calendar_idNoThe calendar id from list_calendars, or "primary" for the authenticated user's main calendar.primary
auto_declineNoWhich conflicting meeting invitations Calendar auto-declines: none, all overlapping ones, or only new ones arriving after the block is created (existing meetings survive).
send_updatesNoWho 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_timeYesBlock end, RFC3339.
decline_messageNoMessage sent with each auto-declined invitation.
start_date_timeYesBlock start, RFC3339 (these blocks are always timed, never all-day).
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (not read-only, not idempotent), the description discloses concrete side effects: auto-decline applies to 'all overlapping meetings, or only new invitations', send_updates defaults to no notifications, and ambiguous failures are not retried — advising list_events verification. This gives an agent a realistic model of the call's effects and failure semantics.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five tightly written sentences, each carrying distinct operational value: behavior, compatibility constraint, scheduling format, management pattern, and retry policy. No filler or repetition of schema text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a create operation with no output schema, it covers all non-obvious aspects: auto-decline modes, decline message, calendar restriction, always-timed constraint, post-creation management via sibling tools, and handling of ambiguous failures. An agent has enough to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema covers 100% of parameters with descriptions, so the baseline is 3. The description adds crucial clarification that calendar_id effectively only supports the primary calendar in practice, contradicting the schema's hint that any calendar_id from list_calendars works, and reinforces that start/end_date_time must be timed. This extra meaning pushes it above baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action and resource: 'Creates an Out of Office event' with a distinguishing behavior, auto-declining meeting invitations. This clearly separates it from sibling tools like create_event and create_focus_time even before reading parameters.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear usage context: only for primary Google Workspace calendars, always timed, and how to manage the block afterward via update_event, delete_event, and list_events. It does not explicitly contrast with create_event for non-OOO events, but the limitation and management guidance effectively scope when this tool is appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/A1-x-Tech/mcp-google-calendar'

If you have feedback or need assistance with the MCP directory API, please join our Discord server