Skip to main content
Glama

CSV a JSON

csv-parse
Read-onlyIdempotent

Convierte CSV (RFC 4180) en un arreglo de objetos usando la fila de encabezado; infiere números y booleanos opcionalmente. Cuándo: hay que transformar, comparar o revisar con exactitud datos estructurados (JSON, CSV, YAML, XML, arreglos). No para: convertir un arreglo de objetos en CSV (csv-build). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Parses RFC 4180 CSV (quoted fields, escaped quotes, CRLF, BOM) with a chosen delimiter into an array of objects using the header row, or arrays of strings; optional number/boolean inference. When: structured data (JSON, CSV, YAML, XML, arrays) has to be transformed, compared or checked exactly. Not for: converting an array of objects (csv-build). Side effects: none (read-only, no network access, no stored state). [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
csvYesCSV text (string; required).
headerNoFirst row is a header (boolean; optional; default true).
delimiterNoDelimiter (optional; one of: ,, ;, , |; default ",").,
infer_typesNoConvert numbers, booleans, empty→null (boolean; optional; default false).

Output Schema

NameRequiredDescriptionDefault
dataNoany JSON value
rowsNo
columnsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / csv / examples
      Added value: +[
      +  "name,age\nAna,30\n\"Pérez, Juan\",\"4\"\"2\""
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Parses RFC 4180 CSV (quoted fields, escaped quotes, CRLF, BOM) with a chosen delimiter into an array of objects using the header row, or arrays of strings; optional number/boolean inference. When: structured data (JSON, CSV, YAML, XML, arrays) has to be transformed, compared or checked exactly. Not for: converting an array of objects (csv-build). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB."
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld=false and non-destructive, but the description adds determinism, absence of network/stored state, and concrete limits (1 s per call, 1 MB result). One inconsistency holds it below 5: it states a 64 KB input limit while the schema's csv field allows maxLength 1048576, leaving the agent unsure which ceiling actually applies.

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 core operation, then when/not-for, then side effects and limits – a sensible order. It loses a point for duplication: the bilingual ES/EN blocks restate the same content, and the EN section even ends with a self-referential pointer to inputSchema.description.

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?

An output schema exists, so return values need no explanation, and the description still covers operation, exclusions, purity, determinism and resource limits. For a 4-parameter read-only parser, nothing an agent needs in order to call it correctly is missing.

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 3 is the floor, and the description earns more by explaining the header-row/array-of-strings branch (which maps to header=false) and that inference covers numbers and booleans plus empty→null. It does not cover the delimiter enum values, but the schema already enumerates them explicitly.

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: parses RFC 4180 CSV into an array of objects using the header row (or arrays of strings), with optional type inference and a chosen delimiter. The Spanish and EN blocks both name the inverse operation sibling csv-build, so the agent can distinguish them 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 Guidelines5/5

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

Explicit 'Cuándo' clause scopes it to transforming/comparing/checking structured data exactly, and 'No para: convertir un arreglo de objetos en CSV (csv-build)' names the alternative and the condition that selects it. Both the positive trigger and the exclusion are stated.

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