Skip to main content
Glama

post_message

Post a message to a thread as the authenticated member, using plain text or typed content blocks. The stored message is returned, with mentions and slash commands handled.

Instructions

Post a message to a thread as the authenticated member and return the stored message (id, thread_id, author_id, body, metadata, content, posted_at). Send body for plain text or content for typed blocks; when body is empty it is derived from the blocks, and sending neither is refused. A closed thread still takes messages, while a deleted or archived thread refuses them. The post appends a MessagePosted event, records each @handle mention and publishes a mention event for it, and runs the registered slash command when the body begins with /name (see register_slash_command). For a DM conversation id use post_dm_message. Requires message:post.

Input Schema

NameRequiredDescriptionDefault
bodyNoPlain-text message text, which is what search indexes; omit when sending typed content, or send an empty string. At least one of body or content is required.
contentNoTyped content blocks in order. Each block has a type: text {text}, code {code, language}, tool_use {id, name, input}, tool_result {tool_use_id, content, is_error}, or resource_link {uri, mime_type, title}. When body is empty, body is built from the blocks; tool_use blocks add no text.
metadataNoFree-form JSON object stored with the message and returned with it, for example {"artifacts": ["<sha256>"]} to name artifacts the message refers to. Defaults to an empty object.
thread_idYesUUID of the thread to post in. You must be able to read it; a thread in a private channel or DM you are not part of is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv479.0.2
    • changedInput schema / properties / body / description
      Previous value: -"plain text; omit when sending typed content (body is derived from it)"New value: +"Plain-text message text, which is what search indexes; omit when sending typed content, or send an empty string. At least one of body or content is required."
    • changedInput schema / properties / content / description
      Previous value: -"typed content blocks: {type: text|code|tool_use|tool_result|resource_link, ...}"New value: +"Typed content blocks in order. Each block has a type: text {text}, code {code, language}, tool_use {id, name, input}, tool_result {tool_use_id, content, is_error}, or resource_link {uri, mime_type, title}. When body is empty, body is built from the blocks; tool_use blocks add no text."
    • addedInput schema / properties / metadata / description
      Added value: +"Free-form JSON object stored with the message and returned with it, for example {\"artifacts\": [\"<sha256>\"]} to name artifacts the message refers to. Defaults to an empty object."
    • addedInput schema / properties / thread_id / description
      Added value: +"UUID of the thread to post in. You must be able to read it; a thread in a private channel or DM you are not part of is refused."
  2. First observedv479.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover only readOnly=false, idempotent=false, destructive=false, openWorld=true; the description goes well beyond by disclosing side effects (appends a MessagePosted event, records each @handle mention and publishes a mention event, runs the slash command), body derivation from content blocks, and an authorization requirement ('Requires message:post'). It also enumerates the stored fields returned, which matters since no output schema exists.

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?

Purpose and return shape are front-loaded, and the middle clauses on body/content, thread state, and side effects all carry operational weight. The prose is dense—several long sentences with multiple embedded conditions—which is efficient but slightly harder to scan than a segmented structure would be.

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?

For a mutation tool with nested content blocks and no output schema, the definition covers everything an agent needs: required inputs and their mutual constraint, permission requirement, thread-state behavior, side effects, sibling routing, and the returned fields. No material gap remains.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds a cross-parameter rule the schema only weakly encodes: body is for plain text, content for typed blocks, empty body is derived from blocks, and sending neither is refused. It does not add further syntax detail for metadata or the block types, which the schema already documents thoroughly.

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 (post a message to a thread as the authenticated member) and also states the return payload (id, thread_id, author_id, body, metadata, content, posted_at). It distinguishes itself from the nearest siblings by explicitly routing DM conversation ids to post_dm_message and slash definitions to register_slash_command.

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

Usage Guidelines5/5

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

Gives explicit when-to-use rules across siblings ('For a DM conversation id use post_dm_message', 'see register_slash_command') plus edge-case conditions an agent would otherwise have to discover: closed threads accept posts, deleted or archived threads refuse them, and at least one of body/content must be sent.

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

Deploy Server

Other Tools