{"uid":"cap_I7gQc81Lw842mocC5ttqf","slug":"agentdiet-grounded-citations-bb6b5985","name":"AgentDiet Grounded Citations","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.agentdiet.dev/v1/grounded-citations?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":{"query":{"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.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_CIu6PbStbIB96peUTqYqC","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":"Retrieves grounded, compressed citations from a RAG-distilled context window, reducing token usage by up to 91% while preserving semantic fidelity.","exampleAgentPrompt":"Search for grounded citations about 'transformer attention mechanisms' using AgentDiet's RAG distiller — I want the compressed, token-efficient version with a compression proof showing how much I saved.","exampleUseCases":[{"title":"Token-efficient research retrieval","prompt":"I'm building an agent that needs to answer questions about climate policy, but my context window keeps overflowing — can you pull grounded citations on 'Paris Agreement carbon targets' through AgentDiet's RAG distiller so I get compressed, cited results instead of a bloated raw corpus?"},{"title":"Cost reduction for high-volume agents","prompt":"My AI pipeline is making hundreds of RAG lookups a day and the token costs are killing me — use AgentDiet's grounded-citations endpoint to retrieve compressed references for the query 'FDA drug approval process' and show me the compression ratio so I can see the savings."},{"title":"Cited answer grounding for QA bot","prompt":"I need my QA bot to give users properly sourced answers without dumping a wall of text into the prompt — fetch grounded citations for 'how does RLHF work' through AgentDiet's RAG distiller and give me the distilled result with the ROI proof."}],"resultDescription":"Returns a JSON object with a 'data' field containing compressed, grounded citation results, a 'status' field confirming success, and an 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%) — demonstrating how much of the original context was eliminated while preserving semantic grounding.","failureModes":["Missing required 'input' object returns 400 validation error","Invalid HTTP method enum value (not GET or POST) causes schema rejection","Empty or missing 'query' param returns empty data with no citations","Payment not settled in USDC on Base results in 402 Payment Required","Downstream RAG pipeline unavailability returns 503 or error status"],"whenToPreferThis":"Choose this endpoint when your AI agent needs to retrieve cited, RAG-grounded information while aggressively minimizing token usage — especially in high-frequency pipelines where context window costs are significant. It is uniquely suited for agents operating under strict token budgets that still require sourced, verifiable answers rather than raw retrieved chunks. Prefer it over generic RAG retrieval when you need an auditable compression ratio (roi_proof) alongside the result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:22.411Z","isFirstParty":false,"canonicalSlug":"agentdiet-grounded-citations-bb6b5985"}