Skip to main content
Glama

Lookup Kit

csv_to_json

Read-only

CSV to JSON converter, parse CSV. Convert CSV text to JSON: an array of objects using the header row (or arrays when header=false). Handles quoted fields, commas and new lines inside quotes; delimiter auto-detected (comma, semicolon, tab, pipe) or set. Price: $0.002 per call (x402, USDC on Base).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "csv": "<csv>"
    },
    "name": "csv_to_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvYes
headerNo
delimiterNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds real value beyond that with quoting/embedded-comma and newline handling, delimiter auto-detection, and a concrete cost of $0.002 per call via x402 USDC on Base. It stops short of describing error behavior or the 8000-character input ceiling.

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?

Three compact sentences, front-loaded with the core verb-and-resource statement followed by parsing behavior and pricing. The opening fragment 'CSV to JSON converter, parse CSV' slightly duplicates the sentence that follows it.

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 (array of objects keyed by header, or arrays) and discloses the paid-call model. It lacks any mention of the input size limit or failure modes, which matter for a tool capped at 8000 characters.

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 0% for 3 parameters, so the description must carry the load; it does clarify the two ambiguous ones (`header` producing arrays when false, `delimiter` auto-detected from comma/semicolon/tab/pipe or explicitly set). It says nothing about the hard 8000-character `csv` limit or that `csv` is required, so the compensation is partial.

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?

The description names a specific verb and resource ('Convert CSV text to JSON') and even specifies the output shape: 'an array of objects using the header row (or arrays when header=false)'. It does not, however, differentiate itself from a generic sibling such as format_convert, leaving the agent to infer that this is the CSV-specific variant.

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 'parse CSV' and 'Convert CSV text to JSON', and the header=false case hints at when the array mode applies. There is no explicit when-to-use versus alternatives (e.g., format_convert) and no note on when conversion would fail or when another tool is preferable.

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