Skip to main content
Glama

csv_to_json

Read-only

Convert CSV, TSV, semicolon, or pipe-delimited text into structured JSON with bounded row output.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
csvYesDelimited text, up to 100 KB.
headerNoUse the first row as object keys. Default true.
max_rowsNoMaximum data rows to return. Default 100.
delimiterNoDelimiter name. Default comma.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered structurally. The only behavioral note, 'bounded row output', merely restates the max_rows constraint already in the schema; nothing is said about malformed-row handling, truncation signaling, or the 100 KB input cap behavior.

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?

A single front-loaded sentence with no filler; the scope of accepted formats and the bounded-output constraint both appear immediately.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 never indicates the return shape (array of objects vs. wrapper with metadata) or how row truncation is surfaced to the caller. For a simple 4-parameter utility with full parameter coverage this is a modest but real gap.

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%, so all four parameters (csv size limit, header default, max_rows range, delimiter enum) are already documented in structured form. The description's delimiter list adds no syntax or semantics beyond the enum values.

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 (convert) and resource (CSV/TSV/semicolon/pipe-delimited text) plus the output form (structured JSON), so the tool's function is unambiguous. It does not explicitly differentiate itself from siblings like json_extract or json_validate, but no sibling overlap is plausible.

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 only implied from the purpose; there is no statement of when to prefer this over json_extract/json_validate or any precondition (e.g., input must be text, not a file path). Adequate for a self-evident utility but leaves routing to inference.

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