Skip to main content
Glama
Discord MCP - Discord server management MCP for AI agents

Discord MCP - Discord server management MCP for AI agents

Send direct message

send_dm

Sends a direct message from the bot to a member who shares a server with it, and fails gracefully if the recipient has DMs closed.

Instructions

Send a direct message from the bot to a member who shares a server with it. Fails gracefully when the recipient has DMs closed. The message comes from the bot, never from a user account.

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": "<user>",
      "content": "<content>"
    },
    "name": "send_dm"
  }
}

Input Schema

NameRequiredDescriptionDefault
userYesMember name or user ID.
guildNoGuild (server) name or ID. Omit to use the default guild.
contentYesThe message text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.2
    • addedInput schema / properties / content / description
      Added value: +"The message text."
  2. Changed1 schema field changedv1.4.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed1 schema field changedv1.3.0
    • removedInput schema / additionalProperties
      Removed value: -false
  4. First observedv1.0.2

TDQS

A4.4/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: the send is bot-sourced, never impersonating a user, and it 'fails gracefully' when the recipient has DMs closed, which tells the agent not to treat that as a hard error. Annotations already cover mutation/safety, so this extra context is a genuine contribution; it omits rate limits and exactly what a graceful failure 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?

Three short sentences, each doing distinct work: what it does, failure behavior, and sender identity. The key scoping constraint is placed first with no preamble or repetition.

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-parameter mutation tool with complete schema coverage and no output schema, the description covers purpose, recipient eligibility, failure mode, and sender identity. It does not indicate what a successful or gracefully-failed call reports back to the agent, which is the main remaining gap.

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 adds a constraint on 'user' beyond the schema's 'Member name or user ID' — the target must share a server with the bot. It leaves the guild fallback to the schema only, so it does not fully enrich every parameter.

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 ('Send a direct message') plus the sender identity ('from the bot') and the recipient constraint ('a member who shares a server with it'). That DM-to-a-member scope naturally separates it from channel-oriented siblings like send_message without needing to name them.

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 clear precondition for use: the recipient must share a server with the bot, and the guild parameter exists to select that server. It does not explicitly name an alternative for channel posting or state when not to use this tool, so it stops short of full routing guidance.

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