INNER CODE UNIT · Python

delete_event

existence-master/Sentient · src/server/mcp_hub/gcal/main.py:148

async def delete_event(ctx: Context, event_id: str, calendar_id: str = "primary") -> Dict:
    """Deletes a specified event by `event id` from a google calendar."""
    params = {"event_id": event_id, "calendar_id": calendar_id}
    return await _execute_tool(ctx, "GOOGLECALENDAR_DELETE_EVENT", **params)

@mcp.tool()
async def duplicate_calendar(ctx: Context, summary: str) -> Dict:
    """Creates a new, empty google calendar with the specified title (summary)."""
    params = {"summary": summary}
    return await _execute_tool(ctx, "GOOGLECALENDAR_DUPLICATE_CALENDAR", **params)

@mcp.tool()
async def get_event_instances(ctx: Context, eventId: str, calendarId: str = "primary", maxAttendees: Optional[int] = None, maxResults: Optional[int] = None, originalStart: Optional[str] = None, pageToken: Optional[str] = None, showDeleted: Optional[bool] = None, timeMax: Optional[str] = None, timeMin: Optional[str] = None, timeZone: Optional[str] = None) -> Dict:
    """Returns instances of the specified recurring event."""
    params = {"calendarId": calendarId, "eventId": eventId, "maxAttendees": maxAttendees, "maxResults": maxResults, "originalStart": originalStart, "pageToken": pageToken, "showDeleted": showDeleted, "timeMax": timeMax, "timeMin": timeMin, "timeZone": timeZone}
    return await _execute_tool(ctx, "GOOGLECALENDAR_EVENTS_INSTANCES", **params)

@mcp.tool()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…