Skip to main content
Glama

renameTab

Renames a tab in a Google Docs document; retrieve the tab ID with listDocumentTabs first.

Instructions

Renames a tab in a Google Docs document. Use listDocumentTabs to get tab IDs first.

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>",
      "tabId": "<tabId>",
      "newTitle": "<newTitle>"
    },
    "name": "renameTab"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdYesThe ID of the tab to rename. Use listDocumentTabs to get tab IDs.
newTitleYesThe new title for the tab.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden for a mutation tool. It only says 'Renames a tab' and discloses nothing about reversibility, title collisions with existing tabs, permission requirements, or whether a write requires a prior read — yet the schema shows readHandle is required over HTTP to authorize the write, a significant behavior the description omits.

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, both earning their place, with the operation stated first and the prerequisite second. Nothing redundant or buried.

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

Completeness3/5

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

The schema is rich and self-documenting, and there is no output schema to explain. However, with zero annotations on a destructive write tool, the description should mention that the change mutates the document and that the readHandle write-authorization requirement exists, since an agent reading only the description would not anticipate it.

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 every parameter (documentId format, tabId source, newTitle constraints, readHandle authorization/pinning) is already documented in the schema. The description only echoes the tabId lookup hint, adding no meaning beyond structured fields; 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 states a specific verb and resource ('Renames a tab in a Google Docs document'), which cleanly separates it from renameFile and renameSheet by naming the target object. It stops short of an explicit sibling contrast, so a 4 rather than a 5.

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 a concrete prerequisite workflow: call listDocumentTabs first to obtain tab IDs. It doesn't state when not to use it or name an alternative for renaming other resource types, so it is clear context without exclusions.

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