Skip to main content
Glama

Excel to CSV

excel_to_csv

Convert .xlsx sheets to CSV: one sheet saves as a single CSV; multiple sheets save as a ZIP containing one CSV per sheet. Dates and numbers stay as displayed.

Instructions

Convert an .xlsx to CSV: one sheet gives one .csv, several sheets give a ZIP with one .csv each. Cells are saved as shown (dates and numbers as formatted text). Returns the saved path and the sheet and row counts; the input is not changed.

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

Input Schema

NameRequiredDescriptionDefault
fileYesPath to the file (absolute, or relative to the working directory).
outputNoWhere to save the result. Defaults to a new file next to the input.

Output Schema

NameRequiredDescriptionDefault
notesYesAnything the output does not carry over from the input.
summaryYesOne line describing the result.
writtenYesPaths of the files written, in order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.2

TDQS

A4.1/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false with destructiveHint=false, and the description adds real context: the input file is left untouched and cells are written as displayed (dates/numbers as formatted text), a fidelity trait an agent could not infer elsewhere. However, the multi-sheet ZIP behavior and return contents are essentially output-shape facts already covered by the output schema, so the value-add beyond structured data is moderate.

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 compact sentences, front-loaded with the conversion and its output branching, then the behavioral caveat about formatting. No filler or redundant restatement of the tool name.

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?

Covers the branching output (single CSV vs ZIP), value formatting fidelity, return contents, and non-mutation of the input. With an output schema present, no essential detail for correct invocation is missing.

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 both `file` and `output` are already documented with path semantics and the default location. The description adds nothing about parameter syntax or interactions, so baseline 3 applies.

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 (convert .xlsx to CSV) plus the output shape: one sheet yields one .csv, multiple sheets yield a ZIP of CSVs. That directional detail separates it cleanly from siblings such as csv_to_excel and excel_to_json without needing their schemas.

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

Usage Guidelines4/5

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

The input format (.xlsx) and output format (CSV) make the use case immediately clear, so an agent knows when this tool applies. It stops short of naming alternatives or stating exclusions, which is why it is not a 5.

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