Skip to main content
Glama

CSV to Excel

csv_to_excel

Convert CSV files (comma, semicolon, or tab separated) to a single-sheet Excel .xlsx file, returning the saved path and row count without changing the original.

Instructions

Convert a .csv (comma, semicolon or tab separated) to an .xlsx with one sheet. Returns the saved path and the row count; 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": "csv_to_excel"
  }
}

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/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false), and the description adds real value beyond them: it states the input is not changed despite the write to a new file, and it describes what is returned (saved path and row count). It does not address overwrite behavior if the output path already exists, which would be the remaining ambiguity.

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?

A single tight sentence carrying purpose, accepted formats, output shape, and return values, with the core conversion stated first. No filler or redundancy.

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?

An output schema exists, so return values need not be spelled out in detail; parameters are fully described. For a simple two-param conversion tool this is nearly complete, with only overwrite/conflict behavior left unstated.

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' semantics (absolute vs relative path, default location next to input) are already fully documented in the schema. The description adds no delimiter or encoding parameter guidance beyond what structured fields provide, 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 both resources ("Convert a .csv ... to an .xlsx"), plus accepted dialect variations (comma, semicolon, tab) and the single-sheet output shape. This clearly separates it from the reverse sibling excel_to_csv.

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 only implied by the input format — an agent can infer 'use this when you have a CSV and want XLSX', but there is no explicit when-to-use, when-not-to-use, or named alternative among the many excel_*/json_to_excel siblings. Selection help comes from the stated dialects, not from routing guidance.

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