Skip to main content
Glama

update_comment

Replace the body of your own Docmost comment with new Markdown content by specifying the comment ID and text.

Instructions

Replace a comment body. You can update your own comments.

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_id": "<comment_id>",
      "markdown": "<markdown>"
    },
    "name": "update_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
markdownYes
comment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.1
    • addedInput schema / properties / comment_id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
  2. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

The annotations only declare destructiveHint=false, so the description must carry the rest. It does add two meaningful facts: the body is replaced rather than appended, and only the caller's own comments may be edited. It does not say whether edit history is preserved, whether notifications fire, or what a failure looks like, which leaves the mutation's side effects underspecified.

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?

Two short sentences with the operation front-loaded and the permission constraint second. No filler and nothing redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a write tool with no output schema and only a single annotation, the definition is thin. It omits what the response contains, whether prior text is recoverable, and any error conditions, leaving the agent to discover these at call time.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description is the only source of parameter meaning. "Replace a comment body" vaguely implies markdown is the new content, but nothing explains that comment_id must reference an existing comment the caller owns, or that markdown is a full replacement of the previous body rather than a patch.

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?

Uses a specific verb and resource: "Replace a comment body" clearly states the operation on a comment. It implicitly distinguishes itself from create_comment and delete_comment in the sibling list, though it does not name them explicitly.

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?

"You can update your own comments" gives a real eligibility constraint, which is useful for deciding whether the call will succeed. However, there is no guidance on when to prefer this over creating a new comment, and no mention of alternatives or prerequisites such as the comment needing to exist.

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