Skip to main content
Glama

Delete a Docmost comment

delete_comment
Destructive

Permanently deletes a comment and removes its page highlight; set deleteReplies to also remove the entire thread when needed.

Instructions

Permanently deletes a comment and removes its highlight from the page, deleting a whole thread only when deleteReplies is set.

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": {
      "commentId": "<commentId>"
    },
    "name": "delete_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
commentIdYesComment id from list_comments.
deleteRepliesNoAlso delete the comment's replies, which Docmost requires for a thread's top comment; defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and openWorldHint=true, but the description adds useful specifics: the comment is permanently deleted, its highlight is removed from the page, and whole-thread deletion only happens when deleteReplies is set. It does not mention permission requirements or failure modes.

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?

The description is a single front-loaded sentence with no wasted wording. It puts the permanent deletion and page-highlight effect first, then explains the conditional thread behavior.

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 two-parameter destructive tool with full parameter schema coverage and no output schema, the description covers the key side effects and the deleteReplies condition needed to call it safely. It leaves only minor gaps around permissions and explicit alternatives.

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 in the schema, including commentId's source and deleteReplies' default and thread requirement. The description adds some outcome-oriented meaning for deleteReplies but does not add details beyond the structured fields for commentId.

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 ('Permanently deletes a comment') plus its side effect ('removes its highlight') and the conditional thread behavior. This clearly distinguishes it from edit_comment, resolve_comment, and reply_to_comment.

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?

It gives implicit guidance that this is for permanent deletion and clarifies when a whole thread is deleted via deleteReplies. However, it does not explicitly say when to use this versus edit_comment or resolve_comment, nor does it state exclusions or warnings about irreversible deletion.

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