Skip to main content
Glama
discord-mcp

discord-mcp

by wjrosa

messages_search

Read-onlyIdempotent

Search Discord messages server-wide by content, author, channel, mentions, attachments, or time range; returns total hits and compact results.

Instructions

Server-wide message search (Discord's search index). has: link, embed, file, image, video, sound, sticker, poll, snapshot. min_id/max_id also take times ("7d"). Returns total hits + compact messages. If the index is still building Discord answers 202; the tool waits and retries once.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "messages_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
botNo
hasNo
guildNo
limitNo
authorNo
max_idNo
min_idNo
offsetNo
pinnedNo
channelNo
contentNo
mentionsNo
sort_orderNodesc

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds genuinely non-obvious operational context: the search index may still be building, Discord returns 202, and the tool waits and retries once. It also discloses the return shape (total hits plus compact messages), which the annotations cannot convey.

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?

The description is four short, front-loaded fragments with no filler, leading with purpose and then behavioral facts. The telegraphic 'has: ...' syntax is slightly terse but efficient rather than confusing.

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

Completeness3/5

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

Given 13 undocumented parameters and no output schema, the description is adequate but incomplete: it covers the tricky filter values, the time-format shorthand, the return shape, and the index-building retry. It omits how scoping parameters (guild, channel, author) combine, what 'compact messages' omits, and any pagination guidance, which matter for a search tool with limit/offset.

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 coverage is 0% across 13 parameters, so the description must compensate, and it does so only partially: it enumerates the accepted `has` filter values (link, embed, file, image, video, sound, sticker, poll, snapshot) and explains that min_id/max_id accept relative times like '7d'. These are the least self-evident parameters. However, `bot`, `guild`, `author`, `channel`, `content`, `mentions`, `pinned`, `sort_order`, `limit`, and `offset` remain entirely undocumented beyond their names.

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 names a specific verb and resource ('Server-wide message search') and identifies the backing mechanism ('Discord's search index'), which tells an agent this is index-backed full-server search rather than a direct channel read. It does not explicitly contrast with siblings like messages_read, but the 'server-wide' scoping does most of the disambiguating work.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus messages_read or how to narrow a query that returns too much. The only conditional behavior mentioned (index building / 202 retry) concerns tool internals, not query-selection guidance, so an agent is left to infer appropriate usage from the parameter names alone.

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