Skip to main content
Glama

Reply to a comment or message

reply_to_comment
Destructive

Posts a reply to an inbox conversation (a post comment thread or DM). Find the conversation_id with list_inbox_conversations. Instagram and Facebook DMs only work inside Meta's 7-day messaging window — replies to older DM threads are rejected. Comment threads and YouTube video comments have no window. Instagram DMs can also carry up to ten images or one PDF. Also works for Bluesky and Mastodon replies and mentions (a reply to a private Mastodon mention stays private), Telegram channel comments, and Google Business reviews (one owner reply per review; replying again replaces it).

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": {
      "conversation_id": "<conversation_id>"
    },
    "name": "reply_to_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoThe reply text. Required unless attachments are given. Keep it under 1000 bytes when sending attachments.
attachmentsNoInstagram DMs only. Up to ten images, or a single PDF on its own. They're sent first, as their own message, and the text follows. Each item needs a type and exactly one of url or attachment_id.
workspace_idNoOptional. Auto-resolved from the conversation when omitted; pass it if you already have it to skip the extra lookup.
conversation_idYesThe id returned by list_inbox_conversations for the thread to reply to.
idempotency_keyNoOptional client-generated key (e.g., a UUID) to make retries safe. Identical calls with the same key within 10 minutes return the original result instead of running the write twice.
reply_to_message_idNoOptional, Instagram and Facebook DMs only. The id of a message in this conversation (from get_conversation_messages) to reply to; the reply shows it as a quote. If Meta refuses the quote, the reply is sent without it and the result has a notice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / reply_to_message_id
      Added value: +{
      +  "description": "Optional, Instagram and Facebook DMs only. The id of a message in this conversation (from get_conversation_messages) to reply to; the reply shows it as a quote. If Meta refuses the quote, the reply is sent without it and the result has a notice.",
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / attachments
      Added value: +{
      +  "description": "Instagram DMs only. Up to ten images, or a single PDF on its own. They're sent first, as their own message, and the text follows. Each item needs a type and exactly one of url or attachment_id.",
      +  "items": {
      +    "properties": {
      +      "attachment_id": {
      +        "description": "A Meta attachment id. Images only.",
      +        "type": "string"
      +      },
      +      "title": {
      +        "description": "Display name shown in the inbox.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "enum": [
      +          "image",
      +          "file"
      +        ],
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "Public https URL Meta can fetch. Images: PNG, JPEG or GIF up to 8 MB. Files: PDF up to 25 MB.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / body / description
      Previous value: -"The reply text. Must be non-empty."New value: +"The reply text. Required unless attachments are given. Keep it under 1000 bytes when sending attachments."
    • changedInput schema / required
      Previous value: -[
      -  "conversation_id",
      -  "body"
      -]New value: +[
      +  "conversation_id"
      +]
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare this as a non-read-only, destructive, open-world write, and the description adds real substance on top: hard platform rejection windows, attachment ordering (attachments sent first as their own message, text follows), and overwrite semantics for Google Business reviews. It also discloses a silent fallback for reply_to_message_id quotes ('sent without it and the result has a notice'). It stops short of saying what the successful response contains or what auth/scopes are needed, which keeps it at 4 rather than 5.

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 core action in the first sentence and keeps the prerequisite lookup guidance early, with platform caveats following. The trailing enumeration of Bluesky, Mastodon, Telegram, and Google Business is dense and list-like, but each clause carries a distinct rule rather than filler.

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 destructive, open-world write with no output schema, the definition covers the things an agent most needs: how to obtain the required id, which calls will be rejected, how attachments behave, and how idempotency and quote fallback work. What's missing is the shape of a successful result and any permission requirements, which matters for a mutation tool but is a modest gap given the rest.

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 description coverage is 100%, so all six parameters are already documented with body/attachment limits, idempotency semantics, and the optional workspace_id shortcut. The description mostly restates structured data (ten images or one PDF, conversation_id source) rather than adding new meaning, so the baseline of 3 applies.

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 and resource ('Posts a reply to an inbox conversation') and immediately scopes it to post comment threads and DMs, then enumerates the platform surfaces it covers (Instagram, Facebook, Bluesky, Mastodon, Telegram channel comments, Google Business reviews). An agent can distinguish it from list_inbox_conversations, which the description explicitly positions as the lookup step rather than the writer.

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 a concrete prerequisite ('Find the conversation_id with list_inbox_conversations') and explicit when-not conditions: DMs older than Meta's 7-day window are rejected, while comment threads and YouTube comments have no window. It also flags a platform-specific replacement rule (one owner reply per Google Business review, replying again replaces it), so the agent knows both eligibility and side effects before calling.

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.