Skip to main content
Glama

Pinpal Receipts

Delete a comment

delete_comment
DestructiveIdempotent

Delete one comment of a line's thread by its number, whoever wrote it: "delete comment 11 on #1042". It is gone for good, and its number is not used again. A status comment goes without changing the line's status; a file's comment goes and the receipt stays on the line (detach_document moves a receipt back to the Inbox). 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": {
      "comment": "<comment>"
    },
    "name": "delete_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineNoThe line's ID, like #1042 (list_lines and read_line show it): names the line alone, instead of month and number.
monthNoThe month as YYYY-MM, like 2026-09; with number, or give line instead.
numberNoThe line's number in the month, like 12; with month, or give line instead.
commentYesThe comment's number in the line's thread, like 11 (`number` in list_comments).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true), the description discloses that deletion is permanent, that the comment number is never reused, that status comments are removed without changing line status, and that file-comment receipts remain on the line. Those are real consequences an agent could not infer from the structured fields.

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 the action and an example, then the consequences and the safety constraint. The detach_document parenthetical is a slight digression but is short and relevant; no sentence is filler.

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?

Annotations cover safety and idempotency, the schema fully documents the four parameters, and the description adds permanence, numbering, and edge-case behavior for status and file comments. Nothing material is missing for correct invocation.

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 baseline is 3; the description adds a worked example tying the comment number to a line reference ('comment 11 on #1042'), which clarifies how the required comment parameter pairs with the line/month+number alternates. It does not explain the line-vs-month/number exclusivity, which remains schema-only.

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?

The description states a specific verb and resource with scope: 'Delete one comment of a line's thread by its number, whoever wrote it,' and gives a concrete invocation example ('delete comment 11 on #1042'). This makes it immediately distinguishable from add_comment, list_comments, and the delete_* siblings.

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?

It supplies a behavioral guardrail ('Delete only what the person asked you to') and points to detach_document for the receipt-recovery case in the file-comment scenario. It never explicitly says when not to use it (e.g., to edit or retract a status change), so usage signals are clear but not exhaustive.

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