discord-mcp

Edit DM

discord_edit_dm

Write

Toolset
Direct messages dm
Context cost
211 tokens, estimated843 bytes of definition, divided by 4

Edit the text content of a DM message previously sent by this bot. Only the bot's own DM messages can be edited. Use discord_edit_dm_embed for embed messages. Returns a confirmation.

Risk and annotations

Read-onlyreadOnlyHintnoCan modify your server.
DestructivedestructiveHintnoDeclared non-destructive.
IdempotentidempotentHintyesRepeating the call with the same arguments has no additional effect.
Open worldopenWorldHintyesInteracts with an external system: Discord.

Annotations are hints the server declares. Clients use them to decide when to ask you before a call.

Parameters

ParameterTypeRulesDescription
user_idrequiredstring
pattern ^\d{17,20}$
Discord user ID (snowflake) of the DM recipient.
message_idrequiredstring
pattern ^\d{17,20}$
ID of the target message within the DM conversation.
contentrequiredstring
none
New plain-text content that fully replaces the existing message (max 2000 characters).

Output

This tool declares no output schema. Its description says what it returns; this page shows no example rather than invent one.

Related tools

Named in its description

Also in Direct messages

Raw definition (843 bytes)
{
  "name": "discord_edit_dm",
  "description": "Edit the text content of a DM message previously sent by this bot. Only the bot's own DM messages can be edited. Use discord_edit_dm_embed for embed messages. Returns a confirmation.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "user_id": {
        "type": "string",
        "pattern": "^\\d{17,20}$",
        "description": "Discord user ID (snowflake) of the DM recipient."
      },
      "message_id": {
        "type": "string",
        "pattern": "^\\d{17,20}$",
        "description": "ID of the target message within the DM conversation."
      },
      "content": {
        "type": "string",
        "description": "New plain-text content that fully replaces the existing message (max 2000 characters)."
      }
    },
    "required": [
      "user_id",
      "message_id",
      "content"
    ],
    "additionalProperties": false
  },
  "annotations": {
    "title": "Edit DM",
    "readOnlyHint": false,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": true
  }
}