Skip to main content
Glama

csv_to_xlsx

Convert CSV/TSV files into new .xlsx workbooks with encoding, delimiter, and type-inference controls, and block overwrites unless explicitly enabled.

Instructions

Convert a CSV/TSV file into a new .xlsx.

encoding: any Python codec: utf-8, utf-8-sig (Excel's BOM), cp1254 (Turkish), cp1252, latin-1, utf-16 ... A wrong encoding is an error, never silently garbled. delimiter: one character or one of comma, semicolon, tab, pipe (Turkish/German Excel exports often use semicolons). infer_types: plain numbers (no leading zeros, at most 15 digits) and ISO dates become real numbers/dates; everything else stays text. Fields starting with '=' always stay text (a CSV is data, not formulas). Set false to store every field as text. Refuses to replace an existing output unless overwrite=true.

Input Schema

NameRequiredDescriptionDefault
outputYes
csv_pathYes
encodingNoutf-8
delimiterNo,
overwriteNo
sheet_nameNoSheet1
infer_typesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it states that a wrong encoding raises an error rather than silently garbling data, that existing output is refused unless overwrite=true, and that leading-'=' fields are deliberately kept as text to avoid formula injection. It omits permission/side-effect details such as whether the source CSV is modified or what happens with sheet_name conflicts.

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?

Front-loaded with a one-line purpose, then dense per-parameter notes with no filler. The notes run as continuous wrapped prose rather than discrete items, which slightly hurts scannability, but essentially every sentence carries information.

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?

An output schema exists, so return values need not be described; against that, the description covers the risky behaviors (encoding errors, overwrite refusal, type inference rules and formula safety) that an agent needs before calling a 7-parameter conversion tool. Only minor gaps remain (sheet_name semantics, source file handling).

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 0%, so the description must compensate, and it supplies genuine meaning for encoding, delimiter, infer_types and overwrite, including concrete value examples and edge-case rules (leading zeros, 15-digit cap, ISO dates). It leaves sheet_name and the path parameters unexplained, but csv_path/output are self-evident from their names.

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 opening line gives a specific verb and both source and target formats: 'Convert a CSV/TSV file into a new .xlsx.' The word 'new' plus the overwrite rule makes the direction and effect unambiguous, and it is clearly distinct from the sibling xlsx_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?

There is useful situational guidance embedded in the parameter notes (e.g. semicolon delimiters are common in Turkish/German Excel exports, set infer_types=false to force all text), but the description never explicitly says when to choose this tool over an alternative or states exclusions/prerequisites. Usage is implied rather than prescribed.

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