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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account_id": "<account_id>",
"event_id": "<event_id>"
},
"name": "delete_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| event_id | Yes | ||
| send_cancellation | No |
Implementation Reference
- src/microsoft_mcp/tools.py:583-593 (handler)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"}