MCPVault

filter_in_channel

MCP tool from Slack MCP Server by korotovsky

(string, optional): Filter messages in a specific channel by its ID or name. Example: C1234567890 or #general. If not provided, all channels will be searched.

How to use it

filter_in_channel is exposed by the Slack MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the filter_in_channel tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

FULL SLACK MCP SERVER LISTING

Other tools in Slack MCP Server (39)

action

(string, required): Action to perform - list to see your groups, join to add yourself, leave to remove yourself.

channel_id

(string, required): - channelid (string): ID of the channel in format Cxxxxxxxxxx or its name starting with #... or @... aka #general or @usernamedm.

channel_types

(string, required): Comma-separated channel types. Allowed values: mpim, im, publicchannel, privatechannel. Example: publicchannel,privatechannel,im

channels

(string, optional): Comma-separated channel IDs for default channels where group mentions will be highlighted.

content_type

(string, default: "text/markdown"): Content type of the message. Default is 'text/markdown'. Allowed values: 'text/markdown', 'text/plain'.

cursor

(string, optional): Cursor for pagination. Use the value of the last row and column in the response as nextcursor field returned from the previous request.

description

(string, optional): Purpose or description of the group.

DisplayName

User's display name

DMChannelID

DM channel ID if available in cache (for quick messaging)

emoji

(string, required): The name of the emoji to add as a reaction (without colons). Example: thumbsup, heart, rocket.

filter_date_after

(string, optional): Filter messages sent after a specific date in format YYYY-MM-DD. Example: 2023-10-01, July, Yesterday or Today. If not provided, all dates will be searched.

filter_date_before

(string, optional): Filter messages sent before a specific date in format YYYY-MM-DD. Example: 2023-10-01, July, Yesterday or Today. If not provided, all dates will be searched.

filter_date_during

(string, optional): Filter messages sent during a specific period in format YYYY-MM-DD. Example: July, Yesterday or Today. If not provided, all dates will be searched.

filter_date_on

(string, optional): Filter messages sent on a specific date in format YYYY-MM-DD. Example: 2023-10-01, July, Yesterday or Today. If not provided, all dates will be searched.

filter_in_im_or_mpim

(string, optional): Filter messages in a direct message (DM) or multi-person direct message (MPIM) conversation by its ID or name. Example: D1234567890 or @usernamedm. If not provided, all DMs and MPIMs will be searched.

filter_threads_only

(boolean, default: false): If true, the response will include only messages from threads. Default is boolean false.

filter_users_from

(string, optional): Filter messages from a specific user by their ID or display name. Example: U1234567890 or @username. If not provided, all users will be searched.

filter_users_with

(string, optional): Filter messages with a specific user by their ID or display name in threads and DMs. Example: U1234567890 or @username. If not provided, all threads and DMs will be searched.

handle

(string, optional): Mention handle without @ (e.g., "engineering"). If not provided, Slack will auto-generate one.

include_activity_messages

(boolean, default: false): If true, the response will include activity messages such as channeljoin or channelleave. Default is boolean false.

include_count

(boolean, default: true): Include user count for each group.

include_disabled

(boolean, default: false): Include disabled/archived groups.

include_messages

(boolean, default: true): If true, returns the actual unread messages. If false, returns only a summary of channels with unreads.

include_users

(boolean, default: false): Include list of user IDs in each group.

limit

(string, default: "1d"): Limit of messages to fetch in format of maximum ranges of time (e.g. 1d - 1 day, 1w - 1 week, 30d - 30 days, 90d - 90 days which is a default limit for free tier history) or number of messages (e.g. 50). Must be empty when 'cursor' is provided.

max_channels

(number, default: 50): Maximum number of channels to fetch unreads from.

max_messages_per_channel

(number, default: 10): Maximum messages to fetch per channel.

name

(string, required): Name of the user group (e.g., "Engineering Team").

payload

(string, required): Message payload in specified contenttype format. Example: 'Hello, world!' for text/plain or '# Hello, world!' for text/markdown.

query

(string, required): Search query - matches against real name, display name, username, or email.

RealName

User's real name

search_query

(string, optional): Search query to filter messages. Example: 'marketing report' or full URL of Slack message e.g. 'https://slack.com/archives/C1234567890/p1234567890123456', then the tool will return a single message matching given URL, herewith all other parameters will be ignored.

sort

(string, optional): Type of sorting. Allowed values: popularity - sort by number of members/participants in each channel.

thread_ts

(string, required): Unique identifier of either a thread’s parent message or a message in the thread. ts must be the timestamp in format 1234567890.123456 of an existing message with 0 or more replies.

timestamp

(string, required): Timestamp of the message to add reaction to, in format 1234567890.123456.

usergroup_id

(string, required): ID of the user group (e.g., "S1234567890").

UserID

User ID (e.g., U1234567890)

UserName

Slack username

users

(string, required): Comma-separated user IDs to set as members (e.g., "U123,U456,U789").