Skip to main content
Glama

list_doc_tabs

Retrieve all tabs and nested tabs in a Google Doc with IDs, titles, positions, and depth to enable document editing operations.

Instructions

List all tabs in a Google Doc, including nested child tabs.

Returns a flattened hierarchy with tab IDs, titles, index positions, and nesting depth. Useful as a prerequisite for any tool that takes a tab_id parameter (insert_doc_markdown, insert_doc_link, modify_doc_text, etc.).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYes
document_idYesID of the document.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly describes the return format ('flattened hierarchy with tab IDs, titles, index positions, and nesting depth') and the operation's purpose (read-only listing). While it doesn't mention potential errors, rate limits, or authentication needs, it provides substantial behavioral context for a read operation.

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?

The description is perfectly structured with two sentences: the first explains what the tool does and what it returns, the second provides clear usage guidance. Every word earns its place with zero wasted text.

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?

Given the tool's simple read-only nature, 2 parameters, and the presence of an output schema, the description is complete. It explains the purpose, return format, and when to use it. The output schema will handle return value details, so the description doesn't need to duplicate that information.

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 50% (only document_id has a description). The description doesn't add any parameter-specific information beyond what's in the schema. However, with only 2 parameters and an output schema present, the baseline of 3 is appropriate as the schema provides adequate parameter documentation.

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?

The description clearly states the specific verb ('List') and resource ('all tabs in a Google Doc'), including the scope of 'nested child tabs'. It distinguishes this tool from siblings like 'list_docs_in_folder' or 'list_spreadsheet_comments' by focusing specifically on document tabs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use this tool: 'Useful as a prerequisite for any tool that takes a `tab_id` parameter' and provides concrete examples (insert_doc_markdown, insert_doc_link, modify_doc_text, etc.). This gives clear guidance on when this tool should be used versus alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HuntsDesk/ve-gws'

If you have feedback or need assistance with the MCP directory API, please join our Discord server