Skip to main content
Glama

excel_export_worksheet_to_new_file

Exports a specified worksheet from an opened Excel workbook into a separate new .xlsx file at a chosen path.

Instructions

Export worksheet to new Excel file

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": {
      "filename": "<filename>",
      "worksheet": "<worksheet>",
      "newFilePath": "<newFilePath>"
    },
    "name": "excel_export_worksheet_to_new_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYesOpened workbook name
worksheetYesWorksheet name to export
newFilePathYesFull path for new file (e.g., /path/to/newfile.xlsx)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries full behavioral burden. It doesn't say whether an existing file at newFilePath is overwritten, whether the source workbook is modified, whether the new file is opened afterward, or what errors occur for an invalid worksheet name.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short, front-loaded sentence with no wasted words. Its brevity is efficient, though it borders on under-specification rather than true conciseness.

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

Completeness2/5

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

No output schema exists and no annotations exist, so the description should say more about side effects and failure modes. Overwrite behavior, source-workbook state, and return information are all left unstated for a tool that writes a file.

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 (workbook name, worksheet name, target path). The description adds only the framing that the target is a new file, which is baseline value.

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?

States a specific verb and resource: 'Export worksheet to new Excel file'. It differentiates from export_csv by naming 'Excel file', but it doesn't explicitly contrast with sibling export/split tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this versus excel_export_csv or excel_split_data_to_worksheets. No preconditions are noted, such as whether the source workbook must already be open.

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