Json Schema Infer
json_schema_inferInfer a JSON Schema (draft 2020-12) from one JSON document or many samples: types (integer vs number), nested objects and arrays, required keys (present in every sample), nullable fields, string formats (date-time, date, email, uri, uuid, ipv4/6) and optionally enums and numeric bounds. Turns API responses into a contract for validation or tool definitions. POST JSON body. Price: $0.003 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/json-schema-infer
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "json_schema_infer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | No | One JSON document | |
| enums | No | Emit enum for low-cardinality repeated strings | |
| title | No | ||
| bounds | No | Emit minimum/maximum for numbers | |
| samples | No | Several sample documents of the same shape (better required/nullable detection) |