{"uid":"cap_7ak6QdzTSRhlhYRG2suGI","slug":"agentdiet-x402-gateway-universal-mcp-a2a-tool-discovery-meta-router-189776e5","name":"AgentDiet x402 Gateway — Universal MCP & A2A Tool Discovery Meta-Router","description":"Single-connection meta-router indexing 500+ MCP servers & A2A tools with 85% token compression and Prompt-Guard firewall. (Live x402 v2, IETF MPP & MCP endpoint at https://agentdiet.dev/v1/x402-gateway)","url":"https://agentdiet.dev/v1/x402-gateway?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["query"],"properties":{"query":{"type":"string","minLength":1,"description":"Capability search query (e.g. 'context compression', 'github security', 'sec filings', 'company enrichment') or endpoint URL to verify"}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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":"mpp","network":"tempo","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"unknown","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"},{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_u65BXsKiA9Kfc6QCDKLT0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_3aAcj-Xi_AMntjQV0hF3w","protocol":"mpp","methodType":"crypto","chain":"tempo","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":"Indexes 500+ MCP servers and A2A tools, routes queries to the right tool with 85% token compression, and applies a Prompt-Guard firewall for safe proxying.","exampleAgentPrompt":"Search the AgentDiet x402 gateway to find the best available MCP tool or A2A agent that can do live web search, and route my query there with token compression enabled.","exampleUseCases":[{"title":"Discover MCP tool for code execution","prompt":"Use the AgentDiet gateway to find me an MCP server that can execute Python code — I want the most capable one available across the 500+ indexed tools."},{"title":"Route swarm query to best A2A agent","prompt":"I'm running an agent swarm and need to route a data-extraction task — query the x402 gateway to find and connect me to the best A2A tool for scraping structured data from web pages."},{"title":"Safe proxy with prompt injection filtering","prompt":"I need to proxy a query through a tool that has prompt-injection protection built in — use the AgentDiet gateway with its Prompt-Guard firewall to safely route my request to an MCP summarization server."}],"resultDescription":"Returns a list of matching MCP servers or A2A tool endpoints ranked by relevance, along with compressed metadata (85% token reduction) and the proxied tool response if routing was performed. Includes safety filtering status from the Prompt-Guard firewall.","failureModes":["No matching MCP server or A2A tool found for the query — returns empty results","Query blocked by Prompt-Guard firewall due to detected injection attempt","Payment not processed ($0.01 USDC required per call) — returns 402 Payment Required","Invalid method or missing required 'input' field — returns 400 Bad Request","Upstream MCP server unavailable — routing fails with timeout or 503"],"whenToPreferThis":"Choose this endpoint when an agent needs to discover, compare, or route to one of 500+ MCP servers or A2A tools from a single connection point, especially when token budget is tight (85% compression) or when prompt-injection safety is a concern. Prefer over direct MCP connections when the target tool is unknown and discovery is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:48:21.456Z","isFirstParty":false,"canonicalSlug":"agentdiet-x402-gateway-universal-mcp-a2a-tool-discovery-meta-router-189776e5"}