Skip to main content
Glama

discord_send_dm

Send a direct message to a member of a Discord server the bot belongs to, with membership and safety checks; delivery fails if the recipient blocks server-member DMs.

Instructions

Send a direct message to a member of a server the bot is in. Refused if the user is not a member of that server or a safety limit applies; fails if the user does not accept DMs from server members.

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": {
      "guildId": "<guildId>",
      "userId": "<userId>",
      "message": "<message>"
    },
    "name": "discord_send_dm"
  }
}

Input Schema

NameRequiredDescriptionDefault
userIdYesThe ID of the user to send the direct message to.
guildIdYesThe server (guild) the recipient must be a member of.
messageYesThe content of the direct message (max 2000 characters).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.5.3

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose the two key failure modes: rejection when the recipient is not a guild member or a safety limit applies, and failure when the user blocks server DMs. It stops short of stating required bot permissions, whether sends are idempotent or rate limited, and what a successful call returns.

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?

Two sentences, both load-bearing: the first states the action and scope, the second enumerates the refusal and failure conditions. Nothing is redundant and the most important constraint (recipient must be in the guild) is front-loaded.

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-required-parameter mutation with no annotations and no output schema, the description covers the action, the membership precondition, and the two documented failure paths. Remaining gaps — bot permission requirements, return payload, and rate-limit behavior — are real but modest for a simple DM send.

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 guildId, userId, and message are already documented, including the 2000-character cap on message. The prose adds no per-parameter meaning beyond the schema — the guildId framing as the recipient's membership gate duplicates the schema text rather than extending it, so the baseline 3 applies.

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 opens with a specific verb and resource ('Send a direct message') and adds a scoping constraint ('to a member of a server the bot is in'), which cleanly separates it from channel-based sends. It never names the sibling it differs from (discord_send, discord_send_webhook_message), so the differentiation is inferable rather than explicit.

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

Usage Guidelines3/5

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

Guidance is implied through preconditions ('Refused if the user is not a member of that server') rather than stated as when-to-use rules. An agent can deduce that this is for private user contact, but the description gives no explicit routing against the many other discord_send* tools and no note on what to do when the DM gate fails.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.