Skip to main content
Glama

discord_send_dm

Send a private direct message to a Discord user by their user ID. Use it to reach a user outside server channels; returns the new message ID.

Instructions

Send a private direct message to a user by their user ID. Use discord_send_message to post in a server channel instead. Requires the bot to share at least one server with the user, and the user must allow DMs from server members (otherwise Discord rejects the send). Returns the new message ID. Use discord_send_dm_embed for an embed, or discord_reply_dm to reply to a 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>",
      "content": "<content>"
    },
    "name": "discord_send_dm"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesPlain-text body of the DM (max 2000 characters).
user_idYesDiscord user ID (snowflake) of the DM recipient.

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. Changed1 schema field changedv2.0.0
    • addedInput schema / properties / user_id / pattern
      Added value: +"^\\d{17,20}$"
  4. Changed2 schema fields changedv1.6.0
    • changedInput schema / properties / content / description
      Previous value: -"The message content to send."New value: +"Plain-text body of the DM (max 2000 characters)."
    • changedInput schema / properties / user_id / description
      Previous value: -"The Discord user ID."New value: +"Discord user ID (snowflake) of the DM recipient."
  5. Addedv1.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), the description discloses the permission precondition (bot must share a server with the user), the recipient-side setting that can cause rejection, the DISCORD_ALLOWED_GUILDS membership constraint, and the return value (new message ID). These are exactly the operational facts an agent needs before attempting a send.

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 sentences, each carrying a distinct payload: purpose, channel-vs-DM routing, preconditions/failure modes, and variant selection, with the return value folded in. The most decision-relevant information (what it does, which sibling it is not) is front-loaded with no filler.

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 two-parameter open-world mutation with no output schema, the description covers purpose, alternatives, permissions, failure modes, and the return value. Nothing an agent needs in order to call this correctly appears to be missing.

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%, so both parameters (user_id snowflake, content with 2000-char cap) are already fully documented in structured fields. The description only restates that the recipient is identified by user ID; it adds no format or encoding detail beyond the schema, so the baseline of 3 applies.

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 description opens with a specific verb and resource ('Send a private direct message') plus the addressing mechanism ('by their user ID'), and immediately names the sibling it is not ('Use discord_send_message to post in a server channel instead'). This lets an agent separate DM sending from channel posting 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?

It gives explicit routing to three alternatives with the condition that selects each: discord_send_message for channel posts, discord_send_dm_embed for embeds, discord_reply_dm for replies. It also states when the call will fail (no shared server, recipient DMs disabled), so the agent can pick a different path before invoking.

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