{"uid":"cap_NUqXbzqeRaaFH0MPeklEk","slug":"agentdiet-rag-chunk-retrieval-ab8674d2","name":"AgentDiet RAG Chunk Retrieval","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://mcp-gateway.agentdiet.dev settling in USDC on Base.","url":"https://mcp-gateway.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_g-tfxqk_dpEtQHRIl4pmv","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":"Retrieves a compressed, RAG-optimized chunk of data from a given URL via the AgentDiet MCP gateway, settling payment in USDC on Base.","exampleAgentPrompt":"Fetch me a RAG-compressed chunk of the content at https://example.com/docs/overview using a GET request so I can inject it into my knowledge base.","exampleUseCases":[{"title":"Agent knowledge base ingestion","prompt":"Pull a compressed RAG chunk from https://docs.myproduct.com/api-reference using GET mode so I can load it into my agent's context window."},{"title":"Real-time web content retrieval for RAG","prompt":"Grab a RAG-ready chunk from https://en.wikipedia.org/wiki/Artificial_intelligence via GET — I want to use the compressed output to answer user questions without storing the full page."},{"title":"Automated pipeline content fetching","prompt":"Fetch the RAG chunk for https://arxiv.org/abs/2310.01843 using GET so my pipeline can embed it and retrieve relevant passages later."}],"resultDescription":"Returns a JSON object with a 'data' field containing the compressed RAG chunk, a 'status' field ('ok'), and an 'roi_proof' object showing the compression ratio percentage (e.g. 91.4%). The response confirms successful extraction and quantifies how much the source content was compressed.","failureModes":["Invalid or unreachable URL returns an error status","Unsupported HTTP method causes rejection","Payment failure in USDC on Base blocks the request","Malformed input schema (missing 'type' or 'method') returns a validation error","Rate limiting or gateway timeout if the target URL is slow to respond"],"whenToPreferThis":"Choose this endpoint when you need to retrieve and compress web content into a RAG-friendly chunk for agent context injection, knowledge base population, or embedding pipelines — particularly when you want a quantified compression proof alongside the chunk. Prefer this over raw web scrapers when you need the output already optimized for retrieval-augmented generation workflows and are comfortable paying micro-fees in USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:43.971Z","isFirstParty":false,"canonicalSlug":"agentdiet-rag-chunk-retrieval-ab8674d2"}