Skip to main content
Glama

Spreadsheet Cleaner API - trim, de-duplicate, merge Excel/CSV files

spreadsheet_cleaner
Read-onlyIdempotent

Clean one or many Excel/CSV files: trim spaces, drop empty rows/columns, remove duplicate rows (all columns or one key column), turn numbers-stored-as-text into numbers, merge files by column name. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.005/call via x402 at https://radarbg.com/x402/spreadsheet-cleaner.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fileName": "list.csv",
      "fileContent": "TmFtZSxRdHkKIEFubmEgLDEKQW5uYSwxCiwKQm9iLDIK"
    },
    "name": "spreadsheet_cleaner"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoDuplicates by this column only (optional)
filesNoOr several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total)
dedupeNoRemove duplicate rows
formatNoxlsx or csvxlsx
fileNameNoFile name with extension, e.g. report.pdf
dropEmptyNoRemove empty rows and columns
fixNumbersNoNumbers stored as text -> numbers
trimSpacesNoRemove extra spaces
fileContentNoThe file as base64 (a data: URI is fine; 20 MB total decoded limit per call)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / fileContent / description
      Previous value: -"The file as base64 (a data: URI is fine)"New value: +"The file as base64 (a data: URI is fine; 20 MB total decoded limit per call)"
    • changedInput schema / properties / files / description
      Previous value: -"Or several files: [{fileName, fileContent (base64)}]"New value: +"Or several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total)"
    • addedInput schema / properties / files / maxItems
      Added value: +60
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and open-world, so the bar is lower, and the description still adds real value: server-side execution, files deleted immediately after the call, nothing stored, 5 calls/day free, and the two authentication paths (X-API-Key or x402 payment). The notable omission is what comes back — a cleaned file payload, a URL, or a summary — which matters for a transformation tool with no output 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?

Front-loaded with the capabilities in a single dense sentence, then pricing/auth details that an agent or its operator genuinely needs to know before calling. The two long URLs and price points add bulk but are load-bearing; only slightly wordy overall.

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?

Given nine parameters with full schema coverage, no output schema, and a single-versus-many file design, the description covers inputs, limits (60 files / 20 MB implied by schema), retention, cost, and auth. The missing piece is the response shape, which is the main thing an agent cannot infer from structured fields.

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 100%, so the baseline is 3, but the description adds framing beyond the schema by explaining de-duplication can be applied across all columns or a single key column and that multiple files are merged by column name — a behavior not expressed by any single parameter. One wrinkle: 'merge files by column name' has no corresponding parameter, so an agent must infer that populating `files` implicitly triggers merging.

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 concrete verb and resource ('Clean one or many Excel/CSV files') and enumerates the exact operations: trim spaces, drop empty rows/columns, de-dupe, fix numbers-stored-as-text, merge by column name. This clearly separates it from siblings like remove_duplicate_lines, csv_splitter, and excel_to_pdf, which each do a single narrower job.

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 operational context (free tier of 5 calls/day per IP, paid tiers via API key or x402) but never says when to pick this over a sibling such as remove_duplicate_lines for a pure de-dupe job or csv_splitter for splitting. Cost/auth guidance is present, but selection guidance against alternatives is only implied by the feature list.

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