Skip to main content
Glama

addTab

Adds a new tab to a Google Docs document with optional title, position, parent nesting, and icon emoji, then returns the new tab's ID and properties.

Instructions

Adds a new tab to a Google Docs document. Optionally set the tab title, position, parent tab (for nesting), and icon emoji. Returns the new tab's ID and properties.

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": "addTab"
  }
}

Input Schema

NameRequiredDescriptionDefault
indexNoThe zero-based position among sibling tabs (within the same parent). If not specified, the tab is added at the end.
titleNoThe title for the new tab. If not specified, Google Docs assigns a default name.
iconEmojiNoAn emoji to display as the tab icon (e.g., "📋").
documentIdYesThe document ID — the long string between /d/ and /edit in a Google Docs URL.
readHandleNoCapability returned by a previous readDocument call for this document (and tab). Required over HTTP on the 2026-07-28 runtime: it authorizes the write and pins it to the revision that read saw. Omit it on stdio to use that connection's most recent read.
parentTabIdNoThe ID of an existing tab to nest this new tab under as a child. Use listDocumentTabs to get tab IDs. If not specified, the tab is created at the root level.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses that the operation is additive (a new tab is created, existing tabs untouched) and that the result includes the new tab's ID and properties, but says nothing about required permissions or scopes for a write to a shared document; the authorization nuance is delegated entirely to the readHandle schema field.

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 compact sentences: the action and its optional dimensions come first, the return value last. Every clause maps to something concrete, with no filler or repetition.

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?

With six parameters, full schema documentation, and no output schema, the description is nearly sufficient — it names the capability and summarizes the return value. The remaining gap is behavioral context for an unannotated write operation (permissions, side effects on sibling tab ordering).

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 the baseline is 3. The description only restates the parameter themes (title, position, parent nesting, emoji icon) without adding syntax, constraints, or edge cases beyond what the schema already documents, notably index semantics and default-placement behavior.

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: 'Adds a new tab to a Google Docs document,' and enumerates the optional attributes (title, position, parent, icon). It does not explicitly contrast itself with the sibling renameTab, so the add-vs-rename distinction is left to the verb alone.

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?

No explicit when-to-use / when-not-to-use section or named alternative for creating tabs. The only routing hint is embedded in the schema ('Use listDocumentTabs to get tab IDs'), which is parameter-level guidance rather than tool-selection guidance.

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