Skip to main content
Glama

Convert CSV to JSON

csv_to_json
Read-onlyIdempotent

Parse CSV/TSV (RFC 4180 quotes, auto-detected delimiter) into JSON rows with inferred numbers/booleans, plus column names and row count.

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
csvYesCSV text (max 500 KB)
headerNoFirst row is header (default true)
delimiterNoDelimiter (auto-detected: , ; tab |)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world behavior, so the safety profile is covered. The description adds real behavioral detail beyond that: quoting rules, delimiter auto-detection, value-type inference for numbers and booleans, and the shape of the result (rows plus column names and row count). It does not cover malformed-input or error behavior, which keeps it from a 5.

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?

A single front-loaded sentence that delivers the conversion direction, input format, and output contract with no filler. It is dense with parentheticals but each detail earns its place; slightly heavier parsing than ideal is the only minor cost.

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?

There is no output schema, so the description correctly shoulders the burden of describing return values (JSON rows, inferred types, column names, row count). With read-only annotations covering safety and 100% schema coverage on inputs, the definition is nearly complete; only error/failure behavior on malformed CSV is unaddressed.

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 coverage is 100%, so the schema already documents csv, header, and delimiter. The description's mention of auto-detected delimiters and RFC 4180 quoting restates the schema rather than adding new per-parameter semantics. Baseline 3 is correct when the schema does the parameter work.

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?

The description names a specific verb (Parse) and resource (CSV/TSV into JSON rows), and states the scope details: RFC 4180 quoting, auto-detected delimiter, and type inference. An agent can distinguish it from json_repair/json_validate, which operate on already-structured JSON, without opening a schema.

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 the direction of conversion (CSV in, JSON out), but there is no explicit statement of when to prefer this over json_validate or json_repair, and no exclusions or prerequisites. That is adequate for an unambiguous one-way converter, but guidance-oriented context is absent.

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