Skip to main content
Glama

edit_comment

Update a comment's text, project, source, or location while leaving its status unchanged; only fields you provide are modified. Change status with mark_fixed.

Instructions

Edit a comment's text, project, source or location (only the fields you pass change). Doesn't change its state: use mark_fixed for that.

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

Input Schema

NameRequiredDescriptionDefault
idYesThe comment number, as shown: 12.
bodyNo
sourceNo
projectNoMove it to this project (id or name).
locationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the most important trait: this is a partial update where 'only the fields you pass change', so unspecified fields are preserved. It does not say whether edits are reversible, who may edit a comment, or what happens on an invalid id, which are meaningful gaps for an unannotated mutation tool.

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

Conciseness5/5

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

Two tight sentences: the capability and its partial-update semantics come first, and the exclusion with its alternative comes second. Every clause carries information an agent needs.

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 5-parameter mutation tool with no annotations and no output schema, the definition covers the essentials: what is editable, that unspecified fields are left untouched, and which sibling handles state. Missing are permission/error behavior and the meaning of source and location, but nothing needed to select the tool is absent.

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 only 40%, so the description must compensate, and it partially does by naming the four mutable fields and their intent. However, it does not clarify that 'text' corresponds to the 'body' parameter, nor what 'source' or 'location' mean or accept, leaving real ambiguity for two parameters.

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 (edit) and resource (comment) and enumerates the exact editable fields: text, project, source, location. It also explicitly separates itself from the sibling that handles state changes (mark_fixed), so an agent can distinguish the two 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 Guidelines4/5

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

Gives an explicit exclusion plus the alternative to use instead: state changes belong to mark_fixed. It does not address other plausible operations (deleting, adding a reply) or note prerequisites such as needing the comment id from list_comments, but the one routing rule it gives is unambiguous.

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