XML ↔ JSON converter
xml_json_convertConvert XML to JSON (attributes as @_*) or JSON to XML. Pure string transform, SSRF-safe (no external entity fetch). Body ≤500 KB. Free: 10 calls/day; then $0.001/call via x402 (MCP params._meta["x402/payment"] or HTTP) or X-API-Key credits. [served by tools.moneytools.dev]
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>"
},
"name": "xml_json_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | XML text or JSON text | |
| rootName | No | wrap JSON value under this element name | |
| direction | No | xml-to-json | json-to-xml (auto) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||