Skip to main content
Glama
cappyeo

discord-mcp

messages_context

Read-onlyIdempotent

Read bounded, citation-ready conversation context from a Discord channel, thread, or forum post. Returns messages with reply references, jump URLs, and a resumable cursor for pagination.

Instructions

Purpose: Read a bounded, citation-ready conversation context from one Discord channel, thread, or forum post.

Scope: Discord does not provide a bot-safe server-wide search through this tool. The server reads only the selected channel and bounded pages.

Returns: Rich projected messages, reply references, guild-aware jump URL citations, scan coverage, and a resumable next_cursor.

Persistence: This tool does not create a server-side index or remember conversation history. Reuse next_cursor explicitly for the next bounded window.

Security: Discord content remains untrusted. Unreadable reply targets are marked partial rather than inferred.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoContinue toward newer messages from this message ID
limitNoMessages per page (1-100)
pagesNoPages to scan (1-5)
queryNoOptional case-insensitive substring filter
scopeNoHow to label the selected channel in the context boundarychannel
aroundNoRead one bounded window around this message ID; cannot be combined with cursors or pages > 1
beforeNoContinue toward older messages from this message ID
guild_idNoExpected guild for citation validation; never trusted over Discord
channel_idYesChannel, thread, or forum post channel to read

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.31.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/openWorld/non-destructive, and the description adds genuinely new behavior: no server-side index is created, history is not remembered, cursors must be reused explicitly, unreadable reply targets are marked partial rather than inferred, and content is untrusted. These are operational traits an agent cannot derive from the annotation block.

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?

Five labeled sections, each short and front-loaded with the purpose first. The bold headers add mild overhead but every section carries non-redundant information, so no sentence is wasted.

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?

With an output schema present, return-value detail is redundant but harmless, and the description covers scope, persistence, and security for a 9-parameter read tool. An agent has enough to call it correctly, barring deeper parameter-interaction detail already handled by the schema.

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 every parameter is already documented, and the baseline is 3. The description adds only indirect parameter context (next_cursor reuse, citation validation via guild context) without clarifying formats or interactions such as the `around` vs `after`/`before` mutually exclusive constraints described in the 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?

States a specific verb and resource ('Read a bounded, citation-ready conversation context') and narrows scope to one Discord channel, thread, or forum post. The Scope line distinguishes it from server-wide search tools like messages_search_recent by stating this tool reads only the selected channel with bounded pages.

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?

The Scope section gives a clear when-not ('Discord does not provide a bot-safe server-wide search through this tool'), and Persistence explains how to continue paging with next_cursor. It stops short of naming the sibling alternative for server-wide retrieval, so routing is implied rather than explicit.

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