Skip to main content
Glama

Update a Docmost comment

update_comment
DestructiveIdempotent

Edits the text of your own Docmost comment or resolves and reopens a comment thread by its top comment ID, letting you correct feedback or close discussions from the assistant.

Instructions

Replaces the text of one of this account's own comments, or resolves or reopens a thread by its top comment's id, which Docmost before 0.98 allows only with an Enterprise licence.

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

Input Schema

NameRequiredDescriptionDefault
textNoPlain-text comment; blank lines start new paragraphs, and @[Full Name] mentions a member, which notifies them.
resolvedNotrue resolves the thread and false reopens it.
commentIdYesComment id from list_comments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false; the description adds two things they cannot: the ownership restriction and the Enterprise-licence gate on resolve/reopen. It does not mention side effects of changing text (mention notifications are only in the schema) or what happens to thread state on resolve.

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?

A single front-loaded sentence that puts the primary action first and the licensing caveat last, with no filler. The clause about Docmost pre-0.98 is slightly tangled to parse but earns its place by preventing a failed call.

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 three-parameter destructive mutation with a fully described schema and no output schema, the description covers ownership scope and the licence gate well. It leaves open whether replacing text notifies mentioned members and whether resolving requires or clears text.

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 text, resolved and commentId are already documented, and the description largely restates them. Its one genuine addition is that resolving targets the thread's *top* comment id, which clarifies which id to pass in thread mode. Baseline 3 is appropriate given the schema does the heavy lifting.

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?

The description states two specific verbs and their resources: 'Replaces the text' of a comment and 'resolves or reopens a thread by its top comment's id'. The ownership qualifier ('this account's own comments') cleanly separates it from create_comment and delete_comment, though no sibling is named explicitly to route on.

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 gives a real precondition ('one of this account's own comments') and a licence constraint for the resolve path before Docmost 0.98, which tells an agent when the call will fail. It stops short of naming an alternative for editing others' comments or for changing page text (e.g. update_page, replace_page_text).

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