Skip to main content
Glama

Edit a review comment

edit_comment
DestructiveIdempotent

Rewrite your own or the user's comment—thread body, suggestion, or a specific reply—to correct or update wording. Use a reply tool to respond to someone else's words instead.

Instructions

Rewrite a comment you wrote, or one the user wrote: the thread's body or suggestion (suggestion:null drops it), or with reply_index (0-based, as list_comments orders them) one reply's body. Someone else's words are never yours to change: answer them with reply_comment. Shows as edited. Changes no file.

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": {
      "comment_id": "<comment_id>"
    },
    "name": "edit_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoThe new text.
projectNoProject id. Optional when the access token is scoped to exactly one project.
comment_idYesThe thread, as list_comments names it.
suggestionNoThe new suggested replacement for the quoted passage; null removes it. Threads only.
reply_indexNoEdit this reply instead of the thread itself.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.22.0

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations (destructive/idempotent/non-read-only), the description discloses what actually changes: the displayed edited state, that suggestion:null drops the suggestion (a destructive sub-behavior), and that no file is modified despite the destructive hint. It does not discuss permissions/scopes or whether the prior text is recoverable, which is the remaining gap for a destructive mutation.

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?

Three tight sentences, front-loaded with the mutation target and then the exclusion rule; every clause carries information (mode selection, null semantics, ordering source, side effects). The terseness borders on cryptic in places ('Someone else's words are never yours to change'), but nothing is wasted.

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 five-parameter mutation with no output schema, the definition covers the three edit modes, ordering semantics, the null-drops-suggestion behavior, the visible edited marker, and the non-file-changing scope. Only the project parameter and any permission implications are left entirely to the schema and annotations.

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 100%, so baseline is 3; the description goes further by tying reply_index to the 0-based ordering used by list_comments and by spelling out that suggestion:null removes the suggestion. The body and project parameters get no added meaning, but those are largely self-evident from the schema.

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 (Rewrite) and resource (a comment), then enumerates the exact targets: thread body, thread suggestion, or a single reply via reply_index. It explicitly contrasts with the sibling reply_comment, so an agent can choose between them without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-to-use rule and the alternative: comments you or the user wrote are editable, someone else's must be answered with reply_comment. The reply_index clause also tells the agent which mode to select for editing a reply versus the thread itself.

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