Skip to main content
Glama

discord_edit_webhook_message

Destructive

Edit a message previously sent through a Discord webhook by supplying the webhook ID, token, and message ID; replaces the specified content or embeds without bot permissions.

Instructions

Edit a message previously sent through a webhook, using the webhook's ID and token. Replaces the provided fields. No bot permission is needed: the token authorizes the edit. For a message the bot sent itself, use discord_edit_message or discord_edit_embed. Returns a confirmation. To change the webhook itself, use discord_edit_webhook.

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_edit_webhook_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
embedsNoUp to 10 embed objects to attach to the webhook message.
contentNoNew plain-text content for the message (max 2000 characters).
message_idYesID of the webhook message to edit.
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. Changed6 schema fields changedv2.6.2
    • addedInput schema / properties / embeds / items / properties / author / properties / name / maxLength
      Added value: +256
    • addedInput schema / properties / embeds / items / properties / description / maxLength
      Added value: +4096
    • addedInput schema / properties / embeds / items / properties / fields / items / properties / name / maxLength
      Added value: +256
    • addedInput schema / properties / embeds / items / properties / fields / items / properties / value / maxLength
      Added value: +1024
    • addedInput schema / properties / embeds / items / properties / footer / maxLength
      Added value: +2048
    • addedInput schema / properties / embeds / items / properties / title / maxLength
      Added value: +256
  2. Changed2 schema fields changedv2.5.0
    • addedInput schema / properties / content / maxLength
      Added value: +2000
    • addedInput schema / properties / embeds / items / properties / fields / maxItems
      Added value: +25
  3. Changed4 schema fields changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / embeds / items / additionalProperties
      Added value: +false
    • addedInput schema / properties / embeds / items / properties / author / additionalProperties
      Added value: +false
    • addedInput schema / properties / embeds / items / properties / fields / items / additionalProperties
      Added value: +false
  4. Changed13 schema fields changedv2.0.0
    • addedInput schema / properties / embeds / items / properties / author
      Added value: +{
      +  "description": "Author block shown at the top of the embed.",
      +  "properties": {
      +    "icon_url": {
      +      "description": "Small icon shown next to the author name.",
      +      "format": "uri",
      +      "pattern": "^https?://",
      +      "type": "string"
      +    },
      +    "name": {
      +      "description": "Author display name.",
      +      "type": "string"
      +    },
      +    "url": {
      +      "description": "URL the author name links to.",
      +      "format": "uri",
      +      "pattern": "^https?://",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "name"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / embeds / items / properties / color / pattern
      Added value: +"^#[0-9A-Fa-f]{6}$"
    • changedInput schema / properties / embeds / items / properties / fields / description
      Previous value: -"Up to 25 name/value field blocks."New value: +"Up to 25 name/value field blocks. Set inline:true on a field to render it side-by-side with adjacent inline fields (up to 3 per row)."
    • changedInput schema / properties / embeds / items / properties / fields / items / properties / inline / description
      Previous value: -"If true, render side-by-side with adjacent inline fields."New value: +"If true, render this field side-by-side with adjacent inline fields."
    • addedInput schema / properties / embeds / items / properties / image_url / format
      Added value: +"uri"
    • addedInput schema / properties / embeds / items / properties / image_url / pattern
      Added value: +"^https?://"
    • addedInput schema / properties / embeds / items / properties / thumbnail_url / format
      Added value: +"uri"
    • addedInput schema / properties / embeds / items / properties / thumbnail_url / pattern
      Added value: +"^https?://"
    • addedInput schema / properties / embeds / items / properties / url / format
      Added value: +"uri"
    • addedInput schema / properties / embeds / items / properties / url / pattern
      Added value: +"^https?://"
    • addedInput schema / properties / embeds / maxItems
      Added value: +10
    • addedInput schema / properties / message_id / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / webhook_id / pattern
      Added value: +"^\\d{17,20}$"
  5. Changed17 schema fields changedv1.6.0
    • addedInput schema / properties / content / description
      Added value: +"New plain-text content for the message (max 2000 characters)."
    • changedInput schema / properties / embeds / description
      Previous value: -"Optional array of embed objects."New value: +"Up to 10 embed objects to attach to the webhook message."
    • changedInput schema / properties / embeds / items / properties / color / description
      Previous value: -"Hex color e.g. #5865F2"New value: +"Side-bar color as a hex string, e.g. '#5865F2'."
    • addedInput schema / properties / embeds / items / properties / description / description
      Added value: +"Main body text of the embed (supports Markdown)."
    • addedInput schema / properties / embeds / items / properties / fields / description
      Added value: +"Up to 25 name/value field blocks."
    • addedInput schema / properties / embeds / items / properties / fields / items / properties / inline / description
      Added value: +"If true, render side-by-side with adjacent inline fields."
    • addedInput schema / properties / embeds / items / properties / fields / items / properties / name / description
      Added value: +"Field heading."
    • addedInput schema / properties / embeds / items / properties / fields / items / properties / value / description
      Added value: +"Field body text."
    • addedInput schema / properties / embeds / items / properties / footer / description
      Added value: +"Footer text shown at the bottom of the embed."
    • addedInput schema / properties / embeds / items / properties / image_url / description
      Added value: +"Large image shown below the embed body."
    • addedInput schema / properties / embeds / items / properties / thumbnail_url / description
      Added value: +"Small image shown in the top-right corner."
    • addedInput schema / properties / embeds / items / properties / timestamp / description
      Added value: +"If true, stamp the embed with the current time."
    • addedInput schema / properties / embeds / items / properties / title / description
      Added value: +"Embed title shown in bold at the top."
    • addedInput schema / properties / embeds / items / properties / url / description
      Added value: +"URL that makes the title clickable."
    • addedInput schema / properties / message_id / description
      Added value: +"ID of the webhook message to edit."
    • 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."
  6. Addedv1.5.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag the operation as destructive, non-idempotent, and open-world, so the description only needs to add context — which it does, notably that no bot permission is required because the token authorizes the edit, and that only the provided fields are replaced. It stops short of saying the prior content is unrecoverable, which would matter for a destructiveHint=true tool.

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?

Five short sentences, purpose front-loaded, then auth, then alternative routing, then return shape. No filler and nothing repeated from the schema.

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?

Covers the auth model, the alternative tools, the partial-replace semantics, and the return ('a confirmation') in lieu of an output schema, which is enough to invoke correctly given the fully documented schema. The remaining gap is the absence of any warning that the edit overwrites prior message content.

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 every parameter including the embed sub-fields is already documented. The description adds only the general partial-update rule ('Replaces the provided fields') and no meaning beyond that, which matches the baseline when the schema does the heavy lifting.

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?

States a specific verb and resource ('Edit a message previously sent through a webhook') plus the required identity (webhook ID and token). It explicitly separates itself from discord_edit_message, discord_edit_embed, and discord_edit_webhook, so an agent can route without opening a 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?

Gives explicit alternatives with the selecting condition: bot-sent messages go to discord_edit_message or discord_edit_embed, and webhook configuration changes go to discord_edit_webhook. It also states the precondition that the message must have been sent by a webhook.

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