Skip to main content
Glama

csv_to_json

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. Side effects: none on any outside system (it only reads or computes), but each successful call costs $0.001 in USDC on Base or another supported network, paid with x402, or the same amount in prepaid card credits when the request carries an API key from /credits. That payment is why the tool is not marked read-only or idempotent: repeating a call charges again. Failed calls are never charged.

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.4/5.0
Behavior5/5

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

The description goes well beyond the annotations: it declares no outside side effects, discloses a per-call cost of $0.001 in USDC via x402 (or prepaid credits with an API key from /credits), explains why the tool is not marked read-only or idempotent (repeats charge again), and states failed calls are never charged. This is exactly the kind of billing and retry context annotations cannot convey.

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 conversion semantics and delimiter handling, then usage, then a single dense cost/side-effect sentence. The cost sentences are lengthy but justified given non-obvious x402 billing; no filler sentences, though the payment explanation runs long.

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?

With no output schema, the description still specifies the return shape (JSON array of objects keyed by the first row), the delimiter detection behavior, numeric coercion, safety profile, and billing model. An agent has everything needed to call and interpret it correctly.

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 the default behavior that numbers stay as text unless numbers=true, which is a semantic detail the schema merely labels without stating the fallback. It earns above baseline without fully re-documenting each parameter.

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 (Convert) and resource (CSV to a JSON array of objects), plus the mechanics: first row as keys, auto-detected delimiters (comma, semicolon, tab, pipe), quoted field support. This clearly separates it from the json_to_csv sibling and requires no schema opening to understand the transform.

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?

It offers one concrete context ("Use to load spreadsheet exports into an agent") but names no alternatives or when-not conditions, even though the json_to_csv sibling is the obvious inverse case. Usage is implied rather than spelled out, so this is minimum-viable guidance.

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