create_focus_time
Creates a Focus Time event: blocks the slot, can auto-decline conflicting invitations (auto_decline + decline_message) and can flip Google Chat to Do Not Disturb (chat_status). ONLY works on the PRIMARY calendar of a Google Workspace account — consumer Gmail and secondary calendars get HTTP 400. ...
This record as markdown: /tools/a1-x-tech-mcp-google-calendar/create-focus-time.md
What create_focus_time does on Mcp Google Calendar
AI agents use create_focus_time to create or update resources in Mcp Google Calendar, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Mcp Google Calendar environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
summary | string | — | Title (defaults to "Focus time"). |
time_zone | string | — | IANA time zone name, e.g. "Europe/Berlin" or "America/New_York". |
calendar_id | string | — | The calendar id from list_calendars, or "primary" for the authenticated user's main calendar. |
chat_status | string | — | Google Chat presence during the block. |
auto_decline | string | — | Which conflicting meeting invitations Calendar auto-declines: none, all overlapping ones, or only new ones arriving after the block is created (existing meeting |
send_updates | string | — | 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 |
end_date_time | string | Yes | Block end, RFC3339. |
decline_message | string | — | Message sent with each auto-declined invitation. |
start_date_time | string | Yes | Block start, RFC3339 (these blocks are always timed, never all-day). |
Parameters from the server's own tool schema.
Why create_focus_time is rated Medium
An AI agent can call create_focus_time faster than any human can review: one bad instruction and it creates or modifies resources in Mcp Google Calendar by the hundred, each call as confident as the last.
Attacks that exploit this kind of access
The rule that runs create_focus_time safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Mcp Google Calendar, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For create_focus_time, this is the rule to start with:
create_focus_time stays usable, but capped: an agent stuck in a loop can't make hundreds of changes a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Mcp Google Calendar, apply this rule, and every create_focus_time call is checked against it from then on.
Questions about create_focus_time
Creates a Focus Time event: blocks the slot, can auto-decline conflicting invitations (auto_decline + decline_message) and can flip Google Chat to Do Not Disturb (chat_status). 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 / delete_event, and list_events with event_types=["focus_time"] to find existing blocks. Not retried after an ambiguous failure — check list_events before re-sending. It is categorised as a Write tool in the Mcp Google Calendar MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
create_focus_time accepts 9 parameters: summary, time_zone, calendar_id, chat_status, auto_decline, send_updates, end_date_time, decline_message, start_date_time. Required: end_date_time, start_date_time. The full parameter table on this page comes from the server's own tool schema.
Register the Mcp Google Calendar MCP server in PolicyLayer and add a rule for create_focus_time: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Mcp Google Calendar. Nothing to install.
create_focus_time is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the create_focus_time rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for create_focus_time. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
create_focus_time is provided by the Mcp Google Calendar MCP server (@a1-x-tech/mcp-google-calendar). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Mcp Google Calendar, and thousands of servers like it.
This server
Across the catalogue