Skip to main content
Glama

discord_reply_dm

Reply to a specific Discord DM message with a quoted reference and get the new message ID; use it for contextual direct-message responses.

Instructions

Reply to a specific message in a DM, attaching a quoted reply reference. Unlike the edit/delete DM tools, this works on the bot's messages and the user's alike, though Discord refuses some system messages as reply targets. Use discord_send_dm for a standalone DM with no reference. Returns the new reply's message ID. For a message in a server channel, use discord_reply_message. 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>",
      "content": "<content>"
    },
    "name": "discord_reply_dm"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesPlain-text body of the reply (max 2000 characters).
user_idYesDiscord user ID (snowflake) of the DM recipient.
message_idYesID of the target message within the DM conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.5.0
    • addedInput schema / properties / content / maxLength
      Added value: +2000
  2. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed2 schema fields changedv2.0.0
    • addedInput schema / properties / message_id / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / user_id / pattern
      Added value: +"^\\d{17,20}$"
  4. Changed3 schema fields changedv1.6.0
    • changedInput schema / properties / content / description
      Previous value: -"The reply content."New value: +"Plain-text body of the reply (max 2000 characters)."
    • 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 / user_id / description
      Previous value: -"The Discord user ID."New value: +"Discord user ID (snowflake) of the DM recipient."
  5. Addedv1.3.0

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint false, destructiveHint false, openWorldHint true, idempotentHint false), the description discloses that it targets both the bot's and the user's messages, that Discord rejects certain system messages, and that it returns the new reply's message ID. It also surfaces an environment-level auth constraint (DISCORD_ALLOWED_GUILDS requires the user to be a member of a listed server), which the annotations do not convey. The only gap is that it doesn't explicitly restate that repeat calls create duplicate reply messages, though 'the new reply's message ID' strongly implies it.

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?

The purpose is front-loaded in the opening clause, followed by sibling routing, restrictions, return value, and environment constraint in a tight sequence with no filler. The final sentence about DISCORD_ALLOWED_GUILDS is arguably tangential to the core operation but earns its place as a precondition an agent could otherwise trip over.

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 three-parameter write tool with no output schema, the description covers what it does, when to use it versus the two nearest alternatives, which targets are valid, what can fail, what it returns, and an access precondition. Nothing material for correct invocation is left unstated.

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 the schema already documents content length, snowflake patterns, and the meaning of user_id and message_id, so the baseline is 3. The description adds no parameter-level detail beyond the schema—it clarifies targets and return value rather than argument semantics, which is appropriate but not additive here.

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?

The first sentence gives a specific verb (reply), resource (a specific message in a DM) and mechanism (quoted reply reference), which immediately separates it from discord_send_dm and discord_reply_message. An agent can distinguish this tool from every named sibling without inspecting a 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?

It names the alternatives and the exact conditions that select them: discord_send_dm for a standalone DM with no reference, discord_reply_message for a server-channel message. It also supplies a negative condition (some system messages are refused as reply targets), which is precisely the when-not guidance that prevents failed calls.

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