{"uid":"cap_B2qpLKA5qe_lBnbTOmhyy","slug":"genesis-agent-tools-json-schema-inferrer-28e9c8c8","name":"GENESIS Agent Tools — JSON Schema Inferrer","description":"Pay-per-call x402 APIs for autonomous agents on Base USDC: API compatibility analysis, bounded HTTP/JSON workflows, URL evidence analysis, crypto price consensus, and agent/MCP readiness checks.","url":"https://genesis-agent-tools.genesisagenttools.workers.dev/api/tools/json-schema-infer?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["instance"],"properties":{"instance":{"type":"object"}}},"responseSchema":{"type":"object","properties":{"schema":{"type":"object"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_E4oKlR-EkWo9lgrGi2ed_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Infers a JSON Schema definition from a provided JSON object instance","exampleAgentPrompt":"Look at this JSON object and infer its JSON schema for me: {\"userId\": 42, \"name\": \"Alice\", \"active\": true, \"scores\": [95, 87]}","exampleUseCases":[{"title":"Auto-document an API response structure","prompt":"I have a sample JSON response from a third-party API and I need to generate a JSON schema from it so I can validate future responses — here's the object: {\"orderId\": \"abc123\", \"total\": 49.99, \"items\": [{\"sku\": \"X1\", \"qty\": 2}]}"},{"title":"Validate agent tool input contracts","prompt":"Can you infer the JSON schema for this data object my agent is passing around so I can enforce input validation on it: {\"agentId\": \"agent-7\", \"task\": \"summarize\", \"priority\": 1, \"tags\": [\"urgent\", \"nlp\"]}"},{"title":"Reverse-engineer data model from sample","prompt":"I got this sample record from a database export and I want to understand its schema — can you derive the JSON schema from it? {\"productId\": 101, \"title\": \"Widget Pro\", \"price\": 9.99, \"inStock\": false, \"metadata\": {\"weight\": 0.5}}"}],"resultDescription":"Returns a JSON Schema object derived from the provided instance, describing the structure, types, and properties of the input JSON object. The schema field in the response contains the inferred schema definition.","failureModes":["Empty or null instance object causes validation error","Non-object instance types (arrays, primitives at root) may not be supported","Complex nested structures with mixed types may produce imprecise schemas","Network or worker timeout on very large input objects","Payment failure via x402 results in 402 response before processing"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call schema inference from a live JSON object without setting up local tooling. Particularly useful for autonomous agents that encounter unknown API payloads at runtime and need to understand their structure programmatically. Prefer this over manual schema writing when you have a concrete example instance and need schema generation as part of an automated workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:47:41.346Z","isFirstParty":false,"canonicalSlug":"genesis-agent-tools-json-schema-inferrer-28e9c8c8"}