Skip to main content
Glama

util_json_to_csv

Read-only

JSON to CSV converter — Convert JSON to CSV offline: an array of objects, a single object, an object that holds the rows (auto-detected or root=a.b), or NDJSON. Nested objects flatten to dot paths (sep=), arrays join with '; ' (arrays=join|index|json), columns are the union in first-seen order or columns=a,b.c to select and order. RFC 4180 quoting, delimiter=comma|tab|semicolon|pipe, header=false, eol=crlf. Flags CSV/formula-injection cells (= + - @) and neutralizes them with excel_safe=true; reports sparse columns and per-column fill. Up to 5,000 rows. Price: $0.002 USDC (Base, via x402).

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": "util_json_to_csv"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonYes[{"id":1,"name":"Ann","tags":["a","b"],"addr":{"city":"Nashville"}},{"id":2,"name":"Bo","addr":{"city":"Austin","zip":"78701"}}]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the readOnly/openWorld/non-destructive annotations, it discloses three genuinely useful facts: it runs offline, it caps at 5,000 rows, and it costs $0.002 USDC via x402 on Base. It also says it flags formula-injection cells and reports sparse columns and per-column fill, which is real behavioral context the annotations cannot express. It stops short of saying how the resulting CSV is returned (inline text vs. file/link).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded correctly, but the body collapses into one long run-on sentence packed with terse notation like 'arrays=join|index|json' and 'sep=', making it hard to scan. Nothing is wasted, but the density and lack of structural separation cost readability.

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 must imply return behavior, and it does so partially by stating that it reports sparse columns and per-column fill alongside flagging injection cells. Combined with the row limit and pricing disclosure, an agent has enough to call it, though the exact shape of the returned content remains undefined.

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% for the single 'json' parameter, but the schema only shows an example, so the description carries the real burden of explaining that the payload may be an array, a lone object, a wrapper object resolved via root=a.b, or NDJSON. That is substantive meaning beyond the schema. However, it also references many named options (sep, arrays, columns, delimiter, header, eol, excel_safe) that do not appear in the supplied schema, which an agent cannot map to actual arguments.

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 ('JSON to CSV converter') and enumerates the accepted input shapes (array of objects, single object, row-wrapping object, NDJSON), so the agent knows exactly what the tool produces and consumes. It does not name a sibling such as util_csv or util_convert, so the agent cannot infer routing from this description alone.

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 through option-level cues ('excel_safe=true' for injection-prone cells, 'columns=a,b.c to select and order'), which tells the agent when to flip flags but never states when to choose this tool over util_csv or util_convert. There are no explicit when-not conditions or prerequisites beyond the offline/payment notes.

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