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

create_workbook

Create a new empty XLSX workbook at a specified path, optionally naming the first sheet. Fails if the file already exists.

Instructions

Create a new empty XLSX workbook. Fails if file already exists.

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>"
    },
    "name": "create_workbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesAbsolute path to the .xlsx file
sheet_nameNoName of the first sheet (default 'Sheet1')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the non-overwrite precondition (fails if the file exists), which is the most important behavioral trait here. However, it says nothing about whether parent directories are created, what permissions are required, or whether a path is validated — gaps for a filesystem-writing tool.

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 short sentences, zero filler, with the core action front-loaded and the critical constraint immediately after. Nothing redundant.

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 two-parameter, no-output-schema tool with no annotations, the description covers what is created and the main failure mode. It could go slightly further on path handling and on what is returned, but nothing an agent needs to call it correctly is conspicuously missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both parameters (file_path with absolute-path requirement, sheet_name with default 'Sheet1') are already documented. The description adds the notion of an empty workbook but nothing param-specific, which is acceptable given a fully documented schema.

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?

States a specific verb and resource ("Create a new empty XLSX workbook") plus the scope ("empty"), which distinguishes it from siblings like add_sheet or copy_sheet that operate on existing workbooks. No other sibling in the list creates a workbook.

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 failure condition ("Fails if file already exists") implies this is for fresh-file creation rather than replacing an existing file, but there is no explicit when-to-use guidance or naming of alternatives (e.g., add_sheet for an existing workbook). The agent must infer that distinction from sibling names alone.

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