Skip to main content
Glama

Search messages

search_messages
Read-only

Search a Discord channel for recent messages by content and author, scanning history up to a configurable limit and reporting how far it looked.

Instructions

Search recent messages in one channel by content and author. The bot API has no native search, so this scans history newest to oldest up to scan_limit messages and reports exactly how far it looked. Results are case-insensitive substring matches.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelYesChannel name or ID to search in.
guildNoGuild (server) name or ID. Omit to use the default guild.
queryYesText to look for.
authorNoOnly messages whose author name matches this.
limitNoMax results. Default 10.
scan_limitNoHow many messages to scan before stopping. Default 300.
Behavior4/5

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

The description adds valuable behavioral context beyond the readOnlyHint annotation: it scans history, reports scan depth, and performs case-insensitive substring matching. No contradictions with annotations.

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?

Two concise sentences, front-loaded with the main purpose, followed by key behavioral details. No fluff.

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?

Given 6 parameters and no output schema, the description covers essential behavior (scanning, match type, scan_limit). Missing details about return format, but the mention of 'reports how far it looked' provides some output context.

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?

All parameters have descriptions in the schema (100% coverage), so the description adds little extra meaning. It mentions case-insensitivity and scanning limit behavior, but these are not strictly parameter-specific.

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 tool searches messages in a channel by content and author, specifying the resource and scope. It also distinguishes itself by explaining the scanning workaround, setting it apart from other search tools.

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 implies when to use this tool (when needing message search) and explains its scanning behavior, but it does not explicitly state when not to use it or provide alternatives.

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/OrygnsCode/Omnicord'

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