graph_delete_chat_message
Soft-delete a chat message or restore a previously deleted one via Microsoft Graph, using the user ID; messages remain recoverable.
Instructions
Soft delete a chat message, or restore one with restore.
Graph only exposes this action under /users/{user_id}, so the user ID is required. There is no hard delete, so a deleted message stays recoverable.
Args: chat_id: The chat ID. message_id: The message ID to delete. user_id: The user ID that sent the message. restore: Whether to restore a previously deleted message (default false).
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": {
"chat_id": "<chat_id>",
"message_id": "<message_id>",
"user_id": "<user_id>"
},
"name": "graph_delete_chat_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | ||
| restore | No | ||
| user_id | Yes | ||
| message_id | Yes |