Skip to main content
Glama

Calendar Set Event Attachments

calendar_set_event_attachments
DestructiveIdempotent

Add or remove files from an existing Google Calendar event's attachments while keeping other attachments, with options to add, remove, or both in one update.

Instructions

Add files to and remove files from an existing event's attachments in one change, keeping the others; give add, remove or both. To replace the whole list use calendar_update_event, and to save an attached file use drive_download_file with its file_id. Returns status 'ok', event (the updated event in the calendar_read_events shape), added_count and removed_count (0 when nothing matched). Removing attachments, or a send_updates that emails guests, asks the user to confirm first; declining returns status 'cancelled' with nothing changed.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "event_id": "<event_id>"
    },
    "name": "calendar_set_event_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNoFiles to attach, each {file_url, title, mime_type, icon_link, file_id}; a file whose file_url is already attached is skipped. Google allows at most 25 attachments per event.
removeNoAttachments to detach, each {file_url, file_id} with at least one of the two, as listed by calendar_read_events; an attachment matching either is removed. Removals apply before additions, and the files stay in Drive.
event_idYesCalendar event ID, from calendar_search_events, calendar_get_calendar_digest or calendar_read_events results.
calendar_idNoCalendar ID: 'primary' for the user's main calendar, or an ID from calendar_get_calendar_context's calendars (often an email address).primary
send_updatesNoWho Google notifies about this change: 'all' guests, 'externalOnly' (only guests who do not use Google Calendar, by email), or 'none'.

Output Schema

NameRequiredDescriptionDefault
eventNo
statusNoMachine-readable operation status.
added_countNo
removed_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is largely covered structurally. The description still adds real value beyond them: duplicate file_urls are skipped, removals apply before additions, files stay in Drive, the 25-attachment cap, and especially the user-confirmation flow that returns status 'cancelled' with nothing changed when declining. Rich behavioral context, though it does not discuss permission scopes or rate limits.

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

Conciseness4/5

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

Front-loaded with the core action and scope, then alternatives, then return values, then confirmation behavior — a logical ordering with no filler sentences. It is fairly dense, with one long multi-clause sentence and some return-value detail that the output schema already covers, but nothing is wasted.

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 5-parameter mutation with nested add/remove payloads and a destructive hint, the description covers what gets changed, what is preserved, ordering, limits, confirmation/cancellation outcomes, and where to go for adjacent operations. With an output schema present, the brief return-shape note is sufficient rather than required.

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

Parameters5/5

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

Schema coverage is already 100%, so the bar is a 3, but the description adds meaning the schema does not: an attachment in 'remove' matches on either file_id or file_url, the ordering of removals before additions, that files are not deleted from Drive, and that send_updates='externalOnly' targets non-Google guests. That is genuine semantic clarification on top of structured fields.

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?

States a specific verb pair and resource — add and remove files on an existing event's attachments while keeping the others — and explicitly marks the boundary against calendar_update_event (full replacement) and drive_download_file (saving a file). An agent can distinguish this from every named sibling without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit alternatives with the conditions that select them: use calendar_update_event to replace the whole list, use drive_download_file with file_id to save an attached file. It also tells the agent that add, remove, or both are valid call shapes, so the invocation choice is unambiguous.

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

Deploy Server

Other Tools