Infer JSON Schema from Flat Records · Conservative Contract
schema_inferDiscover conservative JSON Schema inference from multiple flat JSON-object records for imports, API contract drafting or validation setup. Paid execution emits stable observed primitive/null type unions and marks a field required only when every row contains a non-null value; nested objects and arrays are rejected instead of guessed. Use dataset_profile for descriptive counts or json_schema_check to validate against an existing schema. This free MCP discovery call does not execute the advertised capability and does not charge; it returns the exact x402 endpoint, price and payment guide for execution.
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": {
"rows": "<rows>"
},
"name": "schema_infer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | Flat JSON object rows used to infer observed primitive/null field types. Nested objects and arrays are rejected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | ||
| method | Yes | HTTP method for paid execution. | |
| endpoint | Yes | Canonical absolute ARN HTTP URL to POST the same tool arguments to for paid execution. | |
| protocol | Yes | Payment protocol required by the HTTP execution endpoint. | |
| instruction | Yes | How to execute the capability after receiving the payment requirement. | |
| paymentGuide | Yes | Public setup guide with a working x402 v2 Base-mainnet client example. | |
| paymentRequired | Yes | Always true for paid ARN capabilities exposed over MCP. |