{"uid":"cap_t1jKx7svAkSRVZtNCWHyx","slug":"agentdiet-x402-broker-mcp-api-gateway-1052d976","name":"AgentDiet X402-BROKER MCP/API Gateway","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/api/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_SLu2vLtEBoLktCe3GTQXj","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":"Routes agent requests to 31,390+ MCP servers, x402 APIs, and A2A agents with USDC micropayment settlement on Base","exampleAgentPrompt":"Route my HTTP GET request to that weather MCP server at https://weather-mcp.example.com and settle the micropayment automatically — I want the response data back with proof of execution.","exampleUseCases":[{"title":"Proxying a tool call to remote MCP server","prompt":"I need you to call the GitHub MCP server at https://github-mcp.example.com using a GET request and bring back the result — handle the payment automatically."},{"title":"Brokering A2A agent task delegation","prompt":"Delegate this data analysis task to the specialist agent at https://analysis-agent.example.com via the AgentDiet broker — use a POST method and return whatever the agent responds with."},{"title":"Unified gateway for multi-tool agent workflow","prompt":"My workflow needs to call three different x402 APIs in sequence — can you route each GET request through the AgentDiet broker and give me the combined results with compression stats?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the proxied response, a 'status' field ('ok' on success), and an 'roi_proof' object including a compression_ratio_pct value (e.g. 91.4%) demonstrating efficiency gains from routing through the broker.","failureModes":["Target MCP server unreachable — upstream timeout or 5xx from remote service","Insufficient USDC balance to settle the $0.001 per-call fee on Base","Invalid input schema — missing required 'type' or 'method' fields","Unsupported HTTP method (only GET and POST allowed)","Target URL not found in the 31,390+ known MCP/x402 registry","Payment settlement failure on Base blockchain","Rate limiting or gateway overload returning service unavailable"],"whenToPreferThis":"Choose this endpoint when your agent needs a single unified gateway to access thousands of MCP servers, x402 APIs, or A2A agents without managing individual connections, authentication, or micropayment infrastructure. It is ideal for agentic workflows that need deterministic execution with payment settlement in USDC on Base and want ROI/compression proof alongside responses. Prefer it over direct API calls when the target service requires x402 or L402 payment, or when you want brokered routing across a large catalog of agent tools.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:13.200Z","isFirstParty":false,"canonicalSlug":"agentdiet-x402-broker-mcp-api-gateway-1052d976"}