Skip to main content
Glama

discord_delete_webhook_message

DestructiveIdempotent

Permanently delete a webhook-sent Discord message using the webhook ID, token, and message ID; the token authorizes the call without bot permissions. This action is irreversible.

Instructions

Permanently delete a message that was sent through a webhook, using the webhook's ID and token. IRREVERSIBLE. No bot permission is needed: the token authorizes the call. To delete the webhook itself, use discord_delete_webhook. To delete a message with the bot's own permissions, use discord_delete_message.

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>",
      "webhook_token": "<webhook_token>",
      "message_id": "<message_id>"
    },
    "name": "discord_delete_webhook_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
message_idYesID of the webhook message to delete.
webhook_idYesID (snowflake) of the webhook that sent the message.
webhook_tokenYesSecret token of the webhook.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed2 schema fields changedv2.0.0
    • addedInput schema / properties / message_id / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / webhook_id / pattern
      Added value: +"^\\d{17,20}$"
  3. Changed3 schema fields changedv1.6.0
    • addedInput schema / properties / message_id / description
      Added value: +"ID of the webhook message to delete."
    • addedInput schema / properties / webhook_id / description
      Added value: +"ID (snowflake) of the webhook that sent the message."
    • addedInput schema / properties / webhook_token / description
      Added value: +"Secret token of the webhook."
  4. Addedv1.5.0

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the description's 'IRREVERSIBLE' mainly reinforces structured data. It does, however, add genuinely new behavioral context by stating that no bot permission is required and that the webhook token itself authorizes the call, which an agent could not infer from the annotations. It says nothing about failure modes for an invalid or revoked token, which keeps it off a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, with the destructive warning ('IRREVERSIBLE') front-loaded right after the purpose statement, followed by the auth note and then the sibling routing. No filler and no repetition of the parameter list.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive three-parameter tool with annotations covering safety and no output schema, the definition supplies purpose, irreversibility, auth model and alternatives — everything needed to call it correctly. The only omission is what happens when the token is invalid or the message is already gone, a minor gap given idempotentHint=true.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is a 3. The description still adds meaning by explaining that the webhook_token is the authorization credential for the call, which the schema only labels as a 'Secret token'. That elevates it slightly above the schema-only baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Permanently delete a message that was sent through a webhook') and immediately narrows the scope to messages created via webhooks rather than ordinary bot messages. It also names the two nearest siblings it is not, so an agent can distinguish it without inspecting any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit routing rules: use discord_delete_webhook to remove the webhook itself, and discord_delete_message when acting with the bot's own permissions. The condition that selects each alternative (token-auth vs bot-auth) is stated rather than left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools