extract-json
extract_json3 free MCP calls per day (all tools together), then $0.01 USDC via x402 or card credits (paid in-band: params._meta["x402/payment"]). Extract JSON: Messy text + JSON Schema in, clean JSON out. Uses a small LLM (Cloudflare Workers AI, Llama 3.1 8B, JSON mode) when available, else a deterministic key:value/regex extractor; the result is type-checked against your schema and missing fields are null. Limits: text <= 6,000 chars, schema <= 30 top-level properties (flat objects, arrays of scalars); the model can misread ambiguous text, so check important values. Params: text, schema (JSON string), mode=auto|heuristic. GET query or POST JSON body. When to use: Use extract-json for short free text with your own JSON schema; for invoices and receipts use invoice-json.
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": {
"text": "<text>",
"schema": "<schema>"
},
"name": "extract_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| text | Yes | input text, max 6000 chars | |
| schema | Yes | JSON Schema (type object with properties) as a JSON string |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| model | No | ||
| limits | No | ||
| method | No | ||
| missing | No | ||
| sources | No | ||
| not_verbatim_in_text | No |