Skip to main content
Glama

Agent Data Tools: Utilities

CSV to JSON

csv_to_json
Read-only

Convert CSV (comma, semicolon, tab or pipe; delimiter detected automatically; quoted fields supported) to a JSON array of objects using the first row as keys. Numbers stay as text unless numbers=true. Use to load spreadsheet exports into an agent. Example: text=name,age Ada,36, numbers=true. Price $0.003/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe CSV text, first row is the header
numbersNotrue to turn numeric cells into numbers

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnlyHint=true, destructiveHint=false), but the description adds substantial context beyond them: authentication methods (x402 USDC or card key at /credits), pricing ($0.003/call, first 25 free, failed calls free), and the reason repeats are not free — which explains the non-obvious idempotentHint=false annotation consistently.

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?

Core capability and example are front-loaded, and the pricing/auth tail is short. The inline example is slightly garbled by the newline in the sample CSV, and the description is on the long side for a simple converter, but every sentence carries information.

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?

With no output schema, the description correctly explains the return shape (JSON array of objects keyed by the header row) plus cost and auth. Ragged-row handling, duplicate or missing headers, and type coercion edge cases are not covered, which is a minor gap for a data-conversion tool.

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 baseline is 3, but the description adds real meaning: automatic delimiter detection (comma, semicolon, tab, pipe), quoted-field support, and the explicit rule that numbers stay as text unless numbers=true. That clarifies what the agent should expect from the text parameter format.

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 specific verb and resource ('Convert CSV ... to a JSON array of objects using the first row as keys') and specifies the accepted input dialects. This clearly distinguishes it from the reverse-direction sibling json_to_csv without needing to open either schema.

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

Usage Guidelines4/5

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

'Use to load spreadsheet exports into an agent' gives a concrete usage context, and the inline example anchors the typical call shape. It does not name the reverse tool (json_to_csv) or state when-not to use it, so it stops short of explicit alternative routing.

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.