{"uid":"cap_emb2HNti8Yopw4eM5SeH6","slug":"agentdiet-rag-chunk-endpoint-2177bd8b","name":"AgentDiet RAG Chunk Endpoint","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/rag-chunk?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":{"url":{"type":"string"},"mode":{"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.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_sAh4ADFsvt8JlcDpoC7r8","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":"Fetches and distills a URL's content into compressed RAG-ready chunks, reducing token usage by up to 91% for AI context windows","exampleAgentPrompt":"Fetch and compress the content at https://example.com/long-article into RAG chunks using a GET request so I can fit it in my context window without burning through tokens.","exampleUseCases":[{"title":"Compress long docs for agent pipeline","prompt":"I need to pull in the content from https://docs.someproject.org/reference and compress it into RAG chunks so my agent can answer questions about it without blowing up the context window — can you do that?"},{"title":"Token-efficient web research","prompt":"Grab the article at https://techcrunch.com/2024/05/01/ai-agents-trends and distill it down to the essential content so I can pass it to my LLM without wasting tokens."},{"title":"Reduce context bloat in multi-step agent","prompt":"My agent keeps hitting context limits when it reads external pages — can you fetch https://en.wikipedia.org/wiki/Retrieval-augmented_generation and return a compressed chunk version that uses at least 85% fewer tokens?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the distilled content chunk, a 'status' field ('ok' on success), and an 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%), confirming how much token reduction was achieved.","failureModes":["URL unreachable or returns non-200 — empty data or error status","Invalid or missing 'input' object — schema validation failure","Unsupported HTTP method specified — rejected at input validation","Target URL returns non-text content (binary, media) — low or zero compression output","Payment not settled in USDC on Base — 402 response blocking execution"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to fetch external URL content and reduce its token footprint before inserting it into a context window or RAG pipeline. Particularly valuable in multi-step agentic workflows where context limits are a bottleneck, or when cost-per-token matters. Best suited for text-heavy web pages, documentation, or articles where 85%+ compression is achievable. Prefer over raw HTTP fetching when token efficiency and structured RAG chunking are the goal.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:52.643Z","isFirstParty":false,"canonicalSlug":"agentdiet-rag-chunk-endpoint-2177bd8b"}