Skip to main content
Glama

discord_edit_dm_embed

Destructive

Replaces the embed on a DM message previously sent by the bot: provided fields are applied and omitted fields dropped. Use it to update a DM embed without clearing its existing text.

Instructions

Replace the embed on a DM message previously sent by this bot. Full replace, not merge: provided fields are applied and omitted fields are dropped. Omitting content, or passing an empty string, keeps the message's current text; this tool cannot clear it. Use discord_edit_dm to change only the text, or discord_edit_embed for a message in a server channel. Returns a confirmation. With DISCORD_ALLOWED_GUILDS set, the user must be a member of a listed server.

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": {
      "user_id": "<user_id>",
      "message_id": "<message_id>"
    },
    "name": "discord_edit_dm_embed"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoURL that makes the title clickable.
colorNoSide-bar color as a hex string, e.g. '#5865F2'.
titleNoEmbed title shown in bold at the top.
authorNoAuthor block shown at the top of the embed.
fieldsNoUp to 25 name/value field blocks. Set inline:true on a field to render it side-by-side with adjacent inline fields (up to 3 per row).
footerNoFooter text shown at the bottom of the embed.
contentNoOptional new plain text shown above the embed (max 2000 characters).
user_idYesDiscord user ID (snowflake) of the DM recipient.
image_urlNoLarge image shown below the embed body.
timestampNoIf true, stamp the embed with the current time.
message_idYesID of the target message within the DM conversation.
descriptionNoMain body text of the embed (supports Markdown).
thumbnail_urlNoSmall image shown in the top-right corner.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv2.6.2
    • addedInput schema / properties / author / properties / name / maxLength
      Added value: +256
    • addedInput schema / properties / description / maxLength
      Added value: +4096
    • addedInput schema / properties / fields / items / properties / name / maxLength
      Added value: +256
    • addedInput schema / properties / fields / items / properties / value / maxLength
      Added value: +1024
    • addedInput schema / properties / footer / maxLength
      Added value: +2048
    • addedInput schema / properties / title / maxLength
      Added value: +256
  2. Changed3 schema fields changedv2.5.0
    • changedInput schema / properties / content / description
      Previous value: -"Optional new plain text shown above the embed."New value: +"Optional new plain text shown above the embed (max 2000 characters)."
    • addedInput schema / properties / content / maxLength
      Added value: +2000
    • addedInput schema / properties / fields / maxItems
      Added value: +25
  3. Changed3 schema fields changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / author / additionalProperties
      Added value: +false
    • addedInput schema / properties / fields / items / additionalProperties
      Added value: +false
  4. Changed13 schema fields changedv2.0.0
    • addedInput schema / properties / author / properties / icon_url / format
      Added value: +"uri"
    • addedInput schema / properties / author / properties / icon_url / pattern
      Added value: +"^https?://"
    • addedInput schema / properties / author / properties / url / format
      Added value: +"uri"
    • addedInput schema / properties / author / properties / url / pattern
      Added value: +"^https?://"
    • addedInput schema / properties / color / pattern
      Added value: +"^#[0-9A-Fa-f]{6}$"
    • addedInput schema / properties / image_url / format
      Added value: +"uri"
    • addedInput schema / properties / image_url / pattern
      Added value: +"^https?://"
    • addedInput schema / properties / message_id / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / thumbnail_url / format
      Added value: +"uri"
    • addedInput schema / properties / thumbnail_url / pattern
      Added value: +"^https?://"
    • addedInput schema / properties / url / format
      Added value: +"uri"
    • addedInput schema / properties / url / pattern
      Added value: +"^https?://"
    • addedInput schema / properties / user_id / pattern
      Added value: +"^\\d{17,20}$"
  5. Changed1 schema field changedv1.6.2
    • changedInput schema / properties / fields / description
      Previous value: -"Up to 25 name/value field blocks. Set inline:true to render up to 3 side-by-side."New value: +"Up to 25 name/value field blocks. Set inline:true on a field to render it side-by-side with adjacent inline fields (up to 3 per row)."
  6. Changed16 schema fields changedv1.6.0
    • addedInput schema / properties / author / properties / icon_url / description
      Added value: +"Small icon shown next to the author name."
    • addedInput schema / properties / author / properties / name / description
      Added value: +"Author display name."
    • addedInput schema / properties / author / properties / url / description
      Added value: +"URL the author name links to."
    • changedInput schema / properties / color / description
      Previous value: -"Hex color e.g. #5865F2"New value: +"Side-bar color as a hex string, e.g. '#5865F2'."
    • changedInput schema / properties / content / description
      Previous value: -"Optional new text content above the embed."New value: +"Optional new plain text shown above the embed."
    • addedInput schema / properties / description / description
      Added value: +"Main body text of the embed (supports Markdown)."
    • changedInput schema / properties / fields / description
      Previous value: -"Name/value blocks shown inside the embed (max 25). Set inline:true to render up to 3 side-by-side."New value: +"Up to 25 name/value field blocks. Set inline:true to render up to 3 side-by-side."
    • addedInput schema / properties / fields / items / properties / inline / description
      Added value: +"If true, render this field side-by-side with adjacent inline fields."
    • addedInput schema / properties / fields / items / properties / name / description
      Added value: +"Field heading."
    • addedInput schema / properties / fields / items / properties / value / description
      Added value: +"Field body text."
    • addedInput schema / properties / footer / description
      Added value: +"Footer text shown at the bottom of the embed."
    • addedInput schema / properties / image_url / description
      Added value: +"Large image shown below the embed body."
    • changedInput schema / properties / message_id / description
      Previous value: -"The message ID (must be a bot message)."New value: +"ID of the target message within the DM conversation."
    • changedInput schema / properties / timestamp / description
      Previous value: -"If true, adds the current timestamp to the embed."New value: +"If true, stamp the embed with the current time."
    • addedInput schema / properties / title / description
      Added value: +"Embed title shown in bold at the top."
    • changedInput schema / properties / user_id / description
      Previous value: -"The Discord user ID."New value: +"Discord user ID (snowflake) of the DM recipient."
  7. Changed1 schema field changedv1.5.0
    • addedInput schema / properties / fields / description
      Added value: +"Name/value blocks shown inside the embed (max 25). Set inline:true to render up to 3 side-by-side."
  8. Addedv1.1.0

