{"uid":"cap_Wgwb_Y_-u7KjxM3K45ByB","slug":"nova-agent-output-recovery-api-9cc1d09e","name":"Nova Agent Output Recovery API","description":"Paid x402 v2 API for source-linked company research and deterministic recovery of malformed AI-agent output. Configured network: eip155:8453. Agent output recovery is $0.01. Company intelligence reports are $0.25. Cited research memos are $0.99. Prices are fixed exact USDC payments. Call without a payment header first and follow the HTTP 402 PAYMENT-REQUIRED challenge. MCP Streamable HTTP is at https://nova-agent-output-recovery.onrender.com/mcp. The free nova_catalog tool lists prices. Paid MCP tools return an x402 payment-required tool result until payment is verified and settled.","url":"https://nova-agent-output-recovery.onrender.com/api/agent-output-recovery?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"schema":{"type":"object","description":"Optional JSON Schema Draft 2020-12 used to validate and normalize the recovered value."},"options":{"type":"object","properties":{"coerceTypes":{"type":"boolean","default":false,"description":"Safely coerce primitive values where AJV permits it."},"applyDefaults":{"type":"boolean","default":false,"description":"Apply default values declared in the supplied schema."},"removeAdditional":{"type":"boolean","default":false,"description":"Remove fields not allowed by schemas that set additionalProperties to false."}},"additionalProperties":false},"rawOutput":{"type":"string","maxLength":200000,"minLength":1,"description":"Raw LLM or AI-agent output. It may contain prose, Markdown code fences, malformed JSON, tool-call arguments, or a partial structured response."}}},"responseSchema":{"type":"json","example":{"data":{"name":"Alice","tags":["ai"],"active":true},"status":"recovered-and-valid","diagnostics":{"processingMs":2,"candidateCount":2,"selectedCandidate":1,"failedAttemptsBeforeSuccess":1},"retryPrompt":null,"schemaValid":true,"repairedJson":"{\"name\":\"Alice\",\"active\":true,\"tags\":[\"ai\"]}","extractedFrom":"embedded-json-candidate","repairApplied":true,"schemaProvided":true,"validationErrors":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_G-2yumtHn8N7F0GxyTXRA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Deterministically recovers, repairs, and validates malformed or unstructured AI agent output into clean, schema-valid JSON for $0.01 USDC per call","exampleAgentPrompt":"My AI agent just returned a messy blob of prose with some broken JSON inside — can you recover the structured data from it and validate it against my schema? The raw output is: '{\"name\":\"Alice\",\"tags\":[ai],\"active\":\"true\"}'","exampleUseCases":[{"title":"Fixing malformed tool-call JSON","prompt":"My LLM agent returned a tool-call response with invalid JSON — there are unquoted values and a trailing comma. Can you repair it and make sure it matches this schema: {\"type\":\"object\",\"properties\":{\"orderId\":{\"type\":\"string\"},\"amount\":{\"type\":\"number\"}},\"required\":[\"orderId\",\"amount\"]}? Here's the raw output: '{orderId: \"abc-123\", amount: \"49.99\",}'"},{"title":"Extracting JSON from markdown-wrapped response","prompt":"My agent output came back wrapped in a markdown code fence with some explanation text around it. Can you extract just the JSON and validate it? Raw output: '```json\n{\"user\":\"bob\",\"score\":42}\n``` Here are the final results.'"},{"title":"Normalizing AI output with schema defaults","prompt":"I got a partial JSON response from my AI pipeline that's missing some required fields that have defaults defined in my schema. Can you recover it, apply the defaults, and remove any extra fields not in the schema? Raw output: '{\"name\":\"Carol\",\"unknownField\":true}', and here's my schema: {\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"active\":{\"type\":\"boolean\",\"default\":false}},\"additionalProperties\":false,\"required\":[\"name\",\"active\"]}'}"}],"resultDescription":"Returns a JSON object containing: the repaired and parsed data object, a status string (e.g. 'recovered-and-valid'), schema validity boolean, the repaired JSON string, the extraction source (e.g. 'embedded-json-candidate'), whether repair was applied, validation errors array, diagnostics (processing time, candidate count, attempts), and an optional retry prompt if recovery failed.","failureModes":["Input rawOutput contains no recoverable JSON structure — returns failed status with retry prompt","Schema provided is invalid Draft 2020-12 and cannot be compiled — returns error","rawOutput exceeds 200,000 character limit — rejected at input validation","Payment header missing or insufficient — HTTP 402 returned with x402 challenge before processing","Schema validation fails after repair — returns schemaValid false with validationErrors array"],"whenToPreferThis":"Choose this endpoint when you need deterministic, low-cost ($0.01) recovery of malformed or partially-structured AI/LLM output — especially when the output may be wrapped in markdown, contain prose mixed with JSON, have type mismatches, or include extra fields. Prefer this over prompt re-engineering when reliability and speed matter more than regeneration cost, or when the original LLM is unavailable for retry. Ideal for production agent pipelines where structured output compliance must be enforced programmatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T12:36:09.059Z","isFirstParty":false,"canonicalSlug":"nova-agent-output-recovery-api-9cc1d09e"}