Skip to main content
Glama

Send DM

send_dm
Destructive

Sends a text message in an existing DM conversation, as the brand, to the conversation's contact. Meta only delivers it within 24 hours of the contact's last message; outside that window the platform refuses and the error says why. Replies after 24 hours (up to 7 days) can only be sent by a person from the replient.ai inbox. The text can be written freely or come from an AI suggestion (get_conversation with include=suggestions), as is or edited. Messages sent through the API or MCP never become training data for the brand voice; only messages a person approves inside replient.ai do. Logged in the conversation's activity protocol with this app as its origin; the conversation is marked done if the brand does that after replies. Sending the same text to the same conversation again within 10 minutes is refused. Text only. May first return a confirmation summary and token instead of acting.

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": {
      "brand": "<brand>",
      "conversationId": "<conversationId>",
      "text": "<text>"
    },
    "name": "send_dm"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe message. Plain text; platform limits apply.
brandYes
conversationIdYesConversation id, a numeric string as returned by the list operations.
confirmationTokenNo
basedOnSuggestionIndexNoIndex of the AI suggestion this message is based on (get_conversation with include=suggestions), for the activity protocol.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the 24-hour delivery window and that the error explains refusals, the 10-minute duplicate-text refusal (concrete grounding for idempotentHint=false), text-only payloads, activity-protocol logging with app origin, and a possible two-step confirmation-token flow. It also discloses a policy consequence (API/MCP messages are not used for brand-voice training) that an agent cannot infer from any structured field.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and no sentence is pure filler, but the body is a dense semicolon-chained run-on (e.g., the activity-protocol and conversation-marked-done clause) that is harder to scan than it needs to be. The training-data sentence is useful but competes with the operational constraints for attention.

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 destructive, non-idempotent, open-world send tool with no output schema, the description covers the constraints an agent needs: timing window, duplicate suppression, content type, the confirmation-token return path, and the human-only fallback. Nothing material is left for the agent to guess before calling.

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 60%, and the description compensates for most of the gap: it explains that text may be free-form or drawn from an AI suggestion via get_conversation with include=suggestions, which gives meaning to basedOnSuggestionIndex, and it explains the confirmationToken via the confirmation-summary flow. brand is left unexplained, and maxLength/plain-text constraints are only in the schema.

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?

Opens with a specific verb and resource: "Sends a text message in an existing DM conversation, as the brand, to the conversation's contact." The DM scoping plus the actor (brand) and recipient (the conversation's contact) distinguish it clearly from comment/private-reply siblings without needing to name them.

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?

Gives an explicit when-can/when-cannot rule: delivery only within 24 hours of the contact's last message, and outside that window the platform refuses. It also states the fallback path (a person replying from the replient.ai inbox for 24h–7d), which is actionable routing guidance. It stops short of naming sibling tools such as send_private_reply as alternatives, so not a 5.

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.

Resources