Skip to main content
Glama

Explain how a comment was handled

explain_comment_handling
Read-onlyIdempotent

Answers "why was this comment handled like that?": the sentiment and tags it got (and who changed them), which automations or bulk actions ran on it and what they did, the AI suggestions and which one was sent, whether a suggestion was edited before sending (original and sent text), who sent each reply and through which app, which of the brand's past replies and knowledge pages the AI used as examples, and the brand settings that shape the AI now (custom instructions, follow-up questions, AI notice). Past replies, knowledge pages, automation names and brand settings are only included when the credential has settings:read and the user may manage the brand's learning; "omitted" says what was left out. "changeableVia" names the setting areas that would change this behaviour in future. Accepts brand + commentId, or a comment link copied from replient.ai.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "explain_comment_handling"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoA comment link copied from replient.ai, e.g. https://app.replient.ai/example-brand/comments?commentId=123. Alternative to brand + commentId.
brandNoBrand slug or id. Optional when "url" is given: the link names the brand.
commentIdNoComment id, a numeric string as returned by the list operations.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, the description discloses real behavioral constraints: past replies, knowledge pages, automation names and brand settings are returned only when the credential has settings:read and the user may manage the brand's learning, with an 'omitted' field reporting what was withheld. It also documents the 'changeableVia' field that names setting areas affecting future behavior, which is exactly the kind of partial-result and permission semantics an agent needs for a diagnostic read.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, which is good, but the first sentence is a single sprawling enumeration of six-plus return facets that is hard to parse as prose. The permission and 'omitted'/'changeableVia' sentences are efficient and earn their place; the main return list would benefit from being broken up or restructured.

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?

With no output schema, the description must carry the return-value burden, and it does so thoroughly: it names every data category returned plus the 'omitted' and 'changeableVia' fields and the permission conditions under which data is dropped. The only gap is behavior when none of the three optional inputs is supplied.

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 brand, commentId and url are already documented, including that url is an alternative to brand + commentId. The description only restates the two input modes ('brand + commentId, or a comment link copied from replient.ai') without adding format or precedence detail, so the baseline 3 applies; notably it does not say what happens when all three optional parameters are omitted.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description frames a specific diagnostic verb ('explain why this comment was handled like that') and then enumerates exactly what facets are explained: sentiment/tags and their changers, automations and bulk actions, AI suggestions and edits, senders and apps, exemplar past replies/knowledge pages, and brand AI settings. That enumeration distinguishes it from a plain fetch like get_comment, but no sibling is named, so an agent must infer the boundary itself.

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?

The opening question gives a clear usage context: use this when auditing or justifying how a specific comment was processed. There are no explicit exclusions or named alternatives (e.g., get_comment, get_comment_analytics), so the agent gets context but no routing rules.

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