{"uid":"cap_hYuuJr6j_hHkZ70Qs7y_g","slug":"agentdiet-rag-diet-x402-api-gateway-rag-endpoint-f47c736d","name":"AgentDiet RAG Diet - x402 API Gateway RAG Endpoint","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-diet?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_TMgc2Ns-oBVy9ixz0PgNZ","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":"Performs retrieval-augmented generation (RAG) queries against a brokered network of 31,000+ MCP servers, x402 APIs, and A2A agents, returning compressed intelligence data settled in USDC on Base.","exampleAgentPrompt":"Run a RAG query through the AgentDiet gateway using a GET request against a target URL and give me the compressed intelligence result along with the compression ratio proof.","exampleUseCases":[{"title":"Agent knowledge retrieval via MCP broker","prompt":"I need to pull compressed intelligence data from a specific MCP server endpoint — use the AgentDiet RAG gateway to run a GET query against that URL and show me the result and how much it was compressed."},{"title":"Unified API access for A2A agent workflow","prompt":"My agent needs to query one of the 31,000+ APIs available through the AgentDiet broker — send a GET request through the RAG diet endpoint to retrieve the relevant data and return the status and any ROI proof."},{"title":"Cost-efficient micropayment data fetch","prompt":"Fetch information from a target URL through the AgentDiet x402 gateway using a GET request, paying with USDC on Base, and tell me what data came back and what compression ratio was achieved."}],"resultDescription":"Returns a JSON object with a 'data' field containing the retrieved payload, a 'status' field (e.g. 'ok'), and an 'roi_proof' object containing a compression_ratio_pct value indicating how much the response was compressed (e.g. 91.4%).","failureModes":["Missing required 'input' field returns validation error","Invalid HTTP method enum value causes schema rejection","Insufficient USDC balance results in payment failure and 402 response","Unreachable target URL causes upstream fetch error","Invalid or malformed URL query parameter returns error response"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a single unified gateway to access a large network of MCP servers, x402 APIs, or A2A agents with deterministic execution and USDC-settled micropayments on Base, especially when compressed intelligence retrieval and ROI proof are needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:42:06.922Z","isFirstParty":false,"canonicalSlug":"agentdiet-rag-diet-x402-api-gateway-rag-endpoint-f47c736d"}