{"uid":"cap_Pd6Cg_Y8hfSklkAcUNVWP","slug":"agentdiet-x402-broker-swarm-router-bea97f4b","name":"AgentDiet X402-BROKER Swarm Router","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/swarm-router?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_tH-ilBvO1Wau1erH4G_Ce","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":"Routes queries to a unified gateway of 31,390+ MCP servers, x402 APIs, and A2A agents, returning structured results with USDC-on-Base micropayment settlement.","exampleAgentPrompt":"Search across all available MCP servers and x402 APIs to find me a tool that can scrape and summarize a webpage — route the query through the swarm router and return what the best match finds.","exampleUseCases":[{"title":"Discover MCP tool for web scraping","prompt":"I need to scrape the content of a URL and summarize it — can you query the swarm router to find the best MCP server that handles web scraping and run it for me?"},{"title":"A2A task delegation across agent network","prompt":"I want to delegate a data enrichment task to another agent in the network — use the swarm router to find an available A2A agent that specializes in company data enrichment and send my query."},{"title":"Cheapest API for a coding subtask","prompt":"My agent needs to run a code execution tool — can you search the AgentDiet swarm router to find which of the 31,000+ available MCP servers handles sandboxed code execution and route my request there?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the response from the matched MCP/API/agent, a 'status' field ('ok' on success), and an 'roi_proof' object including a compression_ratio_pct metric indicating routing efficiency.","failureModes":["Payment failure if insufficient USDC balance on Base — returns 402 Payment Required","No matching MCP server or API found for the query — returns empty data object","Invalid input schema (missing 'type' or 'method' fields) — returns 400 Bad Request","Downstream MCP server timeout or unavailability — may return error status","Malformed queryParams.query — may return unhelpful or null results"],"whenToPreferThis":"Choose this endpoint when you need a single unified gateway to discover and execute across a massive catalog of 31,390+ MCP servers, x402 APIs, and A2A agents without managing individual integrations. Ideal for agents that need dynamic tool discovery, want micropayment-settled execution in USDC on Base, or need to broker requests across heterogeneous agent networks. Prefer this over direct API calls when the right underlying tool is unknown and needs to be discovered at runtime.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:49.767Z","isFirstParty":false,"canonicalSlug":"agentdiet-x402-broker-swarm-router-bea97f4b"}