Skip to main content
Glama
Slack MCP Server

Slack MCP Server

by mynghn

search_messages

Search Slack messages across all accessible channels using queries and modifiers like from:, in:, before:, and after: to find relevant conversations.

Instructions

Search for messages across all accessible channels. Requires user token authentication.

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

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (default: 1)
sortNoSort order (default: score)
countNoResults per page (default: 20)
queryYesSearch query (supports Slack search modifiers: from:, in:, before:, after:)
sort_dirNoSort direction (default: desc)

Output Schema

NameRequiredDescriptionDefault
pageYesCurrent page number
totalYesTotal number of matching messages
resultsYesSearch results
pageCountYesTotal number of pages

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the auth prerequisite ('Requires user token authentication'), but says nothing about result coverage limits, index freshness, permission scoping, or whether pagination is bounded — the things an agent most needs to know before trusting search output.

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 short sentences, front-loaded with the action and scope, with the auth constraint second. Nothing is wasted or buried.

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?

An output schema and fully described parameters cover much of the surface, and the auth note fills a real gap. However, for a token-scoped search tool with zero annotations, the definition does not explain coverage or consistency of results, leaving a meaningful behavioral hole.

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% and the query parameter already documents Slack modifiers (from:, in:, before:, after:), so the schema does the heavy lifting. The description adds no parameter meaning beyond that, which is the expected baseline here.

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?

States a concrete verb and resource ('Search for messages') plus a scope ('across all accessible channels'), which implicitly separates it from channel-scoped siblings like get_channel_history. It stops short of naming any sibling explicitly, so an agent must infer the boundary rather than read it.

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 word 'search' plus the all-channels scope suggests this is the discovery tool versus get_channel_history or get_thread_replies for known conversations. There is no explicit when-to-use, when-not, or named alternative.

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