Skip to main content
Glama

docugen_add_comment

Leave a comment on a document. Use it to report that the implementation diverged from the specification without rewriting the document. Also use it on an approved parent when the owner widens the scope after approval (a new rule or requirement the child document now has): an approved document is not edited, the comment records the widening there, and DocuGen reads the open comments of the parent whenever a child is generated again.

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": {
      "documentId": "<documentId>",
      "body": "<body>"
    },
    "name": "docugen_add_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesComment text
sectionNoOptional heading the comment refers to
documentIdYesDocument id

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose non-obvious downstream behavior: an approved document must not be edited, the comment is where the widening is recorded, and DocuGen re-reads open parent comments when a child is regenerated. It does not cover authorship, visibility, or whether adding a comment triggers any generation event, so it falls short of fully rich behavioral context.

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 purpose is front-loaded in the first sentence and the remaining text is dense with actionable scenario detail rather than filler. The final sentence is long but each clause adds a distinct behavioral fact, so little could be cut without losing guidance.

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 3-parameter mutation tool with no annotations and no output schema, the description supplies the decision context an agent needs: when to comment, what must not be edited, and how the comment is consumed later. It leaves minor gaps around the result of the call and any permission requirements, but nothing critical for correct invocation.

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 documentId, body, and section are already documented in the schema, which sets the baseline at 3. The description adds conceptual framing about parent/child documents but no syntax, format, or constraint details for any parameter.

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?

States a specific verb and resource ('Leave a comment on a document') and is immediately distinguishable from the sibling docugen_list_comments, which reads rather than writes. The purpose is unambiguous without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives two explicit when-to-use scenarios: reporting divergence from the specification without rewriting the document, and recording scope widening on an approved parent after approval. It also names the alternative it replaces ('an approved document is not edited'), so the agent knows why to comment rather than call an update tool.

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