Messy-to-Clean Converter: turn any messy text, email, chat, page or PDF into strict JSON that matches your schema
structure_to_jsonSend text (or a url) and a JSON Schema (or a simple field list). Returns data that is validated against the schema: numbers cleaned, dates as YYYY-MM-DD, enums matched, required fields checked; if the first try fails it is fixed and re-checked automatically. Each field is marked found_in_source, derived or empty, and missing values are null instead of guesses. Not charged if valid JSON cannot be produced. Price 0.01 USDC per call; first 3 calls per day free.
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": {
"schema": "<schema>"
},
"name": "structure_to_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Instead of text: a page, PDF, Word or Excel URL | |
| text | No | The messy input (max 200,000 chars). Or use url. | |
| schema | Yes | JSON Schema ({type: object, properties: {...}}) or a field list like ["name", {"name": "total", "type": "number"}] | |
| strict | No | Default true: error (no charge) if output cannot match the schema | |
| payment | No | Optional x402 payment (base64 X-PAYMENT header value). Not needed while the free daily sample lasts. | |
| instructions | No | Optional extra rules |