Skip to main content
Glama

Reply to a comment thread

reply_comment

Add a reply to an inline comment thread using its thread ID; the connected user authors it. Use it to respond to page comments and return the new comment.

Instructions

Adds a reply to an inline comment thread (a thread id from list_comments). The reply is authored by the connected user. Requires a write-scoped token and a signed-in account that can read the page. Not available on a public site. Returns the new comment.

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": {
      "threadId": "<threadId>",
      "body": "<body>"
    },
    "name": "reply_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe reply, plain text (@username mentions are kept as written)
threadIdYesComment thread id, from list_comments

Output Schema

NameRequiredDescriptionDefault
commentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare write semantics (readOnlyHint=false, destructiveHint=false, non-idempotent), so the bar is lower, yet the description adds real context: authorization requirements (write-scoped token, signed-in account able to read the page), authorship attribution to the connected user, and a site-type restriction. It does not cover failure modes or mention behavior, which keeps it below a 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?

Four short sentences, front-loaded with the action and then preconditions; nothing is wasted. There is minor duplication of schema-documented facts (thread id source), preventing a 5.

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 two-parameter mutation, the description covers auth preconditions, site restrictions, authorship, and return value, and an output schema exists so return shape need not be explained. Only edge-case behavior (e.g., locked or deleted threads) is unaddressed.

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 both parameters are already documented; the description only repeats that threadId comes from list_comments. It adds no format, length, or content guidance beyond the schema's maxLength and plain-text note, so baseline 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 ("Adds a reply to an inline comment thread") and scopes it to threaded replies, which distinguishes it from a top-level add_comment. The parenthetical pointing to list_comments makes the target object unambiguous.

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 a clear positive condition (thread id obtained from list_comments) and a negative one ("Not available on a public site"), plus the account requirement. It stops short of naming an alternative tool for new threads versus replies, so it is clear context rather than full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.