Skip to main content
Glama

discord_delete_message

DestructiveIdempotent

Permanently deletes one specific Discord message using its channel and message ID; this action is irreversible and requires the necessary Discord permissions.

Instructions

Permanently delete one specific message. IRREVERSIBLE. Requires the View Channel and Read Message History permissions to find the message. The bot can then delete its own messages; deleting another user's message also requires the Manage Messages permission. Use discord_bulk_delete_messages to remove many at once. Discord does not record a reason for a single message delete in the audit log. Use discord_delete_dm for a DM, or discord_delete_webhook_message to delete a webhook's message with its token.

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": {
      "channel_id": "<channel_id>",
      "message_id": "<message_id>"
    },
    "name": "discord_delete_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoOptional. Not recorded: Discord keeps no audit log reason for a single message delete.
channel_idYesID (snowflake) of the channel or thread containing the message.
message_idYesID of the message to delete.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.4.0
    • changedInput schema / properties / reason / description
      Previous value: -"Optional reason recorded in the server audit log."New value: +"Optional. Not recorded: Discord keeps no audit log reason for a single message delete."
  2. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed2 schema fields changedv2.0.0
    • addedInput schema / properties / channel_id / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / message_id / pattern
      Added value: +"^\\d{17,20}$"
  4. Changed3 schema fields changedv1.6.0
    • addedInput schema / properties / channel_id / description
      Added value: +"ID (snowflake) of the channel or thread containing the message."
    • addedInput schema / properties / message_id / description
      Added value: +"ID of the message to delete."
    • addedInput schema / properties / reason / description
      Added value: +"Optional reason recorded in the server audit log."
  5. Addedv1.5.0
  6. Removedv1.0.0
  7. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered. The description goes further by disclosing irreversibility, the specific permission tiers (View Channel, Read Message History, Manage Messages for other users' messages), and the audit-log nuance that no reason is recorded for single deletes.

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

Conciseness4/5

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

It is front-loaded with the destructive nature and irreversible warning, and every subsequent sentence carries routing or permission information. Minor redundancy: the audit-log point is made in the prose and again in the reason parameter description, costing a bit of tightness.

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

Completeness5/5

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

For a three-parameter destructive mutation with no output schema, the definition covers what an agent needs: irreversibility, permission requirements, sibling routing, and the audit-log behavior. Nothing material is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so channel_id, message_id, and reason are all documented, and the description adds little beyond that apart from confirming that reason will not be persisted. That is a useful caveat but the schema already states it, so the baseline of 3 applies.

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 first sentence names a specific verb and resource ('Permanently delete one specific message') and immediately distinguishes this tool from its closest siblings, discord_bulk_delete_messages, discord_delete_dm, and discord_delete_webhook_message. An agent can pick it correctly without opening 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 explicitly routes to alternatives with the conditions that select them: bulk delete for many at once, delete_dm for a DM, and delete_webhook_message for a webhook message with a token. It also states the permission prerequisites needed to locate and delete the message, which is the main practical selection constraint.

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