Skip to main content
Glama

Rank open comments by importance

triage_open_comments
Read-onlyIdempotent

Ranks ALL open social media comments of a brand in replient.ai by importance and returns the most important ones first, with a score and the reasons for it. It answers "what should I handle first?" and "all open comments by importance". Scoring is fixed and transparent: negative sentiment and questions first, then tags that signal intent or risk (complaint, against the brand, buying interest, pricing, shipping, return, question), unread and unanswered, waiting time (capped at 14 days so old noise does not dominate), mentions and comments on ads; spam and emoji-only tags count down. "focus" re-weights the ranking; "assignee" ranks only my ("me"), unassigned or a team member's open comments. Each reason is a code with its points. "summary" counts the whole open set. Items have the same shape as list_comments. Reading never marks comments as read. get_account lists the brands and the usage guide.

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>"
    },
    "name": "triage_open_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
brandYes
focusNo"questions": questions and question-like tags count double. "negative": negative sentiment and complaints count double. "sales": buying interest, pricing and ad comments count more, complaints less. "oldest": waiting time weighs up to 60 points over 60 days.
limitNoHow many of the highest-ranked comments to return (1-50).
assigneeNo"me": rank only the open comments assigned to the calling user ("what should I handle first?"). "unassigned": only those assigned to nobody. Or a team member's user id or name.
includeSuggestionsNoAdds the AI reply suggestions of the returned comments.

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?

Beyond the readOnly/idempotent annotations it discloses a genuinely useful behavioral fact: 'Reading never marks comments as read.' It also exposes the full scoring model (sentiment and questions first, intent/risk tags, unread/unanswered, waiting time capped at 14 days, spam and emoji-only counting down), so the agent can predict and explain the ordering.

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 the core action and the ordering guarantee, then the scoring model, then parameter notes — a sensible order. The dual quoted-intent clause ('what should I handle first?' and 'all open comments by importance') is slightly redundant, and the long tag enumeration makes it dense, but nothing is materially wasteful.

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 carries the return burden and does so: items come back in an importance ordering with a score, per-item reason codes and their points, a 'summary' count over the whole open set, and a pointer that item shape matches list_comments. That is enough for an agent to call and interpret results without guessing.

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?

Schema coverage is 80%, yet the description still adds meaning: 'focus' is described as a re-weighting of the ranking, 'assignee' as 'me'/unassigned/team member scoping, and the ranking guarantee implies how 'limit' selects the top N. It does not restate defaults or bounds, which the schema already carries.

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?

Names a specific verb and resource ('Ranks ALL open social media comments of a brand ... by importance') plus the ordering guarantee ('returns the most important ones first'), and frames the use case as 'what should I handle first?'. That scope ('ALL open comments', ranked) distinguishes it from an unranked listing tool.

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 clear context for when to reach for it (prioritization of the open queue) and explains how 'focus' and 'assignee' change the selection ('me' ranks only the caller's assigned comments). It points to get_account for brand/usage context but never states an explicit when-not or names a sibling to use instead for plain listing.

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