Skip to main content
Glama

json_to_csv

Convert a JSON array of objects into CSV rows with a header line, ready for a spreadsheet or import. Pure CPU, instant.

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": {
      "json": "<json>"
    },
    "name": "json_to_csv"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonYesJSON array of objects
delimiterNoField delimiter (default comma)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed3 schema fields changed
    • addedInput schema / properties / delimiter
      Added value: +{
      +  "description": "Field delimiter (default comma)",
      +  "type": "string"
      +}
    • addedInput schema / properties / json
      Added value: +{
      +  "description": "JSON array of objects",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "json"
      +]
  4. Added

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden; it does add useful operational context ('Pure CPU, instant'), signaling a synchronous, side-effect-free, low-latency operation. It does not disclose what happens on malformed JSON, how nested objects or arrays are rendered, whether keys are unioned across heterogeneous objects, or what the failure mode looks like.

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 short sentences, front-loaded with the core transformation and followed by the output guarantee and performance note. There is no filler and nothing is buried.

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?

For a two-parameter pure function with no output schema, the description covers the input type and the output shape (CSV rows plus header) reasonably. The notable gap is nested/inconsistent-structure handling, which is the main ambiguity for any JSON-to-CSV conversion and is left entirely 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 description coverage is 100%, so both the 'json' and 'delimiter' parameters are already documented in structured form, making 3 the baseline. The description adds no detail about delimiter behavior, escaping/quoting rules, or how the header is derived from object keys, so it does not enrich parameter meaning 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?

The description states a specific verb and resource ('Convert a JSON array of objects into CSV rows with a header line') and even characterizes the output shape (header line), which implicitly disambiguates it from the inverse sibling csv_to_json. It does not, however, explicitly name the sibling or any other converter tool in the list.

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 through the phrase 'ready for a spreadsheet or import,' which hints at the intended downstream consumer. There is no explicit statement of when to prefer this over csv_to_json or ascii_table, and no preconditions such as requiring uniform keys across objects or rejecting nested structures.

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