Skip to main content
Glama

file_comment_delete

Delete a file comment by its ID, removing your own comments or, for administrators, any comment on tenant files. Requires comments:rw API permission.

Instructions

Delete a comment by its id: your own, or - for an administrator - any on the tenant's files. Needs the API key's comments:rw.

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

Input Schema

NameRequiredDescriptionDefault
idYesthe comment's id (from file_comments)

Output Schema

NameRequiredDescriptionDefault
resultYesthe operation's JSON answer - the body its REST twin under /api/ai answers (an object)
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 behavioral burden and does disclose the most important traits: the required 'comments:rw' API key scope and the authorization boundary between deleting your own comment versus any comment on the tenant's files. It does not say whether deletion is irreversible, what happens for an unknown or already-deleted id, or whether foreign-key side effects occur.

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?

One tight sentence with the action front-loaded and no filler. The parenthetical aside about administrator scope is slightly awkward but earns its place by conveying an authorization nuance.

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 single-parameter destructive tool, the description covers action, authorization scope, and the required API key permission, and an output schema exists so return values need not be explained. The main missing element is a statement of irreversibility, which matters more here because no annotations supply destructiveHint.

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?

There is a single parameter at 100% schema coverage, and the schema already documents it as 'the comment's id (from file_comments)'. The description repeats 'by its id' without adding format, validity, or lookup guidance beyond what the schema already states, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 comment by its id') and adds an authorization scope: your own comments, or any on the tenant's files if you are an administrator. The operation is unambiguous, but the description never names the sibling it pairs with (file_comment_add) or any related tool by name, relying instead on the tool name for differentiation.

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 clear contextual guidance about who may delete what (owner vs administrator scope) and states the prerequisite API key scope needed to call it. It stops short of explicit when-not-to-use conditions (e.g., that deletion is permanent and there is no undo path), leaving a small gap.

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