json schema infer
json_schema_inferInfer a JSON Schema (draft 2020-12) and a TypeScript type from example JSON: nested objects and arrays, union types, required fields (present in every sample), enums for low-cardinality strings, string formats (date, date-time, email, uri, uuid), min/max for numbers and string lengths. Up to 3 MB / 5,000 samples. $0.003. Costs $0.003 USDC per call (x402).
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": {
"samples": "<samples>"
},
"name": "json_schema_infer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| strict | No | false drops required | |
| samples | Yes | array of example objects (or one object) |