Skip to main content
Glama
discord-mcp

discord-mcp

by etak64n

read_context

Read-onlyIdempotent

Retrieves a Discord guild message and its surrounding messages in chronological order using a message URL, with configurable limits on message count and text length.

Instructions

Read a guild message and its immediate neighbors in chronological order. Supply the canonical Discord message URL. anchor_index is zero-based.

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": {
      "message_url": "<message_url>"
    },
    "name": "read_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNo
charsNo
beforeNo
message_urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered structurally. The description adds genuinely new behavior — results are the anchor message plus its chronological neighbors — but says nothing about truncation via chars, behavior on an invalid or inaccessible URL, or cross-channel/thread edge cases. It also references an 'anchor_index' parameter that does not exist in the schema, a stale detail that could confuse an agent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences with the core operation front-loaded, which is good structure. The final sentence about a zero-based anchor_index is wasted and actively misleading because no such parameter exists in the input schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and 0% parameter description coverage, the description should do more: it never indicates the shape of the result (how the anchor is marked, ordering markers, whether neighbors are truncated), nor how chars affects the returned payload. For a retrieval tool whose whole value is the returned context window, this leaves real gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the burden, and it only explains message_url (canonical URL, required) while spending a sentence on a nonexistent 'anchor_index'. The three real tuning parameters — before, after and especially chars (is it a per-message character cap? a total budget?) — are never explained, including their defaults of 2/2/400 and maxima of 10/10/1000.

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 ('Read') and a precisely scoped resource ('a guild message and its immediate neighbors in chronological order'), which tells an agent this is contextual retrieval rather than search. It does not explicitly name or contrast with the sibling find_messages, so the differentiation is only implied by 'neighbors'.

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?

'Supply the canonical Discord message URL' gives clear input-format guidance, and the neighbor framing implies use when surrounding conversation matters. However, there is no explicit when-to-use vs. when-not-to-use statement, and no mention of the sibling find_messages as the alternative for locating a message.

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