Skip to main content
Glama

list_doc_comments

Read-only

Retrieve comments and replies from a Google Doc by file ID, with pagination and optional deleted items, to review feedback and discussion threads.

Instructions

List comments (and their replies) on a Google Doc via the Drive comments resource.

Args: doc_id: The Google Doc file ID. page_size: Maximum number of comments to return per page (default 20). page_token: Continuation token from a previous response for pagination. include_deleted: Whether to include deleted comments (default False).

Returns: Dictionary with: - doc_id: echoed back for reference - comments: list of comments, each with id, content, author (display_name, email_address), created_time, modified_time, resolved, deleted, quoted_text (the anchored text, if any), and replies. Each reply has id, content, author, created_time, modified_time, deleted, and action ("resolve" or "reopen", or None for an ordinary reply) — replies have no resolved or quoted_text field of their own; a comment's resolved status is derived from its most recent reply's action. - next_page_token: present when more results are available Raises ValueError if the response exceeds a safety cap (see MAX_TOOL_RESPONSE_CHARS in docs/configuration.md for the configured default) — lower page_size and paginate via next_page_token instead of raising the cap.

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

Input Schema

NameRequiredDescriptionDefault
doc_idYes
page_sizeNo
page_tokenNo
include_deletedNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, it discloses a non-obvious failure mode: a ValueError raised when the response exceeds MAX_TOOL_RESPONSE_CHARS, plus the concrete remediation. It also explains the domain subtlety that a comment's resolved status is derived from its most recent reply's action, which an agent could not infer.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose sentence is front-loaded and the Args block is tight, but the Returns section enumerates a long field list that largely duplicates the existing output schema, and the MAX_TOOL_RESPONSE_CHARS reference points outside the definition. Roughly a third of the text does not earn its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter read-only listing tool, everything an agent needs is present: scope, argument meanings, pagination flow, error condition, and return shape. Annotations already cover safety and an output schema exists, so no material gap remains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry all parameter meaning, and it does document all four — doc_id as the Drive file ID, page_token as a continuation token from a prior response, and defaults for page_size and include_deleted. The only soft spot is include_deleted, whose effect on results is left implicit.

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 — 'List comments (and their replies) on a Google Doc via the Drive comments resource' — and the reply-nesting scope is called out up front. Against siblings like add_doc_comment and resolve_doc_comment the read-only listing intent is unambiguous.

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?

The only operative usage guidance is pagination advice buried in the Raises clause ('lower page_size and paginate via next_page_token'). There is no explicit statement of when to reach for this versus add_doc_comment/resolve_doc_comment, though the verb makes the distinction implicit.

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

Deploy Server

Other Tools