Skip to main content
Glama
discord-mcp

discord-mcp

discord_search_messages

Search Discord channel messages by keyword, author, or attachment presence to locate specific conversations and files quickly.

Instructions

Search messages in a channel with keyword matching, author filters, and attachment checks.

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_id": "<channel_id>"
    },
    "name": "discord_search_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax messages to search through (1-100, default: 50).
queryNoKeyword or phrase to search for.
guild_idNoOptional guild ID.
author_idNoOptional user ID to filter by author.
channel_idYesChannel ID or name.
has_attachmentNoOptional filter for messages with attachments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and largely drops it. It never explains that the search appears to scan a bounded window of recent messages (as the limit parameter's "max messages to search through" implies), nor does it cover result ordering, pagination, or permission requirements. An agent could reasonably assume a full-history full-text index and get incomplete results.

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?

A single front-loaded sentence with no filler, and the filter capabilities are listed in a compact parallel structure. It is efficient, though its brevity is partly the cause of the missing usage and behavior detail.

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?

For a six-parameter tool with no annotations and no output schema, one sentence is not enough. The agent is left without any sense of what a result looks like, how the limit bounds the search, or when to prefer this over plain message retrieval.

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 in the input schema, and the baseline of 3 applies. The description restates the keyword/author/attachment filters without adding anything the schema does not already say, and it says nothing about how limit interacts with the search window.

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?

The description pairs a specific verb ("Search") with a specific resource ("messages in a channel") and enumerates the supported filter dimensions (keyword, author, attachment). That is enough to know exactly what the tool does. It stops short of distinguishing itself from the closest sibling, discord_get_messages, so an agent cannot tell from the text alone which of the two retrieval tools to pick.

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 only implied: the mention of keyword matching and filters suggests you call this when you want to narrow messages rather than list them. There is no explicit "use this when / use X instead" statement and no mention of discord_get_messages as the unfiltered alternative, even though that is the obvious competing choice.

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