INNER CODE UNIT · Python
duplicate_calendar
existence-master/Sentient · src/server/mcp_hub/gcal/main.py:154
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()
async def list_events(
ctx: Context,
calendarId: str = "primary",
alwaysIncludeEmail: Optional[bool] = None,
eventTypes: Optional[str] = None,
iCalUID: Optional[str] = None,