TDQS

A4.4/5.0
Behavior3/5

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

The description adds real value beyond the annotations: it discloses full-replace-not-merge semantics, that omitted fields are dropped, that content cannot be cleared, and that a confirmation is returned. However, annotations already flag destructiveHint=true and readOnlyHint=false, so the safety profile is partly pre-supplied, and the description says nothing about failure modes (e.g. target message not authored by this bot, missing message_id).

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?

Front-loaded with the action and the replace-vs-merge semantics, then alternatives, then the guild precondition. Every sentence carries information, though the block is dense enough that the clearing caveat and the alternatives could be more visually separated.

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

Completeness5/5

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

For a 13-parameter nested mutation with no output schema, the description covers the mutation semantics, the clearing limitation, the return behavior ('Returns a confirmation'), the sibling routing, and an authorization constraint. The remaining details (field limits, URL formats) are fully documented in the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description goes beyond the schema by explaining the tricky omission rules for content ('omitting content, or passing an empty string, keeps the message's current text; this tool cannot clear it') and the all-or-nothing field replacement behavior — real semantic additions the per-property descriptions do not convey.

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?

States a specific verb and resource ('Replace the embed on a DM message previously sent by this bot') with the crucial ownership scoping, and explicitly contrasts itself with discord_edit_dm and discord_edit_embed so the agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

Names both alternatives and the exact condition that selects each ('discord_edit_dm to change only the text', 'discord_edit_embed for a message in a server channel'), plus a precondition for the DISCORD_ALLOWED_GUILDS case. Nothing is left to inference.

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