Skip to main content
Glama
discord-server-mcp

discord-server-mcp

edit_message

Update a Discord bot message by changing its text, embeds, link buttons, or files; provide files to replace existing attachments.

Instructions

Edit a message the bot sent: text, embeds, link buttons, files (replaces the attachments when given).

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": "<channel>",
      "message_id": "<message_id>"
    },
    "name": "edit_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
botNoUse this bot (name or id) instead of choosing automatically
filesNo
embedsNo
serverNoServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.
channelYesChannel or thread name, id, or message link
contentNoNew text ("" clears it)
dry_runNoShow the requests that would be made without changing anything
message_idYes
link_buttonsNo
suppress_embedsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

The readOnlyHint=false annotation already signals mutation, so the description's job is to add context, and it does: it discloses a destructive nuance that 'files (replaces the attachments when given)' overwrites existing attachments rather than appending. It still leaves open what happens to omitted fields (whether embeds/link_buttons are preserved or cleared) and whether editing a non-bot message errors out.

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?

A single sentence with the verb and target front-loaded, the editable surfaces grouped, and the one dangerous caveat placed in a trailing parenthetical. Nothing is padding and nothing critical is buried.

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?

For a 10-parameter mutation tool with no output schema, the description covers the core content fields and the attachment-replacement hazard, which is the most important thing an agent could get wrong. It stops short of describing merge-vs-overwrite semantics for the other array fields and never mentions dry_run, which is the tool's own safety valve.

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 50%, so half the parameters rely on the schema alone. The description adds genuine meaning for files (replace-not-append) and identifies the four content categories, but says nothing about bot, server, channel, dry_run, or suppress_embeds, leaving a meaningful share of parameters uncontextualized.

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 ('Edit') plus resource ('a message') and narrows the scope to messages 'the bot sent', which separates it from read paths like get_message. It also enumerates the editable surfaces (text, embeds, link buttons, files). It never names send_message as the creation counterpart, so the differentiation is strong but not explicitly routed.

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

Usage Guidelines3/5

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

The 'the bot sent' qualifier implicitly tells the agent this is not for editing other users' messages, which is a real usage constraint. There is no explicit when-not guidance, no mention of alternatives such as send_message for new messages, and no stated preconditions (existing message id, permissions).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.