JSON Schema 2020-12 inferred from sample JSON
$0.0021 USD per call Pay per call via x402, no signup
This call infers a JSON Schema (2020-12) from 1 to 1,000 sample documents, covering types (including null and integer versus number), properties, required keys (present in every sample), array items, and string formats (date-time, date, email, uri, uuid, ipv4, ipv6) when every value matches, with optional enums and a strict mode. Input is json (one document or an array of samples; POST for large input), with optional samples, enums, and strict; limits are 1 MB and depth 64; the inference runs offline.
x402: GET https://shop.lordevo.com/api/quick/json-schema-infer?json=%5B%7B%22id%22:1,%22email%22:%22ada@example.com%22,%22tags%22:%5B%22x%22%5D%7D,%7B%22id%22:2,%22email%22:%22alan@example.org%22,%22tags%22:%5B%5D,%22score%22:9.5%7D%5D or POST the same fields as JSON to https://shop.lordevo.com/api/quick/json-schema-infer · MCP tool json_schema_infer at https://shop.lordevo.com/mcp
The first call answers HTTP 402 with the price ($0.0021 USD per call, USDC on Base); any x402 client pays and retries. Instant tools that fail or are refused are not charged. Discovery is free: /catalog.json, /openapi.json, /llms.txt.
Example
The catalog's own example for this tool (illustrative sample values, not a live result).
Input
{
"json": "[{\"id\":1,\"email\":\"ada@example.com\",\"tags\":[\"x\"]},{\"id\":2,\"email\":\"alan@example.org\",\"tags\":[],\"score\":9.5}]"
}Output
{
"tool": "json-schema-infer",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"email": {
"type": "string",
"format": "email"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"score": {
"type": "number"
}
},
"required": [
"id",
"email",
"tags"
]
},
"samples_mode": "array_of_samples",
"sample_count": 2,
"stats": {
"properties": 4,
"optional_properties": 1,
"max_depth": 3,
"formats": 1,
"enums": 0
},
"notes": [
"Inferred from 2 samples: a starting point, not the real contract...",
"Few samples: optional fields may look required."
]
}