Skip to main content
Glama

delete_event

Remove or cancel a calendar event in Microsoft Outlook by specifying the account and event IDs. Optionally send cancellations to attendees for efficient event management.

Instructions

Delete or cancel a calendar event

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idYes
event_idYes
send_cancellationNo

Implementation Reference

  • The handler function for the 'delete_event' tool, decorated with @mcp.tool for automatic registration in FastMCP. It deletes a calendar event either by sending a cancellation (if send_cancellation=True) or permanent deletion using Microsoft Graph API endpoints.
    @mcp.tool
    def delete_event(
        account_id: str, event_id: str, send_cancellation: bool = True
    ) -> dict[str, str]:
        """Delete or cancel a calendar event"""
        if send_cancellation:
            graph.request("POST", f"/me/events/{event_id}/cancel", account_id, json={})
        else:
            graph.request("DELETE", f"/me/events/{event_id}", account_id)
        return {"status": "deleted"}

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/elyxlz/microsoft-mcp'

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