Skip to main content
Glama
OrygnsCode

Omnicord - Discord server management MCP for AI agents

Edit message

edit_message

Edit a message the bot itself sent. Discord does not allow editing anyone else's messages, no matter the permission level. A message sent as a Components V2 layout stays one: edit it with components, never with content or embeds.

Instructions

Edit a message the bot itself sent. Discord does not allow editing anyone else's messages, no matter the permission level. A message sent as a Components V2 layout stays one: edit it with components, never with content or embeds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
guildNoGuild (server) name or ID. Omit to use the default guild.
embedsNoUp to 10 embeds.
channelYesChannel name or ID.
contentNo
componentsNoRich layout, in place of content and embeds. Sending this sets the Components V2 flag, which is permanent for that message: it can never show plain content or embeds afterward, so the two cannot be combined.
message_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.4.0
    • addedInput schema / properties / components
      Added value: +{
      +  "description": "Rich layout, in place of content and embeds. Sending this sets the Components V2 flag, which is permanent for that message: it can never show plain content or embeds afterward, so the two cannot be combined.",
      +  "items": {
      +    "properties": {
      +      "accent_color": {
      +        "description": "For container, hex color of the left edge, like #5865f2.",
      +        "type": "string"
      +      },
      +      "buttons": {
      +        "description": "For buttons, 1-5 link buttons on one row. For section, exactly one. Link buttons only: this server does not answer interactions, so a button that fires one would fail for whoever clicked it.",
      +        "items": {
      +          "properties": {
      +            "disabled": {
      +              "type": "boolean"
      +            },
      +            "label": {
      +              "description": "Button text.",
      +              "maxLength": 80,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "url": {
      +              "description": "Where the button leads.",
      +              "format": "uri",
      +              "maxLength": 512,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "label",
      +            "url"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 5,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "components": {
      +        "description": "For container, the 1-10 blocks inside it.",
      +        "items": {
      +          "properties": {
      +            "buttons": {
      +              "items": {
      +                "properties": {
      +                  "disabled": {
      +                    "type": "boolean"
      +                  },
      +                  "label": {
      +                    "description": "Button text.",
      +                    "maxLength": 80,
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "url": {
      +                    "description": "Where the button leads.",
      +                    "format": "uri",
      +                    "maxLength": 512,
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "label",
      +                  "url"
      +                ],
      +                "type": "object"
      +              },
      +              "maxItems": 5,
      +              "minItems": 1,
      +              "type": "array"
      +            },
      +            "divider": {
      +              "type": "boolean"
      +            },
      +            "media": {
      +              "items": {
      +                "properties": {
      +                  "description": {
      +                    "description": "Alt text.",
      +                    "maxLength": 1024,
      +                    "type": "string"
      +                  },
      +                  "spoiler": {
      +                    "description": "Blur until clicked.",
      +                    "type": "boolean"
      +                  },
      +                  "url": {
      +                    "description": "Public image URL.",
      +                    "format": "uri",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "url"
      +                ],
      +                "type": "object"
      +              },
      +              "maxItems": 10,
      +              "minItems": 1,
      +              "type": "array"
      +            },
      +            "spacing": {
      +              "enum": [
      +                "small",
      +                "large"
      +              ],
      +              "type": "string"
      +            },
      +            "text": {
      +              "maxLength": 4000,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "type": {
      +              "description": "Same block types as above, except container.",
      +              "enum": [
      +                "text",
      +                "section",
      +                "gallery",
      +                "separator",
      +                "buttons"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "type"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 10,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "divider": {
      +        "description": "For separator, draw a horizontal rule. Default true.",
      +        "type": "boolean"
      +      },
      +      "media": {
      +        "description": "For gallery, 1-10 images. For section, exactly one, shown as a thumbnail on the right.",
      +        "items": {
      +          "properties": {
      +            "description": {
      +              "description": "Alt text.",
      +              "maxLength": 1024,
      +              "type": "string"
      +            },
      +            "spoiler": {
      +              "description": "Blur until clicked.",
      +              "type": "boolean"
      +            },
      +            "url": {
      +              "description": "Public image URL.",
      +              "format": "uri",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "url"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 10,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "spacing": {
      +        "description": "For separator, how much padding. Default small.",
      +        "enum": [
      +          "small",
      +          "large"
      +        ],
      +        "type": "string"
      +      },
      +      "spoiler": {
      +        "description": "For container, blur the whole group until clicked.",
      +        "type": "boolean"
      +      },
      +      "text": {
      +        "description": "Markdown body. Required for text and section.",
      +        "maxLength": 4000,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "text: a paragraph of markdown. section: text with a thumbnail or link button beside it. gallery: 1-10 images. separator: vertical space, optionally a rule. buttons: a row of link buttons. container: a bordered group with a colored edge.",
      +        "enum": [
      +          "text",
      +          "section",
      +          "gallery",
      +          "separator",
      +          "buttons",
      +          "container"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 40,
      +  "minItems": 1,
      +  "type": "array"
      +}
  2. Changed2 schema fields changedv1.3.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / embeds / items / additionalProperties
      Removed value: -false
  3. First observedv1.0.2

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false and destructiveHint=false, which is minimal. The description supplies genuinely non-obvious behavioral facts: Discord forbids editing others' messages at any permission level, and the Components V2 flag is permanent so a message can never revert to plain content or embeds. That is exactly the context an agent needs before attempting an edit.

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?

Three sentences, zero filler, and the operative constraint (the bot's own message) is front-loaded before the edge-case caveat about Components V2.

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 mutation tool with no output schema and no annotations beyond the safety pair, the description covers the two real failure modes (wrong author, format lock-in). It is complete enough to call correctly; only the absence of any post-edit behavior note keeps it from a 5.

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 67% and the schema already documents the components-vs-content/embeds rule ('in place of content and embeds... sets the Components V2 flag'). The description's third sentence largely restates that, adding emphasis rather than new meaning. No guidance on the guild/channel/message_id parameters. Baseline 3 for a mostly-documented schema.

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?

Specific verb (edit) plus resource (a message) with a scope qualifier that matters: only messages the bot itself sent. It is clearly distinguishable from send_message, delete_message, and crosspost_message by the 'edit' framing. It stops short of naming the sibling to use when the target isn't the bot's own message, so it isn't a top-tier 5.

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?

Gives a hard precondition (only the bot's own messages, regardless of permission level) and a format rule (Components V2 messages must be edited with components). It does not, however, point to an alternative path when the message can't be edited, leaving that inference to the agent.

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