Skip to main content
Glama
farsght

slack-user-mcp-server

by farsght

Search Slack Messages

slack_search_messages
Read-onlyIdempotent

Search Slack messages across all accessible channels, DMs, and groups. Use filters like sender, channel, and date to locate specific messages.

Instructions

Search for messages across your entire Slack workspace using the Slack search API. This uses YOUR user token, so it searches everything you have access to — channels, DMs, group messages.

Supports Slack search modifiers:

  • from:@username — messages from a specific user

  • in:#channel — messages in a specific channel

  • has:link / has:reaction / has:star — filter by attributes

  • before:YYYY-MM-DD / after:YYYY-MM-DD — date filters

  • is:thread — only threaded messages , Args:

  • query (string): Slack search query (supports search modifiers)

  • sort (string): Sort by "timestamp" or "score" (default: timestamp)

  • sort_dir (string): Sort direction "asc" or "desc" (default: desc)

  • count (number): Number of results to return, 1-100 (default: 20)

  • page (number): Page number for pagination (default: 1)

Returns: List of matching messages with text, author, channel, timestamp, and permalink.

Examples:

  • "from:me" — your own recent messages

  • "from:@scott.jensen after:2026-03-01" — your messages this month

  • "in:#general budget" — messages about "budget" in #general

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number
sortNoSort by timestamp or relevance scoretimestamp
countNoNumber of results per page
queryYesSlack search query
sort_dirNoSort directiondesc
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint. The description adds valuable context: it uses your user token, includes channels/DMs/group messages, and supports rich search modifiers. This goes beyond the annotations without contradicting them.

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 well-structured with sections for modifiers, args, returns, and examples. It is slightly lengthy but every section earns its place given the complexity of Slack search syntax and pagination.

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?

The description includes the return format (text, author, channel, timestamp, permalink), pagination via the page parameter, and multiple practical examples. Since there is no output schema, this fully bridges the gap and gives the agent complete expectations.

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 covers 100% of parameters, so baseline is 3. The description adds extra meaning by explaining Slack search modifiers, providing example queries, and confirming defaults for sort, count, and page. This helps the agent construct effective queries beyond the raw schema.

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 it 'searches messages across your entire Slack workspace' using the Slack search API, with specific verb, resource, and scope. This distinguishes it from sibling tools like slack_get_channel_history or slack_get_thread, which operate on a single channel or thread.

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

Usage Guidelines4/5

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

The description provides clear context on when to use this tool: when you need to search across channels, DMs, and group messages using your user token. It notes that it searches 'everything you have access to,' which implies the broad use case, but it does not explicitly name alternatives or state when not to use it.

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/farsght/slack-user-mcp-server'

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