Skip to main content
Glama
discord-mcp

discord-mcp

discord_get_dm_history

Retrieve recent direct message history between a Discord bot and a specified user, with an optional limit on how many messages are returned.

Instructions

Read past direct message history between the bot and a specified user.

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>"
    },
    "name": "discord_get_dm_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of recent messages to retrieve (1-100, default 20).
user_idYesThe Discord user ID or mention.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations provided, so description carries full burden. It reveals 'past' history and bot-only scope, but doesn't state permissions needed, pagination behavior, message ordering, or whether the bot must have a DM channel open with the user. Notable gap for a read tool with no annotations.

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?

Single efficient sentence, front-loaded with the verb and resource. No waste, but minimal detail.

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?

Simple read tool with 2 params, 100% schema coverage, no output schema. The description is mostly sufficient; could note permissions/bot DM requirement, but nothing critical missing.

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 baseline 3; the description adds the constraint that user_id refers to the DM counterpart of the bot, which clarifies semantics somewhat. Limit parameter is fully documented in schema.

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?

Specific verb+resource: 'Read past direct message history between the bot and a specified user' – clearly distinguishes from discord_get_messages (channel messages) and discord_send_dm (write). Scope constraint 'between the bot and' is meaningful.

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?

Usage implied (when you need DM history), but no explicit when-not or named alternatives – the description doesn't route to discord_get_messages vs this tool, though 'direct message' vs 'channel' is inherent.

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