Skip to main content
Glama
Stig-Johnny

Slack Notifications MCP Server

by Stig-Johnny

send_message

Send a text message to a Slack channel. Provide the message content; optionally specify the channel ID.

Instructions

Send a message to a Slack channel

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channel_idNoSlack channel ID. If not provided, uses the build channel.
textYesMessage text to send

Implementation Reference

  • index.js:107-123 (registration)
    Tool 'send_message' is registered in the ListToolsRequestSchema handler with its name, description, and inputSchema (requiring channel_id and text).
      name: "send_message",
      description: "Send a message to a Slack channel",
      inputSchema: {
        type: "object",
        properties: {
          channel_id: {
            type: "string",
            description: "Slack channel ID. If not provided, uses the build channel.",
          },
          text: {
            type: "string",
            description: "Message text to send",
          },
        },
        required: ["text"],
      },
    },
  • Handler for 'send_message' tool call: validates channel_id and text parameters, then uses slack.chat.postMessage API to send the message to the specified Slack channel. Returns success status, timestamp, and channel ID.
    case "send_message": {
      const channelId = args?.channel_id || buildChannelId;
      const text = args?.text;
    
      if (!channelId) {
        return {
          content: [
            {
              type: "text",
              text: "Error: No channel_id provided and SLACK_BUILD_CHANNEL_ID not configured.",
            },
          ],
        };
      }
    
      if (!text) {
        return {
          content: [
            {
              type: "text",
              text: "Error: text parameter is required",
            },
          ],
        };
      }
    
      const result = await slack.chat.postMessage({
        channel: channelId,
        text: text,
      });
    
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify({
              success: result.ok,
              timestamp: result.ts,
              channel: result.channel,
            }, null, 2),
          },
        ],
      };
    }
Behavior2/5

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

The description does not disclose behavioral traits beyond the basic action. Since no annotations are provided, it should mention aspects like authentication requirements, side effects, or default behavior when channel_id is omitted.

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 is a single sentence with no wasted words, effectively conveying the core purpose.

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?

For a simple tool with only two parameters and no output schema, the description is minimally adequate but does not provide extra context such as message length limitations or formatting options.

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?

The input schema covers both parameters with descriptions, achieving 100% schema description coverage. The tool description adds no additional meaning beyond the schema, 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 the action ('Send a message') and the resource ('a Slack channel'), distinguishing it from sibling tools like check_build_status, get_channel_messages, list_channels, and search_messages.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives, such as when to use send_message instead of check_build_status or search_messages.

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/Stig-Johnny/slack-notifications-mcp'

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