{"uid":"cap_IhJw7mS0UObZcJylPWRZT","slug":"delx-commerce-agent-result-error-shape-check-d2863314","name":"Delx Commerce — Agent Result Error Shape Check","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/agent-result-error-shape-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"error":{"type":"object","description":"Error supplied to Agent Result Error Shape Check; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true}}},"responseSchema":{"type":"json","example":{"result":{"shape_valid":true,"missing_fields":[]},"schema":"delx/util-agent-result-error-shape-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"f41f8f2354538275c7837e4a5b73f8d8226012563893fb9df97f7d791f7bb87f","external_calls":0},"operation":"delivery_contract:agent_result_error_shape_check"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KijvnNk55Fmg2QaB14CzT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates the structural shape of an error object returned by an AI agent, confirming required fields are present and the schema is well-formed.","exampleAgentPrompt":"Can you check whether this error object my agent returned has the correct shape — make sure all required fields are present and nothing is malformed: {\"code\": \"TOOL_FAILURE\", \"message\": \"upstream timeout\"}?","exampleUseCases":[{"title":"Agent pipeline error gate","prompt":"Before I route this error from my agent to the next step in my workflow, check if it has a valid shape and tell me which fields are missing, if any — here's the error: {\"type\": \"retrieval_error\", \"details\": null}."},{"title":"Debug malformed agent output","prompt":"My agent keeps returning errors that downstream services reject — can you run a shape check on this error object and tell me if it's valid or what's wrong with it: {\"error_code\": 500}?"},{"title":"QA test for agent error format","prompt":"I'm testing my agent's error handling — please validate this error object against the expected schema and confirm whether it passes the shape check: {\"message\": \"rate limit exceeded\", \"retryable\": true, \"source\": \"llm_provider\"}."}],"resultDescription":"Returns a JSON object containing: a boolean `shape_valid` indicating whether the error object is well-formed, a `missing_fields` array listing any absent required fields, a `status` string ('pass' or 'fail'), the operation name, schema identifier, and an evidence block with a SHA-256 hash of the input, a `retained: false` flag confirming no data is stored, and an `external_calls: 0` count.","failureModes":["Input exceeds 128 properties — request rejected","Non-object value provided for `error` field — schema validation error","Malformed JSON body — parse error returned","Payment failure via x402 — 402 response with payment details","Network timeout — no response from endpoint"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, verifiable, privacy-safe check that an agent-produced error object conforms to the expected structural schema — especially in automated pipelines where you need cryptographic proof (SHA-256 hash) that the input was processed without retention or external calls. Prefer it over general-purpose JSON validators when you specifically need the Delx agent error schema contract and an auditable evidence record.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:56.440Z","isFirstParty":false,"canonicalSlug":"delx-commerce-agent-result-error-shape-check-d2863314"}