Skip to main content
Glama

Create a Docmost comment

create_comment

Posts a comment on a Docmost page, attached to quoted text or as a thread reply, and notifies mentioned members.

Instructions

Posts a comment on a page, attached to a quoted piece of text when quote is given, or a reply in a comment's thread when parentCommentId is given, and notifies the people it mentions.

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": {
      "pageId": "<pageId>",
      "text": "<text>"
    },
    "name": "create_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesPlain-text comment; blank lines start new paragraphs, and @[Full Name] mentions a member, which notifies them.
quoteNoExact text to attach the comment to, copied from get_page; must appear once inside one paragraph or heading.
pageIdYesPage id, slug id, or the full page URL copied from the browser.
parentCommentIdNoReply in this comment's thread; a reply's id posts under the thread's top comment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare this is a non-readonly, open-world, non-idempotent but non-destructive write. The description adds the material side effect that is not in the annotations: mentioned members (@[Full Name]) get notified, and that quoting attaches the comment to specific text. It omits permission requirements and whether duplicate identical posts are allowed.

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 states the action and then enumerates both conditional modes with no filler. It is dense but readable; splitting into two sentences (action, then modes/side effects) would improve scannability slightly.

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?

With 4 parameters, full schema coverage, and annotations present, the description covers purpose, modes, and the notification side effect adequately. The notable gap is that no output schema exists and the description never says what is returned — an agent replying in a thread or later editing the comment would benefit from knowing a comment id comes back.

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 description coverage is 100%, so the parameters are already fully documented, including the quote-exactness constraint and the parentCommentId threading rule. The description restates the same semantics at a higher level (mention notifications, quote attachment, threaded reply) without adding syntax or edge-case detail beyond the schema, 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?

The description gives a specific verb and resource ("Posts a comment on a page") and clarifies the two posting modes: quote-anchored and thread reply. It implicitly separates itself from update_comment/delete_comment through the verb, but never names a sibling or states its distinct role in the comment lifecycle.

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?

Conditional phrasing ("when quote is given", "when parentCommentId is given") tells the agent how the two modes are selected, which is useful implied guidance. However, there is no explicit when-to-use/when-not framing and no routing to siblings (e.g., where to obtain a parentCommentId or the quoted text), so usage remains inferred.

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