Skip to main content
Glama

Apply an action to comments

apply_comment_actions
Destructive

Applies one action to the listed comments and reports the outcome per comment. Changes inside replient.ai (mark_done, mark_open, mark_read, mark_unread, add_tags, remove_tags, set_sentiment) take up to 100 ids and run in parallel. Team actions work as in the inbox: assign (up to 50 ids, to "me" or a team member who can open comments; the assignee is notified in replient.ai and by email unless they are the caller; skipped where already assigned to them), unassign, and add_note (one comment, a note the whole team sees; mentioned team members are notified). like, unlike, hide and unhide reach the social platform: up to 50 ids, one at a time, and the rest is skipped when the platform asks to slow down. A platform action on more than one comment, and every delete or block_author, needs a confirmation. Comments the action does not fit (for example blocking on Instagram, hiding a mention, tags on the brand's own replies) are skipped with the reason. Repeating an action that is already in effect changes nothing. Only tags the brand has set up are accepted (the error lists them). Each comment costs one rate-limit point. 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>",
      "ids": "<ids>",
      "action": "<action>"
    },
    "name": "apply_comment_actions"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesComment ids from list_comments; a single comment is [id]. Up to 100, 50 for actions that reach the platform and for assign and unassign, one for add_note.
brandYes
actionYesIn replient.ai: mark_done, mark_open, mark_read, mark_unread, add_tags, remove_tags, set_sentiment. Team: assign (params.userId; notifies the assignee, also by email, unless they are the caller), unassign, add_note (params.text and optional params.mentionUserIds; one comment; mentioned people are notified). On the platform: like, unlike, hide, unhide (hidden comments stay visible to their author and friends), delete (for everyone, cannot be undone), block_author (blocks the comment author from the page and moves their comments to done).
paramsNo
confirmationTokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations (destructive, openWorld, non-idempotent) by disclosing parallel execution, per-comment rate-limit cost, platform throttling behavior, skip-with-reason semantics for inapplicable actions, tag validation with an error that lists valid tags, and the two-phase confirmation-summary-and-token flow. That confirmation flow is critical and appears nowhere in the annotations.

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-loaded with purpose, then organized by action family, with no filler sentences. It is a dense single paragraph with repeated notification details (assign and add_note both spell out email/in-app notification), which costs some scannability but each clause carries operational meaning.

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 16-action, 5-parameter, nested-object mutation tool with no output schema, the description covers return behavior (per-comment outcome, possible confirmation summary), limits, skips, idempotency-like repeats, and cost. An agent has everything needed to call it correctly and interpret the two possible response shapes.

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?

With only 40% schema description coverage, the description compensates by explaining which actions consume `params.userId`, `params.text`, `params.mentionUserIds`, and `params.tags`, plus what `confirmationToken` is for (a returned summary/token instead of acting). Some of this restates the schema's own action/ids text, so it is strong rather than purely additive.

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+resource+scope: "Applies one action to the listed comments and reports the outcome per comment," then enumerates every action grouped by surface (in-app, team, platform). An agent can immediately tell this batch-mutates comments rather than conversations or messages, so the sibling boundary is clear from the resource noun.

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 detailed per-action conditions: id caps (100 in-app, 50 for platform/assign/unassign, one for add_note), who gets notified, what is skipped and why, and that multi-comment platform actions and all deletes/block_author require confirmation. It stops short of naming an alternative tool for a different resource type, so it is clear context without explicit routing.

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