Skip to main content
Glama
rishipradeep-think41

Google Workspace MCP Server

delete_event

Remove a specific calendar event using its unique event ID to manage Google Calendar entries programmatically via the Google Workspace MCP Server.

Instructions

Delete a calendar event

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventIdYesEvent ID to delete

Implementation Reference

  • src/index.ts:255-268 (registration)
    Registration of the 'delete_event' tool in the ListTools response, including name, description, and input schema.
    {
      name: "delete_event",
      description: "Delete a calendar event",
      inputSchema: {
        type: "object",
        properties: {
          eventId: {
            type: "string",
            description: "Event ID to delete",
          },
        },
        required: ["eventId"],
      },
    },
  • The handler function that executes the delete_event tool by deleting the specified calendar event using the Google Calendar API.
    private async handleDeleteEvent(args: any) {
      try {
        const { eventId } = args;
    
        await this.calendar.events.delete({
          calendarId: "primary",
          eventId,
        });
    
        return {
          content: [
            {
              type: "text",
              text: `Event deleted successfully. Event ID: ${eventId}`,
            },
          ],
        };
      } catch (error: any) {
        return {
          content: [
            {
              type: "text",
              text: `Error deleting event: ${error.message}`,
            },
          ],
          isError: true,
        };
      }
    }
  • Input schema definition for the delete_event tool, specifying the required 'eventId' parameter.
    inputSchema: {
      type: "object",
      properties: {
        eventId: {
          type: "string",
          description: "Event ID to delete",
        },
      },
      required: ["eventId"],
    },

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Related 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/rishipradeep-think41/gsuite-mcp'

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