Skip to main content
Glama

List doc comments

list_doc_comments
Read-onlyIdempotent

List comments and replies on a doc, newest first. Filter by resolved, authorId or assigneeId (a user ID or me), or parent (root for top-level comments, or a comment ID for its replies). Returns comments, hasMore and nextCursor; pass nextCursor back as cursor.

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": {
      "docId": "<docId>"
    },
    "name": "list_doc_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
docIdYesDoc ID.
limitNoMaximum comments per page (1-100).
cursorNoPrevious nextCursor.
parentNoroot for top-level comments, or a comment ID for its replies.
authorIdNoUser ID or me.
resolvedNoOnly resolved or open comments.
assigneeIdNoUser ID or me.
response_formatNoHow much to return. concise applies when omitted; detailed adds every field and the full text.

Output Schema

NameRequiredDescriptionDefault
commentsYes
nextCursorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety need not be re-explained. The description still adds behavior the annotations cannot: result ordering, the exact return shape (comments, hasMore, nextCursor), and the cursor contract for continuing pagination.

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?

Two compact sentences with the core action and ordering front-loaded and filtering/pagination following naturally. The parent clause is copied nearly verbatim from the schema, which is the only real redundancy, so it is efficient but not perfectly 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 an 8-parameter, paginated read, the description covers filtering, ordering, the return fields and the cursor loop, and an output schema exists so return values need no further unpacking. The only omission is any mention of response_format and its concise-by-default behavior, a minor gap rather than a blocking 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 one of the 8 parameters is already documented, and the description largely restates the schema's own wording for parent and the 'me' shorthand. It adds no semantics for response_format or limit, so a baseline 3 is appropriate.

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 names a specific verb and resource ('List comments and replies') and scopes it to 'on a doc', which lets an agent separate it from the other list_*_comments siblings. It adds ordering ('newest first') as further identification, though it never names an alternative tool explicitly.

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 explains how the filters combine (resolved, authorId, assigneeId, parent) and gives the exact pagination loop ('pass nextCursor back as cursor'), which is clear operational context. It does not say when to prefer a different comment-listing tool, so the alternative-selection guidance is implied rather than stated.

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