convert_data
Convert documents between JSON, YAML, CSV, TOML, and XML (XML input only) to transform structured data formats; returns converted text.
Instructions
utilpeek: Convert data between JSON, YAML, CSV, TOML and XML. To check JSON against a schema use validate_json. Returns converted text. XML is input only. YAML uses a restricted loader and refuses alias bombs. Parsed YAML key collisions return 422 not_representable. The loader can still collapse duplicate or equivalent keys. XML with DTDs or entities returns 422 xml_forbidden. CSV skips one leading BOM; values stay strings. Dates: ISO strings or native TOML dates. Parsed in an isolated, resource-limited child process without network; input over its limits is a 422 (not charged). Typically under 1 s, up to a few seconds for 1 MB. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. The submitted text is never logged or stored. Docs: https://tanod.dev/learn/convert-data-formats-api.html
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": {
"input": "<input>",
"from": "<from>",
"to": "<to>"
},
"name": "convert_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Output format: json, yaml, csv or toml. | |
| from | Yes | Input format: json, yaml, csv, toml or xml. | |
| input | Yes | The document as a string (at most 1 MB UTF-8). | |
| indent | No | JSON output indentation (0 = compact, default 2). | |
| delimiter | No | CSV delimiter (input and output). | , |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| output | No | ||
| source | No | ||
| output_bytes | No |