Skip to main content
Glama
discord-mcp

discord-mcp

messages_update

Edit a bot-authored announcement by its message ID: preserve omitted fields, replace embeds, or append files, then verify changed fields with an approval-bound update.

Instructions

Purpose: Update one rich announcement previously authored by this bot. Read the current message first, preserve omitted fields and existing attachments, append supplied files, and verify the changed fields independently.

When to use: Correct an announcement, replace embed/layout content, or attach another file using its receipt message_id.

Limits: One message per update; polls and TTS cannot be edited. Existing classic/V2 modes are preserved. New filenames must be distinct from retained attachments.

Approval: Same exact payload_hash and one-time approval_id contract as messages_publish, bound to channel_id and message_id.

Returns: complete or unverified and the updated message link/readback receipt.

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": "messages_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttsNo
pollNo
filesNo
embedsNo
contentNo
__confirmNoAuthorize the exact payload supplied in this call after reviewing its summary.
channel_idYesDiscord channel ID (snowflake)
componentsNo
message_idYesDiscord message ID
__confirm_idNoOne-time approval ID returned by the preceding preview; expires shortly.
__confirm_hashNoSHA-256 payload_hash returned by the preceding preview.
allowed_mentionsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.31.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true) the description discloses the mutation model: read the current message first, omitted fields and existing attachments are preserved, supplied files are appended, and changed fields are verified independently. It also exposes a non-obvious approval contract (one-time approval_id plus exact payload_hash bound to channel_id and message_id) and the two possible outcomes, complete or unverified.

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?

Labeled sections (Purpose, When to use, Limits, Approval, Returns) front-load the most decision-relevant information and every line is dense with operational content. The 'Returns' line is partly redundant since an output schema exists, though 'complete or unverified' adds genuine state semantics.

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 12-parameter, nested-schema mutation with an approval gate, the description covers preconditions, edit limits, preservation behavior, and outcome states, and the output schema handles return shape. Minor gaps remain around the components/allowed_mentions payloads and why the schema still accepts poll/tts input that the Limits section forbids.

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 coverage is only 42% across 12 parameters, so the description must carry weight and partially does: it explains files-as-append vs attachments-as-retained, distinct filename rules, message_id as a receipt, and the __confirm_hash/__confirm_id approval triple. It says nothing about allowed_mentions, components, content, or the poll/tts fields it declares uneditable, leaving several parameters unexplained in either source.

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

Purpose4/5

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

The description gives a specific verb and resource ('Update one rich announcement') and narrows scope with 'previously authored by this bot', which separates it from generic edit/publish work. It stops short of naming the closest sibling (messages_edit) explicitly, so the differentiation is implied by scope rather than stated.

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?

'When to use' enumerates three concrete triggers (correct an announcement, replace embed/layout content, attach another file via its receipt message_id), and 'Limits' carries real exclusions: one message per update, polls and TTS not editable, filenames must be distinct from retained attachments. No explicit alternative tool is named for the edit case, which keeps it out of 5 territory.

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