{"uid":"cap_EeNGRVTlo4dBfc_luzQXC","slug":"delx-schema-inference-2d18163f","name":"Delx Schema Inference","description":"Infer observed field types and nullability from bounded JSON records. Use it as a bounded preflight or analysis step inside an enterprise agent workflow before data, policy, integration, security, or commercial decisions reach production. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, memory-only, and has no paid upstream or input retention. Results are advisory; the caller remains responsible for authorization and…","url":"https://api.delx.ai/api/v1/x402/schema-inference","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"records":{"type":"array","description":"Input field: records."}}},"responseSchema":{"type":"json","example":{"fields":{"id":{"types":{"int":2},"nullable":false},"active":{"types":{"bool":2},"nullable":false}},"schema":"delx/util-schema-inference/v1","advisory":"Inference describes observed samples; it is not a validation contract.","record_count":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5EEv0iGNVyB7iZWRwJJQp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Infers field types and nullability from a bounded array of JSON records, returning a deterministic machine-readable schema summary.","exampleAgentPrompt":"Infer the field types and nullability from these JSON records before I push them to the pipeline: [{\"user_id\": 1, \"email\": \"a@example.com\", \"score\": null}, {\"user_id\": 2, \"email\": \"b@example.com\", \"score\": 4.5}].","exampleUseCases":[{"title":"Preflight check before data ingestion","prompt":"Before I load these API response records into the database, infer the field types and nullability so I can confirm the schema matches what the table expects: [{\"order_id\": 101, \"amount\": 49.99, \"discount\": null}, {\"order_id\": 102, \"amount\": 20.00, \"discount\": 5.0}]."},{"title":"Schema profiling for unknown webhook payload","prompt":"I just received a batch of webhook events and I'm not sure about their structure — can you infer the field types and which fields are nullable from these records: [{\"event\": \"click\", \"ts\": 1700000000, \"user\": null}, {\"event\": \"view\", \"ts\": 1700000001, \"user\": \"u_42\"}]?"},{"title":"Data quality audit before policy decision","prompt":"Before we apply our data-sharing policy to this dataset, run a schema inference on these sample records to tell me what types and nullability we're dealing with: [{\"country\": \"US\", \"age\": 30, \"consent\": true}, {\"country\": null, \"age\": 25, \"consent\": false}]."}],"resultDescription":"Returns a deterministic machine-readable JSON object describing each observed field name, its inferred type (e.g. string, number, boolean, null), and whether it is nullable, based on the bounded set of input records provided.","failureModes":["Empty records array returns no field data or an error indicating insufficient input","Non-array input for records field causes a validation error","Extremely heterogeneous fields with conflicting types may result in ambiguous or union-type annotations","Payment failure via x402 prevents execution and returns a 402 response","Malformed JSON in records causes a parse error response"],"whenToPreferThis":"Use this endpoint when you need a fast, stateless, deterministic schema profile of a bounded JSON record set as a preflight step — especially inside enterprise agent workflows before data ingestion, policy enforcement, or integration decisions. Prefer it over general-purpose LLM schema guessing when you need machine-readable, reproducible type and nullability output with no data retention and a low fixed cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:05.373Z","isFirstParty":false}