Skip to main content
Glama

Delete a comment

delete_comment
DestructiveIdempotent

Delete one line of a ticket's thread by its number, whoever wrote it: "delete comment 11 on ticket 31". It is gone for good, and its number is not used again. A status line goes without changing the ticket's status; a file's line takes the file with it. Only the project's owner can; in a project shared with the person it is refused. Delete only what the person asked you to.

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": {
      "project": "<project>",
      "number": "<number>",
      "comment": "<comment>"
    },
    "name": "delete_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
numberYesThe ticket's number in this project, like 12.
commentYesThe line's number in the ticket's thread, like 11 (`number` in list_comments).
projectYesThe project: its id, or its exact name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description builds on that with real consequences: the deletion is permanent, the number is never reused, deleting a file's line removes the file itself, and a status line goes without altering the ticket status. It also discloses the authorization rule (project owner only, refused in a project shared with the person), which no annotation conveys.

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?

Front-loaded with purpose and example, and every clause after it carries distinct information (permanence, side effects, permissions, scope caution). The semicolon-chained sentences ("Only the project's owner can; ...") read telegraphically and could be split for clarity.

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 destructive three-parameter tool with no output schema, the definition covers permanence, cascading effects, and permissions. Minor gaps remain: it does not say what error/response the caller sees when refused, nor whether other lines are renumbered after removal.

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 the schema documents all three parameters; the description goes slightly further by tying `comment` to the thread line number and showing `number`/`comment` paired in a concrete example. It does not add new constraints beyond that, so it sits just above the baseline.

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 with scope: "Delete one line of a ticket's thread by its number". The worked example ("delete comment 11 on ticket 31") and the phrase "whoever wrote it" distinguish it from delete_ticket and make clear any author's comment qualifies.

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

Usage Guidelines3/5

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

Usage is implied rather than routed: it says which kinds of thread lines can be deleted (status lines, file lines) and adds the caution "Delete only what the person asked you to", but it never names a sibling such as list_comments to obtain the line number or contrasts deleting a comment with deleting a whole ticket.

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