INNER CODE UNIT · Python

delete_calendar

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

async def delete_calendar(ctx: Context, calendarId: str) -> Dict:
    """Deletes a secondary calendar."""
    params = {"calendar_id": calendarId}
    return await _execute_tool(ctx, "GOOGLECALENDAR_CALENDARS_DELETE", **params)

@mcp.tool()
async def update_calendar(ctx: Context, calendarId: str, summary: str, description: Optional[str] = None, location: Optional[str] = None, timeZone: Optional[str] = None) -> Dict:
    """Updates metadata for a calendar."""
    params = {"calendarId": calendarId, "summary": summary, "description": description, "location": location, "timeZone": timeZone}
    return await _execute_tool(ctx, "GOOGLECALENDAR_CALENDARS_UPDATE", **params)

@mcp.tool()
async def insert_calendar_into_list(ctx: Context, id: str, background_color: Optional[str] = None, color_id: Optional[str] = None, color_rgb_format: Optional[bool] = None, default_reminders: Optional[List[Dict]] = None, foreground_color: Optional[str] = None, hidden: Optional[bool] = None, notification_settings: Optional[Dict] = None, selected: Optional[bool] = None, summary_override: Optional[str] = None) -> Dict:
    """Inserts an existing calendar into the user's calendar list."""
    params = {k: v for k, v in locals().items() if k != 'ctx' and v is not None}
    return await _execute_tool(ctx, "GOOGLECALENDAR_CALENDAR_LIST_INSERT", **params)

@mcp.tool()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…