respond_event
Accept, decline, or tentatively respond to Microsoft Outlook event invitations using specified account and event IDs through the Microsoft MCP server.
Instructions
Respond to event invitation (accept, decline, tentativelyAccept)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| event_id | Yes | ||
| message | No | ||
| response | No | accept |
Implementation Reference
- src/microsoft_mcp/tools.py:595-608 (handler)The 'respond_event' tool handler function, decorated with @mcp.tool for automatic registration. It sends a POST request to the Microsoft Graph API to respond to a calendar event invitation with the specified response type (accept, decline, or tentativelyAccept), optionally including a comment.@mcp.tool def respond_event( account_id: str, event_id: str, response: str = "accept", message: str | None = None, ) -> dict[str, str]: """Respond to event invitation (accept, decline, tentativelyAccept)""" payload: dict[str, Any] = {"sendResponse": True} if message: payload["comment"] = message graph.request("POST", f"/me/events/{event_id}/{response}", account_id, json=payload) return {"status": response}