Skip to main content
Glama

update_comment

Replaces the body of an existing comment you own in Docmost so you can correct or revise its 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. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

The only annotation is destructiveHint=false, so the description carries most of the behavioral burden and does add real content: 'Replace' signals a full-body overwrite rather than a partial patch, and the ownership restriction discloses an authorization constraint that annotations do not. It does not say whether prior revisions are retained or what happens on a non-owned comment_id, but the disclosure noticeably exceeds what the annotation provides.

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?

Two short sentences, purpose front-loaded with the permission constraint following. No filler, though the brevity is close to under-specification rather than economy given the 0% parameter coverage.

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

Completeness3/5

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

For a two-parameter mutation with no output schema, the definition covers what it does and who may do it, which is the minimum viable set. It leaves open the return value (updated comment object?), error behavior for malformed or foreign comment_id, and whether changing the body affects any stored history.

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 must compensate and it does not — neither comment_id nor markdown is mentioned. The parameter names are largely self-explanatory and markdown's minLength:1 is visible in the schema, but nothing explains that comment_id must be an existing comment's UUID or what markdown formatting the body accepts.

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: 'Replace a comment body.' Combined with the tool name and the sibling set (create_comment, delete_comment, get_comments), an agent can infer this is the mutation path for an existing comment. It stops short of naming or contrasting any sibling 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' functions as an implicit precondition/exclusion (not other users' comments), which is genuine usage signal. However, there is no guidance on when to use this versus delete_comment plus create_comment, and no statement of what failure looks like if the comment is not owned by the caller.

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