Skip to main content
Glama

send_message

Posts a message or file to a Slack channel only after confirmation; previews the content first to verify.

Instructions

Send a message to a channel — ONLY when confirm=True.

With confirm=False (the default) nothing is sent: the tool echoes back the workspace, resolved channel, text, and any attachment so they can be verified first. Call again with confirm=True to actually post.

Pass file_path to upload a local file as an attachment. When both text and file_path are given, the text becomes the file's comment so one call posts both together. Uploading requires the files:write scope (and im:write to attach to a DM via a user ID); check_access reports whether the token has them.

Args: workspace: configured workspace name. channel: channel ID (C…/G…/D…) or a name like '#general', or a user ID (U…/W…) to DM that person. text: the message body (Slack mrkdwn). May be empty when file_path is set. confirm: must be True to actually send; False returns a preview only. thread_ts: optional parent ts to reply in a thread. file_path: optional path to a local file to upload as an attachment. file_title: optional display title for the attachment (defaults to the filename).

Input Schema

NameRequiredDescriptionDefault
textYes
channelYes
confirmNo
file_pathNo
thread_tsNo
workspaceYes
file_titleNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses that confirm=False sends nothing and instead echoes back workspace, channel, text and attachments, explains the combined text+file comment behavior, and names the required OAuth scopes (files:write, im:write) with a pointer to check_access. That is unusually rich behavioral context for a mutation tool.

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 safety-critical constraint is front-loaded in the first line and the prose above the Args block adds real information. The Args list is long but earns its place given zero schema coverage; only minor redundancy remains between the prose and the parameter list.

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?

An output schema exists, so return values needn't be spelled out, and the description still explains what the preview payload contains. Combined with scope requirements, attachment semantics and threading, an agent has everything needed to call it correctly on the first try.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 7 parameters, so the description must compensate and does — it documents accepted channel formats (C…/G…/D…, '#general', U…/W… for DMs), notes text is Slack mrkdwn and may be empty when file_path is set, and clarifies thread_ts, file_path and file_title defaults.

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?

States a specific verb and resource ('Send a message to a channel') plus an immediate hard gate ('ONLY when confirm=True'). The confirm/preview mechanism makes it distinguishable from sibling draft_message without opening either schema.

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?

Explicit two-step protocol: call with confirm=False to preview, then repeat with confirm=True to post, and it states the preconditions for attachments. It does not, however, contrast itself with the sibling draft_message, which is the nearest alternative for composing without sending.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.