Skip to main content
Glama
xlsx-mcp-server
by knorq-ai

copy_sheet

Copy a worksheet within an Excel workbook, preserving cell values, styles, column widths, row heights, and merged cells. Data validation and conditional formatting are not copied.

Instructions

Copy a sheet within the workbook. Copies cell values, styles, column widths, row heights, and merged cells. Does not copy data validation, conditional formatting, or view settings.

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

Input Schema

NameRequiredDescriptionDefault
new_nameYesName for the copied sheet
file_pathYesAbsolute path to the .xlsx file
source_sheetYesSource sheet name or index

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does real work here: it enumerates exactly what is carried over (values, styles, column widths, row heights, merged cells) and explicitly what is not (data validation, conditional formatting, view settings). This is exactly the kind of fidelity disclosure an agent needs. It stops short of stating failure behavior, name-uniqueness requirements, or where the copy is inserted in sheet order.

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?

Three compact sentences, front-loaded with the action, followed by the inclusion and exclusion lists. Every sentence carries distinct information and none repeats the schema or wastes space.

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 mutation tool with no annotations and no output schema, the description covers the critical unknown: what the copy preserves and what it loses. The remaining gaps are name-collision handling and the resulting placement/location of the new sheet, which an agent would still have to discover empirically.

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 file_path, source_sheet, and new_name are already fully documented in the schema. The description adds no per-parameter meaning beyond that baseline, though the copy-fidelity sentences indirectly inform what source_sheet content will survive the operation.

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 names a specific verb and resource ('Copy a sheet within the workbook') and immediately bounds the scope of the operation. The scope phrase 'within the workbook' implicitly distinguishes it from cross-workbook copying, though it never names siblings such as add_sheet or rename_sheet to sharpen the boundary.

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 implied by 'within the workbook,' which tells the agent the source and destination must live in the same file, but there is no explicit statement of when to reach for this versus add_sheet or rename_sheet. No prerequisites or preconditions (source must exist, new_name must be unique) are given.

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