Skip to main content
Glama

csv_to_json

Parses CSV with quoted fields and a header row into an array of objects, auto-detecting the delimiter; or converts an array of objects to CSV with mode=to_csv. 0.002 USDC per call via x402.

Input Schema

NameRequiredDescriptionDefault
modeNoto_json or to_csvto_json
textYesCSV text, or a JSON array of objects when mode=to_csv
delimiterNoOptional delimiter, auto-detected by default
paymentProofNoPayment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof.

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?

With no annotations, the description carries the full burden and does disclose material behavioral traits: a per-call price of 0.002 USDC via x402 and the parsing characteristics (quoted fields, header row, delimiter auto-detection). It does not address input size limits, malformed-CSV error behavior, or whether header detection can be disabled — meaningful gaps for a parsing tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, both front-loaded with the highest-value information: the primary CSV→JSON direction first, the reverse mode second, and the pricing disclosed at the end. No filler or redundancy.

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 four parameters, no output schema, and no annotations, the description covers direction, return shape ('array of objects' vs CSV), parsing assumptions, and cost. Remaining gaps are limits and failure modes, which are secondary but notable for a paid parsing endpoint.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with all four parameters documented including the mode enum values and the full x402 payment-proof handshake, so baseline is 3. The description restates the mode duality and delimiter auto-detection but adds no syntax, format, or constraint detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource in both directions: parses CSV with quoted fields and a header row into an array of objects, and converts an array of objects to CSV via mode=to_csv. The transformation semantics (header row required, quoting handled, delimiter auto-detected) make the tool's behavior unambiguous. It stops short of distinguishing itself from the close sibling json_format, which an agent could plausibly confuse with this.

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?

Explicitly names the condition that selects the reverse direction (mode=to_csv) and notes the delimiter is auto-detected by default, giving an agent clear context for invocation. There are no exclusions or 'when not to use' statements, and no guidance on choosing this over json_format for JSON-side work.

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.