Skip to main content
Glama
GuildControl: Discord MCP

GuildControl: Discord MCP

Search Discord messages

search_messages
Read-onlyIdempotent

Search indexed Discord message history in one permitted guild using filters to locate specific messages, with exact channel scope and indexing-state reporting.

Instructions

Search indexed Discord message history in one permitted guild using the official bot search endpoint. Requires Message Content intent and Read Message History. Every request has at least one substantive filter, returns at most 25 compact messages, honors exact local channel search scope, and reports Discord indexing state without automatic retries.

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": {
      "guildId": "<guildId>"
    },
    "name": "search_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
hasNo
slopNo
limitNo
maxIdNo
minIdNo
offsetNo
pinnedNo
sortByNotimestamp
contentNo
guildIdYes
authorIdsNo
sortOrderNo
channelIdsNo
embedTypesNo
authorTypesNo
includeNsfwNo
linkHostnamesNo
embedProvidersNo
mentionRoleIdsNo
mentionUserIdsNo
mentionEveryoneNo
repliedToUserIdsNo
attachmentFilenamesNo
repliedToMessageIdsNo
attachmentExtensionsNo

Output Schema

NameRequiredDescriptionDefault
statusYes
schemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.6.0

TDQS

A3.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses permissions, indexing-state reporting, no automatic retries, a maximum of 25 compact messages, exact local channel search scope, and the requirement for at least one substantive filter. These are meaningful operational behaviors for an indexed search tool. The read-only and non-destructive annotations are consistent with the described search behavior.

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 short and front-loads the core action and scope. The final sentence packs several distinct behaviors into one dense clause, but it does not waste space with repetition or filler. It is appropriately sized for a high-level overview, though not structured for easy scanning of separate behaviors.

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 tool with 25 parameters and no schema descriptions, the description is incomplete because it does not explain how to use the many filters correctly. It does cover operational constraints and prerequisites, and the output schema means return values need not be described. Still, the parameter surface is too large for the description to omit filter semantics almost entirely.

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% across 25 parameters, so the description must carry parameter meaning, but it does not name or explain any filters such as content, authorIds, channelIds, has, or sortBy. It only states broad constraints like needing a substantive filter and returning at most 25 messages. This leaves most parameter semantics to inference from bare schema names and enums.

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 states a specific verb and resource: searching indexed Discord message history in one permitted guild via the official bot search endpoint. It also distinguishes this from broader reads by emphasizing indexed search, filters, and compact results. An agent can identify the tool's purpose without opening the schema.

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?

The description gives prerequisites and a key usage constraint: Message Content intent, Read Message History, one guild, and at least one substantive filter per request. However, it does not explicitly say when to use this instead of read_messages, catch_up_messages, or search_threads. Usage is implied by the search-and-filter framing rather than fully guided.

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