Skip to main content
Glama

Convert JSON, CSV, YAML and XML

data_convert
Read-only

Convert JSON to CSV, YAML, or XML and CSV to JSON, YAML, or XML, with header rows as keys and typed numbers and booleans. Handles quoted CSV fields and nested JSON.

Instructions

Convert data between formats: JSON to CSV, YAML or XML, and CSV to JSON, YAML or XML (header row becomes keys, numbers and booleans typed). Handles quoted CSV fields and nested JSON. Costs $0.001 per call.

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": {
      "data": "<data>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "data_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesOutput format.
dataYesThe input text (JSON or CSV).
fromYesInput format.
delimiterNoCSV delimiter for input. Default ",". Use "\t" for TSV.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries most of the burden and adds genuinely useful behavior: per-call cost, typed numbers and booleans, CSV header rows becoming JSON keys, quoted-field and nested-JSON handling. It stops short of describing failure behavior for malformed input or unsupported structure, so it is not fully complete.

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?

Two sentences, front-loaded with the format matrix and followed by a short cost note, with almost no wasted wording. The trailing "Handles quoted CSV fields and nested JSON" is informative but reads as an appended detail rather than integrated guidance.

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?

For a four-parameter conversion utility with no output schema, the description covers purpose, supported directions, edge-case behavior, and cost. Missing are error handling, the size cap, and confirmation of what the returned payload looks like for each target format.

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 the parameters are already documented; the description still adds real meaning by explaining what the conversion produces (header row becomes keys, numbers and booleans typed). It omits the delimiter parameter's role for TSV, which the schema covers but which is a notable input-mode distinction.

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 plus the exact supported conversions: "JSON to CSV, YAML or XML, and CSV to JSON, YAML or XML." This clearly separates it from data-adjacent siblings like currency_convert or document_to_markdown, which convert different resources.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

The supported input/output pairings give a clear condition for use, and the cost line ($0.001 per call) helps an agent decide whether to call it. No explicit exclusions or named alternative tools are given, and it does not mention the 500,000 character input limit from the schema.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.