webhooks_delete_message
Delete a Discord webhook message to retract stale alerts or accidentally posted content; requires confirmation and is irreversible.
Instructions
Purpose: Delete a message previously sent by this webhook. DESTRUCTIVE - IRREVERSIBLE.
When to use: - Retract a stale alert or accidentally posted content.
Auth: NO Authorization: Bot … header. No audit_reason (Discord ignores it on token routes).
Returns: {deleted, message_id}. Pass __confirm:true AND set MCP_DRY_RUN=false to actually delete.
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": {
"webhook_id": "<webhook_id>",
"token": "<token>",
"message_id": "<message_id>"
},
"name": "webhooks_delete_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Webhook secret - treat as credential, do not log | |
| __confirm | No | Set true to authorize this destructive operation. Also requires the server to run with MCP_DRY_RUN=false; otherwise a DRY_RUN_PREVIEW is returned. | |
| thread_id | No | Query param: thread the message lives in | |
| message_id | Yes | Message to delete | |
| webhook_id | Yes | Webhook id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||