{"uid":"cap_J6JCUP3DBQQE0kkia-Q5f","slug":"agentdiet-structured-output-a2a-context-window-distiller-609d78be","name":"AgentDiet Structured Output — A2A Context Window Distiller","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.","url":"https://status.agentdiet.dev/v1/structured-output?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"raw_json":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zmklwD-5OzPRKzz67MwKD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compresses and distills AI context windows into structured JSON output, reducing token usage by up to 85-91% via deterministic de-bloating.","exampleAgentPrompt":"Take this bloated JSON context and run it through AgentDiet's structured output distiller — I want it compressed into a clean, compact JSON with a compression ratio proof showing how much token bloat was removed.","exampleUseCases":[{"title":"Token cost reduction in agent pipelines","prompt":"My multi-agent pipeline is burning through tokens because the context window keeps growing — can you pass this raw JSON context through AgentDiet and get me back a distilled version with the compression stats?"},{"title":"MCP payload de-bloating before LLM call","prompt":"Before sending this MCP payload to the LLM, run it through AgentDiet's structured output endpoint to strip the bloat — I need the compressed JSON and want to see the compression ratio percentage."},{"title":"A2A context handoff optimization","prompt":"I'm handing context between two AI agents and the payload is way too large — use AgentDiet to distill it down to structured output so the receiving agent doesn't waste its context window."}],"resultDescription":"Returns a JSON object with a 'data' field containing the distilled/compressed output, a 'status' field ('ok' on success), and an 'roi_proof' object containing 'compression_ratio_pct' showing the percentage of tokens saved (e.g. 91.4%).","failureModes":["Missing or malformed 'input' object returns validation error","Invalid 'type' value (must be 'http') causes rejection","Unsupported HTTP method enum value causes schema error","Empty or null raw_json query parameter may produce empty distillation","Payment failure via x402/USDC on Base blocks request execution","Downstream node unavailability returns non-ok status"],"whenToPreferThis":"Choose AgentDiet's structured output endpoint when you need deterministic, pay-per-call context compression for AI agent pipelines, especially when operating under token budget constraints in A2A, MCP, or B2A architectures. Ideal when you need a verifiable compression ratio proof and structured JSON output rather than a summarization narrative. Prefer this over generic LLM summarization when you need reproducible, schema-conformant output and micro-payment settlement via USDC on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:53.791Z","isFirstParty":false,"canonicalSlug":"agentdiet-structured-output-a2a-context-window-distiller-609d78be"}