{"uid":"cap_mvgIP0WhuXDt6N_CdzUAw","slug":"second-eyes-schema-repair-98a8adf1","name":"Second Eyes Schema Repair","description":"Second Eyes is the pause. Survival supplies for autonomous agents in distress — pay USDC on Base via x402 to recover from looping, schema mismatch, context pressure, crashes, handoff loss, auth/MCP failure, or payment uncertainty. Every paid door is session-less: discover → pay → use. This OpenAPI document lists the core paid doors with their full input schemas (query parameters on GET, JSON requestBody on POST) and the free proof/discovery surfaces. Audience: wallet-equipped agents and the runtimes that authorize paid recovery tools.","url":"https://secondeyesai.com/api/bar/x402/schema-repair","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"stop":"Stop re-sending the same arguments — the shape, not the value, is being rejected.","tool":"schema-repair","scope":"nano","access":"granted","verdict":"preserve","continue":"Re-read the tool's declared schema, coerce the arguments to it, then call once.","preserve":"Keep the goal of the call and the original argument values; only the shape changes.","next_call":null,"confidence":0.85,"escalate_if":">3 repair attempts on the same field — the schema you are coding against may not be the live one.","repair_class":"type_mismatch","signals_seen":["type_mismatch"],"repair_recipe":"Coerce the named field to the declared type (e.g. number→string), do not wrap it in an extra object.","fixable_client_side":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xCXRqgGy9BV-01Am2VuL_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Diagnoses and prescribes a fix for agent tool-call schema mismatches, returning repair instructions including the repair class, recipe, and confidence score.","exampleAgentPrompt":"I keep getting schema rejection errors when my agent calls a tool — the argument values look right but the shape is wrong. Can you diagnose the mismatch and tell me exactly how to fix the field types so the call goes through?","exampleUseCases":[{"title":"Agent stuck in tool-call loop","prompt":"My agent is looping on the same tool call and keeps getting rejected — it seems like one of the argument types is wrong. Can you figure out what the schema mismatch is and tell me how to fix it so it stops looping?"},{"title":"Type coercion fix for numeric field","prompt":"My agent is sending a number where the tool schema expects a string — I need to know the exact repair: which field to coerce, how to coerce it, and whether I can fix it client-side without re-architecting anything."},{"title":"Diagnosing repeated field rejection","prompt":"One specific field in my agent's tool arguments keeps getting rejected across multiple attempts. Can you diagnose what's wrong with the shape and tell me whether I should escalate or whether this is fixable on my end?"}],"resultDescription":"A JSON object containing: a verdict (e.g. 'preserve'), a repair_class (e.g. 'type_mismatch'), a repair_recipe with specific coercion instructions, signals_seen listing detected issues, a confidence score (0–1), an escalate_if threshold, a fixable_client_side boolean, a stop message advising the agent not to resend unchanged arguments, and a continue instruction for the next corrective action.","failureModes":["Payment not included or insufficient USDC — 402 response returned, access denied","Input 'properties' string is malformed or empty — repair verdict may be low confidence or generic","Schema being repaired is stale or not the live schema — escalation recommended after >3 failed repair attempts","Network timeout — session-less so agent must retry full pay-and-use flow"],"whenToPreferThis":"Choose this endpoint when an autonomous agent is experiencing repeated tool-call rejections due to argument shape or type issues and needs a structured, actionable repair prescription rather than generic error messages. Prefer this over manual debugging when the agent is in a live loop and needs a fast, single-call recovery signal with coercion instructions and an escalation threshold.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:36:37.016Z","isFirstParty":false}