Skip to main content
Glama
rishipradeep-think41

Google Workspace MCP Server

update_event

Modify existing calendar events by updating attendees, description, start/end times, location, or title using the Google Workspace MCP Server tool.

Instructions

Update an existing calendar event

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
attendeesNoNew list of attendee email addresses
descriptionNoNew event description
endNoNew end time in ISO format
eventIdYesEvent ID to update
locationNoNew event location
startNoNew start time in ISO format
summaryNoNew event title

Implementation Reference

  • Executes the update_event tool: patches the specified Google Calendar event with updated fields (summary, location, description, start, end, attendees) using Google Calendar API v3.
    private async handleUpdateEvent(args: any) {
      try {
        const { eventId, summary, location, description, start, end, attendees } =
          args;
    
        const event: any = {};
        if (summary) event.summary = summary;
        if (location) event.location = location;
        if (description) event.description = description;
        if (start) {
          event.start = {
            dateTime: start,
            timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
          };
        }
        if (end) {
          event.end = {
            dateTime: end,
            timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
          };
        }
        if (attendees) {
          event.attendees = attendees.map((email: string) => ({ email }));
        }
    
        const response = await this.calendar.events.patch({
          calendarId: "primary",
          eventId,
          requestBody: event,
        });
    
        return {
          content: [
            {
              type: "text",
              text: `Event updated successfully. Event ID: ${response.data.id}`,
            },
          ],
        };
      } catch (error: any) {
        return {
          content: [
            {
              type: "text",
              text: `Error updating event: ${error.message}`,
            },
          ],
          isError: true,
        };
      }
    }
  • Input schema defining the parameters for the update_event tool: eventId (required), optional summary, location, description, start, end, attendees.
    inputSchema: {
      type: "object",
      properties: {
        eventId: {
          type: "string",
          description: "Event ID to update",
        },
        summary: {
          type: "string",
          description: "New event title",
        },
        location: {
          type: "string",
          description: "New event location",
        },
        description: {
          type: "string",
          description: "New event description",
        },
        start: {
          type: "string",
          description: "New start time in ISO format",
        },
        end: {
          type: "string",
          description: "New end time in ISO format",
        },
        attendees: {
          type: "array",
          items: { type: "string" },
          description: "New list of attendee email addresses",
        },
      },
      required: ["eventId"],
    },
  • src/index.ts:216-254 (registration)
    Registration of the update_event tool in the tools list returned by ListToolsRequestHandler, including name, description, and input schema.
    {
      name: "update_event",
      description: "Update an existing calendar event",
      inputSchema: {
        type: "object",
        properties: {
          eventId: {
            type: "string",
            description: "Event ID to update",
          },
          summary: {
            type: "string",
            description: "New event title",
          },
          location: {
            type: "string",
            description: "New event location",
          },
          description: {
            type: "string",
            description: "New event description",
          },
          start: {
            type: "string",
            description: "New start time in ISO format",
          },
          end: {
            type: "string",
            description: "New end time in ISO format",
          },
          attendees: {
            type: "array",
            items: { type: "string" },
            description: "New list of attendee email addresses",
          },
        },
        required: ["eventId"],
      },
    },
  • src/index.ts:286-289 (registration)
    Routing case in the CallToolRequestHandler switch statement that dispatches update_event calls to the handleUpdateEvent method.
    case "update_event":
      return await this.handleUpdateEvent(request.params.arguments);
    case "delete_event":
      return await this.handleDeleteEvent(request.params.arguments);

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations provided, so description must disclose behavioral traits. It implies mutation but doesn't clarify partial vs. full update, permission requirements, side effects, or error conditions.

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?

Single sentence, no wasted words, but slightly under-specified. Could benefit from a brief second sentence on partial update behavior.

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

Completeness2/5

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

For a tool with 7 parameters and no output schema, the description fails to explain return value (e.g., updated event object) or partial update semantics. Contextually incomplete.

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

Parameters3/5

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

Schema coverage is 100% with descriptions for all 7 parameters. The description adds no additional semantics beyond the schema, meeting baseline but not exceeding it.

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 'Update an existing calendar event' clearly states the verb (update) and resource (calendar event), and distinguishes from siblings like create_event and delete_event.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives (e.g., create_event for new events, list_events to find IDs). No prerequisites or exclusions mentioned.

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

Related Tools