Skip to main content
Glama
adamzaidi

icloud-mcp

by adamzaidi

get_event

Retrieve detailed calendar event information by specifying the calendar and event IDs to access specific appointment or meeting details.

Instructions

Get full details of a specific calendar event by its ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
calendarIdYesCalendar ID containing the event
eventIdYesEvent ID (UUID from list_events or search_events)

Implementation Reference

  • The `getEvent` handler fetches a specific event from a CalDAV calendar using the event's unique ID and the calendar's ID, then parses the iCal data.
    export async function getEvent(calendarId, eventId) {
      const { dataHost, calendarsPath } = await discover();
      const url = `${dataHost}${calendarsPath}${calendarId}/${eventId}.ics`;
      const resp = await davRequest('GET', url);
    
      if (resp.status === 404) throw new Error(`Event not found: ${calendarId}/${eventId}`);
      if (resp.status >= 400) throw new Error(`CalDAV GET failed: ${resp.status}`);
    
      const event = parseVEvent(resp.body);
      return { eventId, calendarId, etag: resp.etag, ...event };
    }

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/adamzaidi/icloud-mcp'

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