Skip to main content
Glama

Answer one Instagram direct message

reply_to_message

Use this when the person wants to answer an Instagram direct message. Sends one direct message to a person who wrote to the account within the last 24 hours (Instagram's rule; checked first, nothing is sent otherwise). recipientId is the participantId from list_messages. It goes to a real person under the person's name, so it needs an autopilot credential, counts against the profile's daily ceiling of answers and is in the journal under this credential; a review-mode credential reads and a person answers. Requires posts:write and posts:publish.

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": {
      "recipientId": "<recipientId>",
      "text": "<text>"
    },
    "name": "reply_to_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesUp to 1,000 bytes of UTF-8 as Instagram counts it (about 500 Cyrillic characters).
accountNo
recipientIdYesparticipantId from list_messages.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / text / description
      Previous value: -"Up to 1,000 characters."New value: +"Up to 1,000 bytes of UTF-8 as Instagram counts it (about 500 Cyrillic characters)."
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: the 24-hour Instagram window is checked first and nothing is sent otherwise, an autopilot credential is required, the send counts against a daily ceiling, the action is journaled, and required scopes (posts:write, posts:publish) are named. This is exactly the operational context annotations cannot express.

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?

Front-loads the when-to-use clause, then layers constraints in a compact sequence with no filler. It is dense but nearly every clause carries new information; only the recipientId restatement is redundant with the schema.

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 non-idempotent, open-world mutation with no output schema, the definition covers eligibility, auth, rate limits, logging and scopes. It stops short of describing failure behavior or what a successful send returns, and the 'account' parameter remains undocumented, leaving minor gaps.

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 67% and both documented parameters already carry their own descriptions; the description's note that recipientId is the participantId from list_messages repeats the schema. The third parameter, 'account', is left unexplained in both schema and description, so no meaning is added beyond structured data.

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 concrete verb and resource ('Sends one direct message to a person who wrote to the account'), which is clearly distinct from siblings like reply_to_comment and list_messages. The scope limit (one message, one recipient) is unambiguous.

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?

Opens with an explicit trigger ('Use this when the person wants to answer an Instagram direct message') and routes the agent to list_messages for the recipientId. It also notes the review-mode path where a person answers instead, but it does not explicitly contrast with reply_to_comment, which an agent could plausibly confuse with this 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.