Skip to main content
Glama

Reply to a comment

reply_to_comment
Destructive

Posts a public text reply to a synchronized comment as the account that received it, using commentId, platform, and accountId from list_comments. Instagram, YouTube, and Facebook keep replies one level deep, so a reply to a reply is attached to the thread's top-level comment; parentCommentId in the result shows where the reply went. Facebook replies are posted as the Page, and TikTok replies need an account connected through TikTok for Business. On X, a reply that contains a link uses 20 of the organization's credits and other replies are free; without enough credits the call fails with INSUFFICIENT_CREDITS and the reply isn't sent, and the credits are refunded if the reply fails. Posteady also adds the reply to the comment list, so the thread shows as replied before the next sync. A PLATFORM_ERROR result or a timeout can mean the reply was already posted; repeating the call can post it twice. The target workspace is determined automatically from accountId.

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": {
      "commentId": "<commentId>",
      "platform": "<platform>",
      "accountId": "<accountId>",
      "text": "<text>"
    },
    "name": "reply_to_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesReply text. The platform's reply length limit applies.
postIdNopostId from list_comments. Needed for LinkedIn, where the same comment ID can appear on different posts.
platformYesplatform from list_comments.
accountIdYesaccountId from list_comments: the account that received the comment.
commentIdYescommentId from list_comments.
workspaceIdNoOptional. The workspace is determined automatically from accountId; when given, it must match the account's workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing credit costs and INSUFFICIENT_CREDITS failure, credit refunds on failure, one-level-deep threading and parentCommentId in the result, Page-identity posting on Facebook, and that Posteady pre-inserts the reply into the comment list. The non-idempotency disclosure (timeout/PLATFORM_ERROR may mean the reply already posted) is consistent with idempotentHint=false and destructiveHint=true.

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 action, then layers platform quirks, billing, and retry hazards in a single dense paragraph with no filler sentences. It is long, but nearly every clause carries operational information an agent needs before calling.

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?

With no output schema, the description still tells the agent what comes back (parentCommentId) and how to interpret failures. Combined with credit economics, platform-specific requirements, and non-idempotent retry risk, an agent has what it needs to call this safely.

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 100%, so commentId, platform, accountId, text, postId, and workspaceId are already documented in the schema. The description reinforces the list_comments sourcing pattern and the auto-derived workspace, but adds no format or constraint detail beyond the structured fields (LinkedIn's postId need is already in the schema). Baseline 3 applies when the schema does the heavy lifting.

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 public text reply to a synchronized comment") plus the actor identity ("as the account that received it"). This clearly separates it from siblings like list_comments, delete_comment, and hide_comment 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?

Implicitly routes the agent through list_comments by naming the source of commentId/platform/accountId, and gives concrete preconditions for TikTok (account connected via TikTok for Business) and X credits. It lacks an explicit when-not statement, but the duplicate-post warning effectively tells the agent not to blindly retry.

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