Skip to main content
Glama

discord_search_guild_messages

Read-only

Search messages across all channels in a Discord server to locate specific content. Filter by author, channel, or message limit for targeted results.

Instructions

Search for messages across all channels in a guild using Discord's native search API. Returns messages matching the query with channel context. Requires READ_MESSAGE_HISTORY permission. Use discord_search_messages for channel-specific search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax messages to return (1–25). Default 25.
queryYesSearch query (case-insensitive).
guild_idYesDiscord server (guild) ID (snowflake).
author_idNoOptional. Only show messages from this user ID.
channel_idNoOptional. Restrict search to this channel ID.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
matchesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds valuable context beyond annotations by specifying the permission requirement and explaining that results include channel context, which helps set expectations for what the search returns.

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 three concise sentences with no filler. It front-loads the core purpose and scope, then adds the permission requirement and the sibling-tool distinction, making every sentence valuable.

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

Completeness5/5

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

For a read-only search tool with a complete input schema, an output schema, and annotations already covering the read-only and open-world hints, the description provides sufficient context. It identifies scope, permission needs, result shape, and the relevant alternative tool.

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 all five parameters are already documented in the schema. The description adds only minimal semantic value by confirming matches are based on 'query' and that results carry 'channel context', but it does not need to compensate for schema gaps.

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 the specific operation: search for messages across all channels in a guild using Discord's native search API. It is explicitly distinguished from discord_search_messages by noting the channel-specific alternative, so an agent can tell them apart.

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

Usage Guidelines5/5

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

The description defines the tool's scope ('across all channels') and explicitly provides guidance for when not to use it: 'Use discord_search_messages for channel-specific search.' The required READ_MESSAGE_HISTORY permission also gives practical usage context.

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