Skip to main content
Glama

listTabs

Lists all tabs in a Google Docs document with their IDs and hierarchy, enabling precise targeting of a specific tab via tabId.

Instructions

Lists all tabs in a document with their IDs and hierarchy. Use the returned tab IDs with other tools' tabId parameter to target a specific tab.

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

Input Schema

NameRequiredDescriptionDefault
documentIdYesThe document ID — the long string between /d/ and /edit in a Google Docs URL.
includeContentNoWhether to include a content summary for each tab (character count).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It conveys the return shape (tab IDs plus hierarchy) and implies a read-only enumeration, but says nothing about authentication requirements, behavior on non-Docs or single-tab documents, or whether results are paginated or truncated.

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

Conciseness5/5

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

Two sentences, zero filler, with the core function front-loaded and the follow-up usage hint second. Nothing could be removed without losing information.

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, but the description compensates by stating the returned fields (IDs and hierarchy), which is the key thing an agent needs to chain calls. Minor gaps remain around error conditions and hierarchy depth, but the essential information for correct invocation is present.

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 both documentId and includeContent are already fully documented with format hints and a default. The description adds no parameter-level detail beyond noting that tab IDs (output, not input) are what other tools consume, so the baseline 3 applies.

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 opens with a specific verb and resource ('Lists all tabs in a document') and says what is returned (IDs and hierarchy), which distinguishes it from mutation siblings like addTab or unrelated list tools. It stops short of explicitly contrasting with other document-structure lister siblings such as listHeadings or listTables.

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 gives clear downstream context: the returned tab IDs feed other tools' tabId parameter, which tells an agent why and when to call this. There is no explicit 'when not to use' or named alternative, so it falls short of a full 5.

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