Skip to main content
Glama
piekstra

Slack MCP Server

by piekstra

add_reaction

Add an emoji reaction to a Slack message by specifying the channel, message timestamp, and emoji name.

Instructions

Add a reaction emoji to a message.

Args: channel: Channel ID where the message exists timestamp: Timestamp of the message emoji_name: Name of the emoji (without colons)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelYes
timestampYes
emoji_nameYes

Implementation Reference

  • MCP tool handler function for 'add_reaction' that wraps the SlackClient method and handles JSON serialization/error response.
    @mcp.tool() async def add_reaction(channel: str, timestamp: str, emoji_name: str) -> str: """ Add a reaction emoji to a message. Args: channel: Channel ID where the message exists timestamp: Timestamp of the message emoji_name: Name of the emoji (without colons) """ try: client = SlackClient() result = await client.add_reaction(channel, timestamp, emoji_name) return json.dumps(result, indent=2) except Exception as e: return json.dumps({"error": str(e)}, indent=2)
  • SlackClient helper method that makes the actual Slack API POST request to the 'reactions.add' endpoint.
    async def add_reaction(self, channel: str, timestamp: str, name: str) -> Dict[str, Any]: """Add a reaction to a message.""" data = {"channel": channel, "timestamp": timestamp, "name": name} return await self._make_request("POST", "reactions.add", json_data=data)

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

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