Skip to main content
Glama

Add a tab to a Google spreadsheet

google_sheets_tab_add

Add a new tab to an existing Google spreadsheet by ID or URL, with a unique title and optional position and size. Use it to create a separate sheet for data entry or edits.

Instructions

Add a new tab (sheet) to an existing Google spreadsheet, by spreadsheet (its id or URL). title must not be used by another tab of the spreadsheet, ignoring case, or the call is refused before it writes. index is the tab's position counted from 0 (left out, it goes last); rows and columns set its size (left out, Google's default). The result gives the new tab's id, title, position and size. It is not idempotent: a second call with the same title is refused. Use google_sheets_create for a new spreadsheet and google_sheets_append or google_sheets_edit to fill the tab. account is needed when several accounts are set up.

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": {
      "spreadsheet": "<spreadsheet>",
      "title": "<title>"
    },
    "name": "google_sheets_tab_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsNoHow many rows the tab starts with (1 to 100000). Left out, Google's default.
indexNoThe new tab's position, counted from 0. Left out, it goes after the last tab.
titleYesThe new tab's title; no tab may have it already.
accountNoThe account's label. Left out, the only account is used; with several accounts, the call fails and lists them.
columnsNoHow many columns the tab starts with (1 to 18278). Left out, Google's default.
spreadsheetYesThe spreadsheet's id, or its URL (https://docs.google.com/spreadsheets/d/<id>/…).

Output Schema

NameRequiredDescriptionDefault
tabYes
spreadsheet_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations it discloses the pre-write validation rule (duplicate titles are refused, case-insensitive, before any write), the defaults for index/rows/columns, and what the result contains. It restates non-idempotency that idempotentHint=false already declares, so it is not fully additive, but the validation-before-write detail is genuinely useful context.

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?

Front-loaded with the action and target, then constraints, then sibling routing, then the account caveat. Dense but every sentence carries information; nothing is padding.

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?

For a 6-parameter mutation with full schema coverage, annotations, and an output schema, this covers what the structured fields do not: uniqueness enforcement, failure timing, defaults, and alternatives. An agent has everything needed to call it correctly on the first attempt.

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, and the description largely paraphrases the schema (index counted from 0 and appended last if omitted; rows/columns fall back to Google's default). The `spreadsheet` accepts an id or URL and `account` failure behavior are already in the schema descriptions, so little new semantic meaning is added.

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 opens with a precise verb+resource+scope: "Add a new tab (sheet) to an existing Google spreadsheet," and immediately disambiguates from the sibling that creates whole spreadsheets (google_sheets_create). An agent can select this tool without opening the schema.

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?

It routes explicitly: google_sheets_create for a new spreadsheet, google_sheets_append or google_sheets_edit to fill the tab, and it states the account-selection condition (needed when several accounts are set up). The when-not case is also covered by the title-collision refusal rule.

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