Skip to main content
Glama

Send direct message

send_message

Send a message in a direct message conversation as this account; the recipient receives it on the platform. recipientId is the other party's id from get_conversation. Mastodon direct messages are read-only and return 409. Instagram comment and direct message permissions are still awaiting Meta's second review; Instagram accounts newly connected on or after 2026-11-27 temporarily cannot read or send them (a platform permission error is returned). The message goes through the anti-spam check; it cannot be sent while the workspace is suspended. (Required scope: cd.engagement.manage)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "accountId": "<accountId>",
      "conversationId": "<conversationId>",
      "recipientId": "<recipientId>",
      "text": "<text>",
      "confirm": "<confirm>"
    },
    "name": "send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes1-1000 characters
confirmYestrue = the user has approved this specific action. Without it the request is rejected with 409 AGENT_USER_CONFIRMATION_REQUIRED.
accountIdYes
recipientIdYes
workspaceIdNoOptional: id of the workspace to operate on (look it up with list_workspaces); if omitted, the default personal workspace is used. A developer API key can only use the workspace it is bound to.
conversationIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare readOnly=false, idempotent=false, destructive=false and open-world; the description adds substance they cannot convey: anti-spam screening, the workspace-suspension block, platform-specific read-only behavior with a 409, and the required cd.engagement.manage scope. Those are exactly the operational constraints an agent needs before invoking a write operation that leaves the platform boundary.

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 core action is front-loaded in the first clause, and every following sentence adds a constraint rather than restating the name. It is a dense single paragraph with parenthetical asides, however, and the platform/date caveats could be broken out for faster scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter, non-idempotent write tool with no output schema, the description covers delivery semantics, failure modes, scope, and platform gating, and the confirm/409 confirmation flow is documented in the schema. The main residual gap is the undocumented accountId and conversationId semantics.

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 50%, and the description compensates for only one undocumented parameter by explaining that recipientId comes from get_conversation. accountId and conversationId remain bare in both schema and description, so half the contract still relies on inference. Baseline 3 is appropriate given the partial compensation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 in a direct message conversation as this account') and clarifies the delivery model ('the recipient receives it on the platform'). It references get_conversation for the recipient id but does not explicitly contrast itself with siblings such as publish_post or create_draft, so an agent must infer the DM-vs-public-post boundary.

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?

Provides concrete context for when the call will fail: Mastodon DMs are read-only (409), Instagram permissions are pending Meta review, and the workspace must not be suspended. It also names get_conversation as the source of recipientId. What's missing is an explicit statement of when to choose this over a public post or group message tool.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.