mlpeek: extract structured JSON from text under your JSON Schema (small open model, CPU)
extract_json_with_schemaExtract JSON from text that always validates against your JSON Schema, so agents get structured data from invoices, job posts, or pages.
Instructions
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
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 | The extracted JSON; it validates against the json_schema sent. | |
| 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 |