Skip to main content
Glama
discord-mcp

discord-mcp

by wjrosa

messages_read

Read-onlyIdempotent

Read Discord channel, thread or DM messages oldest first, page up to 5000, and filter results by author, regex content, attachments, bots or a time window.

Instructions

Read messages from a channel, thread or DM, oldest first. limit up to 5000 (paged automatically). before/after/around take a message id/link or a time ("2026-11-30T12:00Z", "6h", "3d"). Filters (applied after fetching): author id/username, contains (regex), include_bots, has_attachments. raw=True returns Discord's full message objects instead of the compact view.

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": {
      "channel": "<channel>"
    },
    "name": "messages_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
botNo
rawNo
afterNo
guildNo
limitNo
aroundNo
authorNo
beforeNo
channelYes
containsNo
include_botsNo
has_attachmentsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, non-destructive profile, so the description's added value is elsewhere: oldest-first ordering, automatic paging up to 5000, and the important note that filters are applied AFTER fetching — which changes how limit interacts with filtering. The raw=True return-shape distinction is also useful behavioral context. It stops short of describing pagination cursors or rate-limit behavior.

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?

Front-loaded with the action and scope, then the limit/paging fact, then positional params, then filters, then output mode — a logical order with no filler. The telegraphic parentheses are efficient, though the filter line packs several distinct parameters into one dense sentence.

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 12-parameter read tool with no output schema and no parameter descriptions, the definition covers ordering, paging, time-format parsing, post-fetch filtering, and return-shape switching. The main residual gaps are the guild/bot scoping parameters and any statement of result volume or error behavior.

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?

With 0% schema description coverage the description must carry the load, and it does for the highest-risk parameters: it explains that before/after/around accept a message id, a link, or relative/absolute time formats like '6h', '3d', '2026-11-30T12:00Z' — semantics unavailable anywhere in the schema. It also clarifies contains is a regex, include_bots, has_attachments, raw, and limit bounds. channel, guild, and bot remain uninterpreted.

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?

States a specific verb and resource with scope: 'Read messages from a channel, thread or DM, oldest first.' It also discloses the ordering guarantee, which separates it from a search-style sibling, but it never names or contrasts any alternative explicitly.

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 is implied by the mention of filters and the raw=True mode, so an agent can infer when each mode applies. However, there is no explicit when-to-use or when-not guidance relative to siblings such as messages_search or thread_read, and no prerequisites are stated.

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