Skip to main content
Glama

Google Workspace MCP Server

by ZatesloFL

get_events

Retrieve Google Calendar events by ID, time range, or keyword search using a user's email and calendar ID. Supports detailed event info and multi-result filtering for efficient scheduling.

Instructions

Retrieves events from a specified Google Calendar. Can retrieve a single event by ID or multiple events within a time range. You can also search for events by keyword by supplying the optional "query" param.

Args: user_google_email (str): The user's Google email address. Required. calendar_id (str): The ID of the calendar to query. Use 'primary' for the user's primary calendar. Defaults to 'primary'. Calendar IDs can be obtained using list_calendars. event_id (Optional[str]): The ID of a specific event to retrieve. If provided, retrieves only this event and ignores time filtering parameters. time_min (Optional[str]): The start of the time range (inclusive) in RFC3339 format (e.g., '2024-05-12T10:00:00Z' or '2024-05-12'). If omitted, defaults to the current time. Ignored if event_id is provided. time_max (Optional[str]): The end of the time range (exclusive) in RFC3339 format. If omitted, events starting from time_min onwards are considered (up to max_results). Ignored if event_id is provided. max_results (int): The maximum number of events to return. Defaults to 25. Ignored if event_id is provided. query (Optional[str]): A keyword to search for within event fields (summary, description, location). Ignored if event_id is provided. detailed (bool): Whether to return detailed event information including description, location, and attendees. Defaults to False.

Returns: str: A formatted list of events (summary, start and end times, link) within the specified range, or detailed information for a single event if event_id is provided.

Input Schema

NameRequiredDescriptionDefault
calendar_idNoprimary
detailedNo
event_idNo
max_resultsNo
queryNo
time_maxNo
time_minNo
user_google_emailYes

Input Schema (JSON Schema)

{ "properties": { "calendar_id": { "default": "primary", "title": "Calendar Id", "type": "string" }, "detailed": { "default": false, "title": "Detailed", "type": "boolean" }, "event_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Event Id" }, "max_results": { "default": 25, "title": "Max Results", "type": "integer" }, "query": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Query" }, "time_max": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Time Max" }, "time_min": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Time Min" }, "user_google_email": { "title": "User Google Email", "type": "string" } }, "required": [ "user_google_email" ], "type": "object" }

Other Tools from Google Workspace MCP Server

Related Tools

    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/ZatesloFL/google_workspace_mcp'

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