Skip to main content
Glama

Delete a review comment

delete_comment
DestructiveIdempotent

Delete a review thread and all its replies permanently when a comment is no longer needed, with access limited to thread owners, editors, or the original author.

Instructions

Delete a whole review thread with its replies, for good. The browser's rule: the owner and collaborators with edit access may delete any thread, anyone else only one they wrote (or Claude wrote for them). Prefer resolve_comment for a thread that is settled; delete only when the user asks, or for a comment of yours that was a mistake.

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": "delete_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNoProject id. Optional when the access token is scoped to exactly one project.
comment_idYesThe thread, as list_comments names it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.22.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructive=true, but the description adds what the annotations cannot: the deletion cascades to all replies, it is permanent ("for good"), and it encodes the permission model (owner/edit-access collaborators may delete anything; others only their own threads). That is exactly the operational context needed before an irreversible write.

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 sentences, front-loaded with the action and consequence, then permissions, then the alternative. Nothing is padding, though the parenthetical "(or Claude wrote for them)" is slightly awkward phrasing for the ownership rule.

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?

For a two-parameter, destructive, no-output-schema tool, the definition supplies everything an agent needs: cascade scope, irreversibility, authorization rules, and the correct sibling alternative. No return-value explanation is required since no output schema exists.

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 coverage is 100%, so both parameters are already documented, including that comment_id is named by list_comments. The description reinforces that the id refers to a whole thread rather than a single comment, but adds no syntax or format detail beyond the schema — the baseline 3 is appropriate.

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 ("Delete a whole review thread with its replies") and immediately scopes it apart from the resolve/edit/reply siblings. An agent can tell this is thread-level deletion, not single-comment editing, without opening the 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 alternative and the condition that selects it: "Prefer resolve_comment for a thread that is settled; delete only when the user asks, or for a comment of yours that was a mistake." That covers when-not-to-use as well as the two sanctioned use cases.

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