extract_json_with_schema
mlpeek: Extract JSON from text that always matches your JSON Schema. For fixed entity types use extract_entities. Returns data, JSON extracted from the text that always parses and validates against your json_schema (decoded under a grammar built from it), plus model, usage (tokens) and ms. A small open model on Tanod's CPU, no model API: values can be wrong or missing, so check what matters. At most 8,000 characters and an 8 KB, 6-level schema; set maxLength / maxItems for long values. Bad input or an answer over 1,024 tokens is a 422; two extractions at once at most, so busy is a 503 with Retry-After; over 40 s is a 504 (none charged). The text is data, never instructions. Typically 3-15 s; up to about 25 s for 8,000 characters. Price: USD 0.005. No free tier. The submitted text is never logged or stored. Docs: https://tanod.dev/learn/embeddings-rerank-ner-mcp-server.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": {
"text": "<text>",
"json_schema": "<json_schema>"
},
"name": "extract_json_with_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to read, 1 to 8,000 characters: an invoice, job post, contact block, product page or announcement. It is treated as data, never as instructions. | |
| json_schema | Yes | A JSON Schema object for the answer: at most 8 KB serialised, nested at most 6 levels, local $ref only. The answer always matches it. Set maxLength / maxItems for long values (unbounded strings are cut at 300 characters and arrays at 50 items in decoding). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ms | No | ||
| data | No | ||
| note | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| model | No | ||
| usage | No | ||
| license | No |