Skip to main content
Glama
discord-mcp

discord-mcp

messages_edit

Edit a Discord message previously sent by this bot to correct typos, update status text, or rewrite embeds. Returns message ID, channel ID, and edited timestamp.

Instructions

Purpose: Edit a Discord message previously sent by this bot.

When to use: correct typos; update status text; rewrite embeds.

When NOT to use: edit messages NOT sent by this bot - Discord rejects (403).

Returns: {message_id, channel_id, edited_timestamp}.

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>",
      "content": "<content>"
    },
    "name": "messages_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesNew text content (max 2000 chars)
channel_idYesChannel containing the message
message_idYesMessage to edit

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 cover the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true), so the bar is lower. The description adds genuinely new behavioral information beyond them: the server-side 403 rejection for messages not authored by this bot, and the fields returned. It says nothing about rate limits or whether non-content fields can be altered.

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?

Four labeled sections, each one short line, with purpose and the negative constraint front-loaded. There is no filler and the labels make it scannable.

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 three-parameter mutation tool with full schema coverage, full annotations, and an output schema (so return values need no prose), this covers what an agent needs to call it correctly. The minor wobble is 'rewrite embeds' in the when-to-use list, while the only editable field in the schema is 'content', which could mislead an agent expecting embed parameters.

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% and all three parameters are documented inline with patterns and length bounds, so the schema carries this dimension. The description adds no meaning beyond it, which is the expected baseline when coverage is complete.

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 states a specific verb and resource ('Edit a Discord message') and adds an ownership constraint ('previously sent by this bot'), which immediately narrows scope. It does not distinguish itself from the sibling 'messages_update', which an agent could reasonably confuse with this tool.

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 provides explicit when-to-use cases (correct typos, update status text, rewrite embeds) and an explicit when-NOT-to-use case with the concrete consequence (Discord rejects with 403). It stops short of naming an alternative tool for messages the bot did not send, which is the only gap.

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