{"uid":"cap_piDk7uvRi-1l3KLCqBjhp","slug":"agent-result-error-shape-check-06a7659c","name":"Agent Result Error Shape Check","description":"Agent Result Error Shape Check: Agent Result Error Shape Check checks an agent error object for code, message, and retryability from bounded caller-supplied values without an external provider. Call Agent Result Error Shape Check before paying for or accepting an x402 or agent delivery assembled from caller-supplied challenge and result metadata. Returns contract-specific checks, normalized evidence, mismatch reasons, and an explicit acceptance or rejection status for Agent Result Error Shape C…","url":"https://api.delx.ai/api/v1/x402/agent-result-error-shape-check","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_4Cu6URox6ZuKQrDLUoW6c","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 an agent error object for correct code, message, and retryability fields before accepting or paying for an x402 agent delivery result.","exampleAgentPrompt":"Before we accept and pay for this x402 agent delivery, check the error object it returned — make sure the code, message, and retryability fields are correctly shaped and tell me if we should accept or reject it.","exampleUseCases":[{"title":"Preflight error check before x402 payment","prompt":"I just got an error back from an agent delivery — before we pay for it, can you run the error object through the shape check to confirm the code, message, and retryability fields are all valid?"},{"title":"Detecting malformed error in agent pipeline","prompt":"This agent result came back with an error, but I'm not sure the error object is well-formed. Check if the code and message fields match what's expected and tell me any mismatch reasons."},{"title":"Deciding whether to retry a failed agent task","prompt":"An agent delivery failed with this error object — can you validate its shape and tell me if the error is marked as retryable so I know whether to queue another attempt?"}],"resultDescription":"Returns contract-specific validation checks, normalized evidence extracted from the error object, a list of mismatch reasons if any fields are invalid or missing, and an explicit acceptance or rejection status indicating whether the error object meets the required shape.","failureModes":["Error object exceeds maxProperties limit of 128 — request rejected","Missing required fields (code, message, retryability) — returns rejection with mismatch reasons","Malformed JSON input — returns parse error","Unexpected field types cause normalization failure — returns mismatch detail"],"whenToPreferThis":"Use this endpoint as a bounded, low-cost preflight step before accepting or paying for any x402 agent delivery result that contains an error object. It is specifically designed for validating caller-supplied error metadata in agentic x402 workflows without external provider calls, making it faster and cheaper than general-purpose validation services. Prefer it over manual inspection when you need explicit acceptance/rejection status and normalized evidence for audit trails.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:47:43.751Z","isFirstParty":false}