Skip to main content
Glama

Search messages

search_messages
Read-only

Find Slack messages by keyword, sender, channel, date, link, or thread using Slack modifiers. Results can be paged and sorted by timestamp or relevance.

Instructions

Search messages with Slack search syntax, e.g. "deploy in:#eng from:@alice after:2026-09-01", "has:link", "is:thread".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
sortNotimestamp = newest first, score = best match first.timestamp
limitNoResults per page (1–100).
queryYesSlack search query (modifiers: from:, in:, to:, has:, before:, after:, during:).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/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 without the description repeating it. The description adds no behavioral context beyond syntax, such as result scoping across channels, permission requirements, or pagination behavior when many matches exist.

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?

A single front-loaded sentence that states the capability and immediately grounds it in examples, with no filler or redundancy. Every element earns its place.

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?

With no output schema, the description should carry more of the return-value burden; it never says what a result contains or how pagination across pages behaves. It is adequate for calling the tool, but an agent cannot anticipate the response shape or result volume.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75% and sort/limit are already documented inline, but the description meaningfully enriches the required query parameter by showing three concrete composite queries that demonstrate how modifiers combine. That goes beyond the schema's bare list of modifier names and is genuinely useful for constructing valid input.

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) and names the exact query language, Slack search syntax, so the agent knows precisely what kind of input drives this tool. It does not explicitly distinguish itself from read_messages or read_thread, which also return message content, so sibling differentiation is left to inference.

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 presence of Slack search modifiers suggests this is for targeted retrieval rather than browsing a channel. There is no explicit statement of when to prefer this over read_messages or read_thread, and no mention of prerequisites such as being a member of the searched channels.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.