Skip to main content
Glama
discord-mcp

discord-mcp

users_create_dm

Idempotent

Open or fetch a direct-message channel with a Discord user so you can send private messages; repeat calls return the same channel ID.

Instructions

Purpose: Open (or fetch) a DM channel between the bot and a user (POST /users/@me/channels).

When to use: - Send a private message to a user - Discord requires a DM channel id first.

Idempotent: repeat calls return the same DM channel id.

Note: User-scoped endpoint - does NOT accept audit_reason.

Returns: {channel_id, type, recipient_ids}. Use channel_id with messages_send to deliver the DM.

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": {
      "recipient_id": "<recipient_id>"
    },
    "name": "users_create_dm"
  }
}

Input Schema

NameRequiredDescriptionDefault
__consentNoExplicitly approve contacting this recipient
__consent_idNoOne-time consent approval ID returned by the preview
recipient_idYesUser to DM
__consent_hashNoSHA-256 hash returned by the consent preview

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.26.0
    • addedInput schema / properties / __consent
      Added value: +{
      +  "description": "Explicitly approve contacting this recipient",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / __consent_hash
      Added value: +{
      +  "description": "SHA-256 hash returned by the consent preview",
      +  "pattern": "^[a-f0-9]{64}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / __consent_id
      Added value: +{
      +  "description": "One-time consent approval ID returned by the preview",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
  2. First observedv0.22.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare idempotentHint, destructiveHint=false and readOnlyHint=false, but the description adds useful non-obvious behavior: repeat calls return the same channel id, and this user-scoped endpoint rejects audit_reason. It omits any mention of the consent gating fields (__consent/__consent_id/__consent_hash), which is the one behavioral requirement left to be discovered from the schema.

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?

Tight, labeled sections (Purpose / When to use / Idempotent / Note / Returns) with the key intent front-loaded and no filler. The 'Returns:' sentence is partly redundant since an output schema exists, though the pointer to messages_send earns it back.

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 create-style, open-world, idempotent tool it covers purpose, precondition, idempotency, endpoint caveat, and next step, and the return shape is backed by an output schema. The only gap is silence on the consent-approval workflow implied by three of the four parameters.

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 the baseline is 3; each parameter including the consent trio is documented inline. The description only adds a gloss that the target is 'a user' receiving a DM, which essentially restates the recipient_id description.

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 ('Open (or fetch) a DM channel between the bot and a user') and pins it to the endpoint POST /users/@me/channels. The scope (bot↔user DM channel creation, not message sending) is immediately distinguishable from messages_send and the other users_* siblings.

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?

Explicit 'When to use' block names the motivating task (send a private message) and the precondition (Discord requires a DM channel id first). It also routes forward: 'Use channel_id with messages_send to deliver the DM', so the agent knows the handoff sibling by name.

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