Skip to main content
Glama

Create comment

create_comment

Creates review feedback on a markdown document by commenting on an exact quoted phrase for precise anchoring, or leaving a document-level note when no anchor is needed.

Instructions

Author a NEW comment on a document, anchored to a quoted phrase — use this to leave review feedback at a specific spot (you act as a reviewer). Pass quoted_text = the exact phrase from the source to anchor to (the viewer highlights it wherever it occurs) and text = your comment. Omit quoted_text for a document-level (unanchored) note. Attributed to role (default agent). After this, the reviewer (or you) can reply/resolve it like any thread.

Input Schema

NameRequiredDescriptionDefault
roleNoattribution; default agent
textYesthe comment body
document_idYesthe review id the comments belong to (the document_id)
quoted_textNoexact phrase to anchor + highlight (omit for a doc-level note)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.4

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, closed-world write, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the anchor highlights every occurrence of the phrase in the viewer, attribution follows `role`, and the result becomes a normal thread that can be replied to or resolved. It stops short of saying whether duplicate anchors or non-matching phrases are rejected.

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?

Three front-loaded sentences: purpose first, then the two anchoring parameters, then the post-creation consequence. Parentheticals carry useful asides rather than filler, though the closing sentence about replying/resolving edges toward extra prose that could be trimmed.

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 4-parameter write tool with no output schema, the description covers purpose, anchoring semantics, attribution, and the resulting thread lifecycle, which is enough to call it correctly. The one gap is that it never says what comes back (e.g., a comment id), which matters because get_comment and reply_to_comment presumably need one.

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 every parameter is already documented, which sets the baseline at 3. The description does add real meaning on top — 'exact phrase from the source', the highlight-wherever-it-occurs behavior, and the omit-for-doc-level rule — but it does not clarify what happens when `quoted_text` does not match the source.

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 states a specific verb and resource ('Author a NEW comment on a document') plus its defining scope: anchored to a quoted phrase versus a document-level note. The emphasis on 'NEW' implicitly separates it from reply_to_comment, so an agent can pick it out of the sibling list without opening a schema.

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 situational guidance — use this to leave review feedback at a specific spot as a reviewer — and spells out the branch condition: omit `quoted_text` for a document-level note. What it lacks is an explicit hand-off naming reply_to_comment or create_review as the alternative when the agent is not starting a new thread.

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