delete-mail-message
Remove email messages from Microsoft 365 accounts by specifying the message ID. This tool helps manage Outlook inboxes by deleting unwanted or outdated emails through the Microsoft Graph API.
Instructions
Delete eventMessage.
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": {
"messageId": "<messageId>"
},
"name": "delete-mail-message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| If-Match | No | ETag | |
| messageId | Yes | Path parameter: messageId | |
| includeHeaders | No | Include response headers (including ETag) in the response metadata | |
| excludeResponse | No | Exclude the full response body and only return success or failure indication |