Skip to main content
Glama

duplicateSheet

Duplicates a sheet within a spreadsheet, copying values, formulas, formatting, validations, and conditional formatting to create a complete copy.

Instructions

Duplicates a sheet (tab) within a spreadsheet, copying all values, formulas, formatting, validations, and conditional formatting. Use getSpreadsheetInfo to find the numeric sheet ID.

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": {
      "spreadsheetId": "<spreadsheetId>",
      "sheetId": "<sheetId>"
    },
    "name": "duplicateSheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetIdYesThe numeric sheet ID to duplicate. Use getSpreadsheetInfo to find sheet IDs.
newSheetNameNoName for the duplicated sheet. If omitted, Google auto-names it "Copy of <original>".
spreadsheetIdYesThe spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose the important behavioral trait: the depth of the copy, itemized as values, formulas, formatting, validations, and conditional formatting. It does not state that this is a mutating operation, where the new tab is placed, or permission requirements, which keeps it short of a 5.

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 tight sentences: the first front-loads the action and copy scope, the second gives the ID lookup path. Nothing is redundant and nothing needs reordering.

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?

For a three-parameter tool with full schema coverage and no output schema, the description covers what the operation does and how to obtain the required sheet ID. It stops short of saying what the call returns (e.g., the new sheet's ID/name), which matters for chaining follow-up calls given the absent output schema.

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 all three parameters are already documented, including the auto-naming fallback of "Copy of <original>" and the spreadsheet ID format. The description's note about using getSpreadsheetInfo for the sheet ID merely repeats the schema text, adding no new meaning; baseline 3 applies.

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 names a specific verb (duplicates) and a precisely scoped resource (a sheet/tab within a spreadsheet), then enumerates exactly what is carried over: values, formulas, formatting, validations, and conditional formatting. That enumeration distinguishes it from generic create/add operations and from the slide-oriented sibling.

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?

The only guidance is a navigation prerequisite: use getSpreadsheetInfo to find the numeric sheet ID. There is no statement of when to use this versus alternatives such as addSheet or duplicateSlide, and no exclusions. Usage is implied rather than explained.

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