Skip to main content
Glama

doc_comment

Destructive

Comment on a document for the user, at once, under your name (docs_read shows its open threads, each with id). words: the exact text it's about, as docs_read shows it, found once ("" is the whole document); or thread: reply in that thread. comment (a comment's id) with text changes it, with deleted true deletes it: only one an AI wrote for the user. resolve true resolves a thread, false reopens it. mention: people to mention (address or name), each written as @Name in text. You can't assign a comment.

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>",
      "author": "<author>"
    },
    "name": "doc_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
textNo
modelNo
wordsNo
authorYes
threadNo
commentNo
deletedNo
mentionNo
resolveNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true and readOnly=false, so the mutation/destruction bar is partly covered. The description adds real value the annotations cannot: the deletion restriction ('only one an AI wrote for the user'), thread resolve/reopen semantics, and mention formatting conventions. It does not describe what happens to replies when a parent comment is deleted, nor any permission/auth requirements.

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?

Every clause carries information and the core action is front-loaded, with no filler. The telegraphic run-on style, dangling colons, and mid-sentence caveats make it harder to parse than necessary.

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 10-parameter mutation tool with no output schema and only coarse annotations, the description covers the main behavioral branches (create, reply, edit, delete, resolve, mention). It is still incomplete on required-parameter meaning, delete cascading behavior, and success/failure reporting, which matters given destructiveHint=true.

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 0% across 10 parameters, so the description must carry the full burden. It explains words, thread, comment, deleted, resolve, and mention reasonably well, but leaves the required author parameter, id, and model completely undefined, including the ambiguity of whether 'under your name' supplies author.

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?

Opens with a specific verb and resource ('Comment on a document for the user... under your name') and points to docs_read as the source of thread ids, which separates it from the read-side sibling. However, the stated scope silently expands to editing, deleting, and resolving comments, diluting the single-purpose framing.

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?

Gives operational guidance tied to docs_read ('docs_read shows its open threads, each with id') and the words/thread alternative for targeting, plus when to use comment+text vs deleted. It never says when to prefer a sibling such as knowledge_comment or task_comment, nor any precondition other than 'only one an AI wrote for the user'.

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.