Skip to main content
Glama

Send a direct message

send_social_dm
Destructive

Send a DM (Instagram Direct or Messenger) to someone who messaged the account in the last 24 hours. recipient_id is their id from the message event (relayed to the webhook destination).

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": {
      "account_id": "<account_id>",
      "recipient_id": "<recipient_id>",
      "text": "<text>"
    },
    "name": "send_social_dm"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
account_idYesFrom list_social_accounts
recipient_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, non-idempotent, so the risk profile is covered structurally. The description adds the platform policy constraint (24h reply window) and the origin of recipient_id, which is genuine context beyond annotations, but it says nothing about what happens on failure, rate limits, or whether the webhook destination must be configured first.

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?

Two compact sentences with the channel and the 24-hour constraint front-loaded before the parameter note. No filler, though the second sentence could be tightened into a clearer parameter clarification.

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 three-parameter mutation with no output schema, the definition covers purpose, eligibility window, and recipient_id sourcing reasonably well. It falls short on failure modes and the implicit prerequisite that a webhook destination must be set for recipient_id to be obtainable.

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 only 33% — only account_id carries a description — so the description has to compensate, and it does for recipient_id by explaining it comes from the message event relayed to the webhook destination. text is left entirely unelaborated and the webhook dependency implied for recipient_id is not made an explicit precondition.

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 DM) plus the concrete channel scope (Instagram Direct or Messenger) and the eligibility constraint on the recipient. It is clearer than the bare name, though it never contrasts itself with the sibling send_message or send_template, leaving the agent to infer the boundary.

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

Usage Guidelines3/5

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

The 24-hour messaging window is stated as a hard precondition, and recipient_id provenance is spelled out, which is real usage guidance. However, nothing tells the agent what to do when the recipient is outside that window (e.g., use send_template instead) or when this should be preferred over send_message.

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