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 €9/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)}]
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)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing where processing happens ("Runs on our server"), the data-retention policy ("files are deleted right after the call, nothing stored"), and the exact quota/auth model (5 calls/day per IP, X-API-Key for paid, x402 per-call payment). What is left out is the response shape and any limits on file size or row count. Nothing contradicts readOnlyHint/idempotentHint, since the tool returns a transformed copy rather than mutating a stored file.

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 operations, then privacy, then access/pricing — a sensible order with no filler sentences. The pricing sentence is long, but every element (free tier, key header, x402 URL) is operationally necessary for an agent to actually invoke the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-required-parameter transform tool with no output schema, the description never says what comes back — a base64 file, a download link, or inline rows — nor how the merged result is named or whether input format must match `format`. Privacy, quota and auth are complete, but the return contract is the missing piece.

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 coverage is already 100%, so the baseline is 3, but the description adds real meaning: "remove duplicate rows (all columns or one key column)" explains how `dedupe` and `key` interact, and "merge files by column name" explains what the `files` array does semantically. It does not clarify `format` vs input extension handling, which stays schema-only.

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?

Opens with a specific verb and resource ("Clean one or many Excel/CSV files") and then enumerates the exact transformations: trim spaces, drop empty rows/columns, remove duplicate rows, coerce numbers stored as text, and merge by column name. This is enough to separate it from nearby siblings such as csv_splitter, remove_duplicate_lines and excel_to_pdf without opening the schema.

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 implied by the task list ("if you need spaces trimmed or duplicates removed, use this"), and the free/paid access paths are spelled out. However, no sibling is named as an alternative, and there is no explicit when-not-to-use guidance, e.g. that remove_duplicate_lines is the right tool for plain text rather than tabular data.

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