Skip to main content
Glama

unmake file tools

Fix a CSV for Excel (encoding, separator, decimals, dates, leading zeros)

csv_fix
Read-onlyIdempotent

Fix a CSV for Excel (encoding, separator, decimals, dates, leading zeros). Reads a CSV/TSV/TXT table: encoding from the bytes (UTF-8/16, Windows-1252/1250, ISO-8859-15, Mac Roman; double-encoded UTF-8 repaired), separator and header row, and each column's type (numbers in any locale writing, dates with day/month order, codes with leading zeros or 12+ digits kept as text). Returns a typed .xlsx (only when every cell read back equal and no digit was lost), a plain UTF-8 CSV, a CSV for Excel in the given locale, and report.json with what was detected and the checks. An .xlsx input comes back as a UTF-8 CSV. Same engine as the CSV fixer page. Use when: An agent has a CSV export (bank, shop, CRM, open data) that opens wrong in Excel or must be typed before analysis. Not for: Cleaning or deduplicating data; PDF tables (pdf_tables); old binary .xls. File types: csv, tsv, txt, xlsx. Max 30 MB.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "csv_fix"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsNoTool options, if any (see the tool description).
file_urlNoPublic https URL of the file (preferred).
filenameNoFile name with its extension, e.g. part.step.
file_base64NoThe file as base64, for small files without a URL (give filename too).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, and the description adds substantial behavior on top: what is auto-detected from bytes, the verification gate (typed .xlsx only when every cell read back equal and no digit was lost), the set of artifacts returned including report.json, the .xlsx-input special case, and the 30 MB ceiling. These are constraints an agent could not infer from annotations or schema.

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?

Content is front-loaded: purpose, then detection behavior, then outputs, then use/not-for, then limits. The long parenthetical enumerations (encodings, type rules) are dense but each clause carries real information; the only cost is a somewhat run-on middle sentence that an agent must parse in one pass.

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?

Even without an output schema, the description names every returned artifact (.xlsx, UTF-8 CSV, locale CSV, report.json) and the guarantee governing the .xlsx. Input formats, the 30 MB limit, and the .xlsx-input behavior are all covered, so nothing material 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 the baseline is 3. The description does hint at one parameter's meaning by referring to "a CSV for Excel in the given locale" and to file types and the 30 MB limit, but it never enumerates or explains the nested options object, which the schema explicitly defers to the description for ("see the tool description").

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 first sentence pairs a specific verb ("Fix") with a specific resource ("a CSV for Excel") and enumerates the exact defect classes handled: encoding, separator, decimals, dates, leading zeros. It further separates itself from siblings by naming pdf_tables in the exclusion clause and by scoping accepted file types.

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

Usage Guidelines5/5

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

Explicit routing is given in both directions: "Use when: An agent has a CSV export (bank, shop, CRM, open data) that opens wrong in Excel or must be typed before analysis" and "Not for: Cleaning or deduplicating data; PDF tables (pdf_tables); old binary .xls." The agent knows both the trigger and the alternatives without opening any schema.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources