Skip to main content
Glama
Oratorian

Discord MCP Server

by Oratorian

Get Discord Messages

discord_get_messages
Read-onlyIdempotent

Retrieve messages from a Discord channel, specifying channel ID, limit, and optional before/after message IDs. Output in JSON or Markdown format.

Instructions

Retrieve messages from a Discord channel.

Args:

  • channel_id (string): Discord channel ID

  • limit (number): Number of messages to retrieve (1-100, default: 20)

  • before (string, optional): Get messages before this message ID

  • after (string, optional): Get messages after this message ID

  • response_format ('markdown' | 'json'): Output format (default: 'json')

Returns: List of messages with content, author, timestamp, attachments

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoGet messages after this message ID
limitNoNumber of messages to retrieve (1-100)
beforeNoGet messages before this message ID
channel_idYesDiscord channel ID (snowflake)
response_formatNoOutput format: 'markdown' for human-readable or 'json' for structured datajson
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint. The description adds the return format (list with content, author, timestamp, attachments) and defaults, going beyond annotations without contradiction.

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

Conciseness5/5

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

The description is concise with a well-structured docstring: a single-line purpose, followed by args list and returns. No unnecessary words.

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?

All parameters and return values are covered, but there is no explanation of pagination behavior or edge cases (e.g., using both before and after). Adequate for moderate complexity.

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%, and the description provides clear docstring explanations for each parameter (e.g., 'channel_id (string): Discord channel ID'), adding value beyond schema descriptions.

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?

The description clearly states 'Retrieve messages from a Discord channel' with a specific verb and resource, differentiating it from siblings like discord_send_message, discord_edit_message, etc.

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?

No explicit when-to-use or when-not-to-use guidance is given. While it implies use for reading messages, it does not discuss alternatives like discord_get_pinned_messages or pagination strategies.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Oratorian/discord-node-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server