Skip to main content
Glama
farsght

slack-user-mcp-server

by farsght

Get Slack Channel History

slack_get_channel_history
Read-onlyIdempotent

Retrieve recent Slack messages from any channel, DM, or group you belong to. Filter by channel, time range, and limit to get message text, author, reactions, and thread details.

Instructions

Fetch recent messages from a Slack channel, DM, or group message. Uses your user token so you can access any channel you're a member of.

Args:

  • channel (string): Channel ID (e.g. C012AB3CD) or name (e.g. #general)

  • limit (number): Number of messages to return, 1-200 (default: 50)

  • oldest (string): Start of time range as Unix timestamp (optional)

  • latest (string): End of time range as Unix timestamp (optional)

  • inclusive (boolean): Include messages with oldest/latest timestamps (default: true)

Returns: List of messages with text, author, timestamp, reactions, and thread info.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of messages to return
latestNoEnd of time range (Unix timestamp)
oldestNoStart of time range (Unix timestamp)
channelYesChannel ID or name (e.g. C012AB3CD or #general)
inclusiveNoInclude boundary messages
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so the description adds the detail about using the user token and limiting access to channels the user is a member of. This is valuable behavioral context beyond what annotations provide.

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 opens with a clear purpose sentence, then lists parameters in a structured format, and closes with a return value line. It is concise, front-loaded, and contains 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 the tool's simplicity, strong annotations, and complete schema, the description covers purpose, parameters, and return value. It lacks details on pagination or edge cases but is adequate for typical use.

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 coverage is 100% and includes descriptions, defaults, and ranges for all parameters. The description repeats many of these (e.g., channel examples, limit range) but adds no significant new meaning, so baseline 3 is appropriate.

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 'Fetch recent messages from a Slack channel, DM, or group message' with a specific verb and resource. It distinguishes this tool from siblings like slack_post_message (send) and slack_search_messages (search) by focusing on retrieving history.

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 useful context: it uses the user token and works for any channel the user is a member of, which helps decide when to use it. It does not explicitly name alternatives or exclusions, but the usage context is clear.

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