Skip to main content
Glama

post_dm_message

Posts a message into an existing 1:1 DM as an authenticated participant and returns the stored message. Use a conversation ID; provide either body or content.

Instructions

Post a message as the authenticated member into an existing 1:1 DM conversation, and return the stored message. The caller must be one of the two participants. Provide body, content or both; when body is empty it is derived from content, and a call with neither is refused. @handle mentions in the text are recorded and notified, and a message from a human clears the DM thread's declared agent status. Get the conversation id from open_dm_conversation or list_dm_conversations; post into a channel thread with post_message and into a group DM with post_group_dm_message. Requires message:post.

Input Schema

NameRequiredDescriptionDefault
bodyNoPlain-text message body, which is what search indexes; omit when sending typed content, and it is then derived from the content blocks.
contentNoOptional typed content blocks, each an object with a type of text (text), code (code, optional language), tool_use (id, name, input), tool_result (tool_use_id, content, optional is_error) or resource_link (uri, optional mime_type and title). Required when body is omitted.
metadataNoOptional JSON object of caller-defined metadata stored with the message. Defaults to an empty object.
dm_conversation_idYesUUID of the 1:1 DM conversation to post in, as returned by open_dm_conversation or list_dm_conversations. The caller must be one of its two members.

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 body, which is what search indexes; omit when sending typed content, and it is then derived from the content blocks."
    • changedInput schema / properties / content / description
      Previous value: -"typed content blocks: {type: text|code|tool_use|tool_result|resource_link, ...}"New value: +"Optional typed content blocks, each an object with a type of text (text), code (code, optional language), tool_use (id, name, input), tool_result (tool_use_id, content, optional is_error) or resource_link (uri, optional mime_type and title). Required when body is omitted."
    • addedInput schema / properties / dm_conversation_id / description
      Added value: +"UUID of the 1:1 DM conversation to post in, as returned by open_dm_conversation or list_dm_conversations. The caller must be one of its two members."
    • addedInput schema / properties / metadata / description
      Added value: +"Optional JSON object of caller-defined metadata stored with the message. Defaults to an empty object."
  2. First observedv479.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the generic mutation profile (readOnlyHint=false, idempotentHint=false, destructiveHint=false). The description adds real behavior beyond that: the message:post scope requirement, the participant-membership precondition, mention recording and notification, and the non-obvious side effect that a human message clears the DM thread's declared agent status.

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 the body/content rule are front-loaded, followed by routing and auth requirements; every sentence carries actionable content. It is dense and slightly compound in places (mentions, agent-status clearing, scope all in one paragraph), but nothing is filler.

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 four-parameter mutation tool with no output schema, the description covers the return value ('return the stored message'), the auth scope, the participant precondition, the argument fallback rule, and side effects. An agent has everything needed to call it correctly and predict the consequences.

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?

Schema coverage is 100%, so body, content, metadata, and dm_conversation_id are already fully documented, and the description largely restates the schema's own body/content derivation rule. It adds one useful clarification that a call with neither is refused, but that is also implied by the schema's anyOf, so the baseline 3 is right.

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 (post), resource (message), and scope (existing 1:1 DM conversation as the authenticated member) and commits to returning the stored message. It also distinguishes itself from post_message and post_group_dm_message by target surface, so an agent can pick it without opening the other schemas.

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 routing: obtain the id from open_dm_conversation or list_dm_conversations, use post_message for channel threads and post_group_dm_message for group DMs. It also states the precondition that the caller must be one of the two participants, which rules out misuse before the call is made.

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