Skip to main content
Glama

List suggestions in a doc

list_suggestions

Lists pending suggestions and tracked changes in a Google Doc in document order, with IDs, summaries, context, authors, and timestamps for review or application.

Instructions

List the pending suggestions (tracked changes) in a Google Doc, in document order. Each has an id, a summary (Docs’ own words for it, as in the Docs sidebar, e.g. Replace: “30” with “45”), a context (the change in its sentence, [deleted→inserted], so two suggestions with the same summary can be told apart), and its author and time. Returns the doc title. Pass the title as expectTitle and each context as expectContext to apply_suggestions. segment: "header" or "footer" lists that one’s suggestions.

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": {
      "path": "<path>"
    },
    "name": "list_suggestions"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNowhich header/footer, when a doc defines more than one (default-page, first-page, even-page). Omit to use whichever exists.
pathYesThe doc or tab: a Drive id or URL, /folder/doc, or /folder/doc/tab (nested: /folder/doc/tab/child). A doc with one tab needs no tab step; a doc with several is refused until one is named, and the refusal lists every tab path.
accountNoGoogle account email to use. Defaults to GDOCS_DEFAULT_ACCOUNT, or the sole account.
segmentNowhich content tree to target: body (default), or the page header/footer. Header/footer content is invisible to a body read — a letterhead logo lives there.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.0.0
    • removedInput schema / properties / documentId
      Removed value: -{
      -  "description": "Google Doc id",
      -  "type": "string"
      -}
    • addedInput schema / properties / path
      Added value: +{
      +  "description": "The doc or tab: a Drive id or URL, /folder/doc, or /folder/doc/tab (nested: /folder/doc/tab/child). A doc with one tab needs no tab step; a doc with several is refused until one is named, and the refusal lists every tab path.",
      +  "type": "string"
      +}
    • removedInput schema / properties / tab
      Removed value: -{
      -  "description": "Target a specific tab by tabId or title (from list_tabs). Defaults to the first tab.",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "documentId"
      -]New value: +[
      +  "path"
      +]
  2. Changed2 schema fields changedv0.5.0
    • addedInput schema / properties / page
      Added value: +{
      +  "description": "which header/footer, when a doc defines more than one (default-page, first-page, even-page). Omit to use whichever exists.",
      +  "enum": [
      +    "default",
      +    "first",
      +    "even"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / segment
      Added value: +{
      +  "description": "which content tree to target: body (default), or the page header/footer. Header/footer content is invisible to a body read — a letterhead logo lives there.",
      +  "enum": [
      +    "body",
      +    "header",
      +    "footer"
      +  ],
      +  "type": "string"
      +}
  3. First observedv0.1.1

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 does the heavy lifting well: it enumerates the returned fields (id, summary, context, author, time, doc title), states ordering, and explains why context exists (to disambiguate identical summaries). It omits any mention of permission requirements or errors, which is the remaining gap.

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?

Front-loaded with the core action and return shape, then chaining guidance, with zero filler. The trailing "segment:" sentence is compressed almost to the point of being a schema echo, but it is short enough not to cost much.

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?

There is no output schema, and the description compensates by describing return fields, ordering, and the destination tool for the values. Given a 4-param tool with full schema coverage, only edge cases (empty results, suggestion-only tabs) are unaddressed.

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 coverage is 100%, so baseline is 3; the description earns above that by explaining that segment: header or footer scopes the listing to that one tree, and by pairing doc title with expectTitle. It doesn't clarify page/account semantics, but those are covered in-schema.

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 the pending suggestions (tracked changes) in a Google Doc") plus the ordering ("in document order"), which cleanly separates it from list_comments and read_doc. The scope qualifier "pending" and the parenthetical gloss of tracked changes make it unambiguous.

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?

Explicitly routes the agent forward: "Pass the title as expectTitle and each context as expectContext to apply_suggestions," which is actionable chaining guidance rather than vague context. It lacks an explicit exclusion statement (e.g. when to use list_comments instead), which keeps it off a 5.

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