Skip to main content
Glama

Create Comment

create-comment

Opens a new comment thread on specific text in an ODocs.co document, without changing the document text. Suited to review: flagging a problem, asking a question, or suggesting a change for a person to decide on. The comment is anchored to quote (exact text from the document, matched like replace-text; occurrence selects one match when the quote appears more than once) and is shown highlighted in the editor. Returns the new thread, including its id, as JSON, with a note (that comments are written by anyone with the link) as a second text item.

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": {
      "id": "<id>",
      "quote": "<quote>",
      "body": "<body>"
    },
    "name": "create-comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesDocument ID
bodyYesComment text
quoteYesExact text in the document to comment on, matched exactly against the current text, like replace-text.
authorNoName shown on your edits and comments (e.g. "MyAgent"), with a robot mark as an agent. Invisible and text-direction characters are removed, line breaks and control characters become spaces, and it is cut to 256 characters. A name that resembles ODocs.co or Octaria (including look-alike spellings) is shown as "Agent (Anonymous)". When any of that happens the result has a `warning` field saying what changed.
occurrenceNo0-based index of the match (the earliest match is 0); required when the quote appears more than once. It counts every match in the whole doc text, including the phrase inside longer lines; approximateLineNumber and the context in the result show which match was used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / author / description
      Previous value: -"Name shown on your edits and comments (e.g. \"Claude via Greg\"), with a robot mark as an agent. Invisible and text-direction characters are removed, line breaks and control characters become spaces, and it is cut to 256 characters. A name that resembles ODocs.co or Octaria (including look-alike spellings) is shown as \"Agent (Anonymous)\". When any of that happens the result has a `warning` field saying what changed."New value: +"Name shown on your edits and comments (e.g. \"MyAgent\"), with a robot mark as an agent. Invisible and text-direction characters are removed, line breaks and control characters become spaces, and it is cut to 256 characters. A name that resembles ODocs.co or Octaria (including look-alike spellings) is shown as \"Agent (Anonymous)\". When any of that happens the result has a `warning` field saying what changed."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare the mutation/safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true), so the description does not need to argue that. It adds real behavioral value beyond them: the document text is not modified, the comment is anchored and shown highlighted, and the call returns the new thread with its id as JSON plus a second text item noting that anyone with the link can comment.

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?

The core action and its non-destructive nature are front-loaded, and each sentence contributes either usage context, anchoring behavior, or return shape. The final sentence is long and packs return details plus the shared-link caveat, but nothing is genuinely wasted.

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?

With no output schema, the description carries the return-value burden and does so: thread object with id as JSON plus a second text item. Anchoring semantics, review use case, and the no-text-change guarantee are all covered for a five-parameter, moderate-complexity tool; only explicit routing away from reply/resolve siblings is missing.

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 schema already documents `id`, `quote`, `body`, `author`, and `occurrence`, including the exact-match and 0-based-index rules. The description restates the quote-matching and occurrence-selection behavior with a 'like replace-text' analogy but adds little beyond the schema; baseline 3 is appropriate.

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 names a specific verb and resource ('Opens a new comment thread') and scopes it to text anchored by `quote` inside an ODocs.co document. That verb+anchoring combination is enough to separate it from sibling operations such as reply-to-comment, resolve-comment, or list-comments.

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 clear context for when the tool applies: review work such as flagging a problem, asking a question, or suggesting a change for a person to decide on. It stops short of explicit alternatives or exclusions (e.g., 'use reply-to-comment to answer an existing thread'), which keeps it from a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources