Skip to main content
Glama

Data Converter API - CSV, Excel, JSON both ways

data_convert
Read-onlyIdempotent

Convert CSV (any delimiter/encoding), Excel (xlsx/xls) or JSON (nested objects flattened to dot columns) into JSON, CSV or Excel. to=json also returns the rows inline as data. 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.003/call via x402 at https://radarbg.com/x402/data-convert.

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": {
      "to": "json",
      "fileName": "people.csv",
      "fileContent": "bmFtZSxjaXR5CkFubmEsQmVybGluCkl2YW4sVmFybmEK"
    },
    "name": "data_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNojson, csv or xlsxjson
filesNoOr several files: [{fileName, fileContent (base64)}]
fileNameNoFile name with extension, e.g. report.pdf
fileContentNoThe file as base64 (a data: URI is fine)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Adds substantial context the annotations cannot: processing runs server-side, files are deleted immediately with nothing stored, a 5 calls/day free tier per IP, and two paid auth paths (X-API-Key vs x402 per-call). These are exactly the operational facts (privacy, rate limits, auth) an agent needs before invoking; nothing contradicts readOnlyHint or idempotentHint.

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?

The capability sentence is front-loaded and dense with useful qualifiers; the pricing/auth sentence is long with two URLs but each clause carries decision-relevant information. No filler, though the definition leans toward marketing copy at the tail.

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?

For a conversion tool with no output schema, it covers input acceptance, privacy, limits and auth well and explains that json output returns rows inline. It stops short of saying how csv/xlsx results are delivered back (download URL, base64, attachment), leaving the primary non-JSON return path underspecified.

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 100%, so the baseline is 3, but the description adds real meaning: CSV input tolerates any delimiter/encoding and JSON input has nested objects flattened to dot columns, which the schema does not say. It still leaves the fileName/fileContent vs files relationship (mutually exclusive alternatives?) unexplained.

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?

Names a specific verb and the exact source/target formats: 'Convert CSV (any delimiter/encoding), Excel (xlsx/xls) or JSON ... into JSON, CSV or Excel', plus the dot-flattening behavior for nested objects. This clearly separates it from siblings such as json_formatter, excel_to_pdf or json_to_yaml, which handle single-format or different-direction jobs.

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 context is implied by the format matrix and the note that 'to=json also returns the rows inline as data', which helps an agent pick json output when it wants values back. However, it never states when to prefer a sibling (e.g. json_repair_validate for broken JSON) or that exactly one of fileContent/files must be supplied, so selection still requires inference.

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