Skip to main content
Glama
discord-mcp

discord-mcp

webhooks_edit_message

Idempotent

Edit a message previously sent by a Discord webhook to update resolved alerts, correct typos, or replace payloads. Returns message and channel IDs after the edit.

Instructions

Purpose: Edit a message previously sent by this webhook.

When to use: - Update an alert that has been resolved, fix a typo, swap V2 layouts.

Prefer instead: - components_v2_edit for V2 layouts (this is the low-level escape hatch - V2 validation is intentionally z.record).

Auth: NO Authorization: Bot … header.

Body mirrors webhooks_execute minus thread_name. thread_id is a query param, not a body field.

Returns: {message_id, channel_id} after the edit.

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

Input Schema

NameRequiredDescriptionDefault
pollNo
flagsNoV2 layout flag = 1<<15 = 32768. Setting V2 requires components.
tokenYesWebhook secret - treat as credential, do not log
embedsNoPass `[]` or null to clear embeds.
contentNo
thread_idNoQuery param: thread the message lives in
componentsNoPass `[]` or null to clear components. Prefer `components_v2_edit` for V2 layouts.
message_idYesMessage to edit
webhook_idYesWebhook id
attachmentsNo
payload_jsonNo
allowed_mentionsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already state readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=true. The description adds meaningful context beyond them: no Bot Authorization header is required, the body mirrors webhooks_execute minus thread_name, thread_id is a query param not a body field, and the response is {message_id, channel_id}. It does not mention rate limits or what happens to omitted fields (clear-vs-keep semantics are only in the schema).

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?

Layered headings (Purpose / When to use / Prefer instead / Auth / Body / Returns) front-load the essentials with almost no padding. The one compressible line is the auth note, whose trailing ellipsis is cryptic without external context.

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

Completeness3/5

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

An output schema exists, so return values need no elaboration, and annotations cover the safety profile. Still, for a 12-parameter mutation tool with only 58% schema coverage, the description leaves a large fraction of the body contract implicit by deferring to webhooks_execute.

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?

With 12 parameters and only 58% schema description coverage, the description helps by mapping the body to webhooks_execute minus thread_name and flagging thread_id as a query param. However, several fields (poll, attachments, payload_json, allowed_mentions, webhooks_id/token relationships) get no meaning from the description, and it relies on the reader knowing webhooks_execute's body.

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 opening line gives a precise verb+resource with scope: 'Edit a message previously sent by this webhook.' That immediately separates it from webhooks_execute (send) and webhooks_delete_message, and it names components_v2_edit as the V2-layout sibling.

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

Usage Guidelines4/5

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

It has an explicit 'When to use' list (resolve alerts, fix typos, swap V2 layouts) and a 'Prefer instead' rule pointing to components_v2_edit for V2 layouts, calling this the 'low-level escape hatch'. Minor tension: swapping V2 layouts appears in both the use case and the redirect to components_v2_edit, and other edit siblings (messages_edit, interactions_edit_followup) are not addressed.

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