Skip to main content
Glama

Copy sheet

copy_sheet

Duplicate a worksheet within the same workbook, preserving its values, formulas, and styles, to create a new named sheet.

Instructions

Duplicate a sheet with its values, formulas and styles, inside the same workbook.

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": {
      "source_sheet": "<source_sheet>",
      "target_sheet": "<target_sheet>"
    },
    "name": "copy_sheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoFile path or preloaded name (list_configured_files). Omit if only one file is preloaded.
backupNoSave a .bak copy first. Default: XLSX_MCP_AUTO_BACKUP (true).
reasonNoWhy; kept in the change log (XLSX_MCP_CHANGE_LOG=true).
source_sheetYesSheet to duplicate.
target_sheetYesName for the copy (1-31 chars, must not exist yet).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.4.0
    • addedInput schema / properties / backup / description
      Added value: +"Save a .bak copy first. Default: XLSX_MCP_AUTO_BACKUP (true)."
    • addedInput schema / properties / path / description
      Added value: +"File path or preloaded name (list_configured_files). Omit if only one file is preloaded."
    • addedInput schema / properties / reason
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Why; kept in the change log (XLSX_MCP_CHANGE_LOG=true).",
      +  "title": "Reason"
      +}
    • addedInput schema / properties / source_sheet / description
      Added value: +"Sheet to duplicate."
    • addedInput schema / properties / target_sheet / description
      Added value: +"Name for the copy (1-31 chars, must not exist yet)."
  2. Addedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations cover only openWorldHint=false and destructiveHint=false, so the description must carry the rest, and it does disclose the key behavioral trait: copy fidelity for values, formulas and styles. It does not state what is *not* carried over (charts, images, data validation, comments) or that the source sheet is left untouched, which is the remaining question an agent would have when choosing a duplication strategy.

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?

A single front-loaded sentence with zero filler; the resource, the fidelity of the copy and the scope constraint all appear before any reading fatigue. Nothing is repeated from the name or the structured fields.

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 100% schema coverage, an output schema and non-destructive annotations, most of the burden is already handled by structured data, so the terse description is close to sufficient. What is missing for a copy operation is the completeness of the copy (which sheet features survive) and any consequence of a name collision, though the schema covers the latter via the target-sheet constraint.

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 source_sheet, target_sheet, path, backup and reason are all already documented in the schema; baseline 3 applies. The description adds only indirect meaning, since "inside the same workbook" hints that path selects the single container file, but it adds no detail on naming rules or backup behavior beyond the schema.

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?

"Duplicate a sheet" gives a specific verb and resource, and "with its values, formulas and styles" plus "inside the same workbook" scopes exactly what is produced. It implicitly separates itself from create_sheet (empty sheet) and export_review_copy/sanitize_copy, but never names an alternative, so a borderline copy-vs-export decision still rests on inference.

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?

Usage is only implied: an agent can infer this is the tool for duplicating an existing sheet rather than creating a blank one. There is no explicit when-to-use statement, no exclusion of cross-workbook copying, and no guidance versus the copy-flavored siblings like export_review_copy or sanitize_copy.

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