Convert data between formats
convert_dataConvert data between JSON, CSV and XML: json→csv (array of flat objects), csv→json (header line required), xml→json (attributes as @name, text as #text) and json→xml. Reports the position of syntax errors.
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_format": "<from_format>",
"to_format": "<to_format>"
},
"name": "convert_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The data as text: the JSON, CSV or XML document to convert. | |
| pretty | No | Indent XML output (default true). | |
| delimiter | No | CSV delimiter for csv→json. | |
| to_format | Yes | Target format. | |
| from_format | Yes | Format of data. |