Skip to main content
Glama
KitchenSink4AI

io.github.nometalalchemist/kitchensink4xl

Create Workbook

create_workbook

Create a new .xlsx workbook with given sheet names, backing up existing files before overwrite. Validates sheet names and returns the file path.

Instructions

Create a new .xlsx workbook at path with the given sheet names (default a single 'Sheet1'). Sheet names must be unique, at most 31 characters, and may not start or end with an apostrophe (Excel refuses to open such a file); the parent directory must already exist. An existing file at path is left untouched unless overwrite is true, in which case it is FIRST rotated into its .ks4xl-backups prev slot and then replaced (restore source='prev' brings it back). Returns the file path and the sheets created.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
sheetsNo
overwriteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  2. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only provide readOnlyHint and destructiveHint flags. The description adds rich behavioral detail: sheet name constraints, default behavior, overwrite rotation to backup, and return value. This fully discloses side effects and prerequisites beyond annotations.

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?

The description is a few dense sentences with no fluff. It front-loads the core action, then covers constraints and overwrite behavior. Every sentence adds value, making it efficient and well-structured.

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

Completeness5/5

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

With no output schema and minimal annotations, the description fully covers creation behavior, constraints, overwrite handling, and return value. Nothing an agent needs to call it correctly is missing.

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

Parameters5/5

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

Schema has zero descriptions, so the description carries full parameter explanation. It explains the 'sheets' default and constraints, 'overwrite' behavior, and implicitly clarifies 'path' via 'parent directory must already exist'. This compensates for the lack of schema descriptions.

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 clearly states a specific verb and resource: 'Create a new .xlsx workbook at path' with sheet names. It specifies the default sheet and the exact result (returns file path and sheets created). This is distinct from siblings like copy_workbook or get_workbook_metadata.

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 description gives context on prerequisites (parent directory must exist) and sheet naming constraints, but does not explicitly mention when to prefer this tool over alternatives. It implies usage for creating a new workbook but lacks exclusions or comparisons to siblings.

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