{"uid":"cap_E1hPaWjXDGMBMpZL88qSZ","slug":"x402-broker-structured-output-via-mcp-gateway-61baac41","name":"X402-BROKER Structured Output via MCP 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/v1/structured-output?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":{"raw_json":{"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.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QZGnmU6RY39J5NV8DdyZW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns structured JSON output by routing GET/POST HTTP requests through a broker that aggregates 31,390+ MCP servers, x402 APIs, and A2A agents, settling payments in USDC on Base.","exampleAgentPrompt":"Route a GET request through the MCP Gateway broker to fetch structured JSON output — use raw_json query params and expect a structured data object back with a compression ROI proof, settled for $0.002 USDC on Base.","exampleUseCases":[{"title":"Aggregate MCP tool results into structured data","prompt":"I need to query one of the 31,000+ MCP servers through the agent broker and get back a clean structured JSON object — can you route a GET request with my raw_json params and return the parsed result?"},{"title":"Execute x402 micropayment API call","prompt":"Can you send a request through the x402 broker gateway to call an external API that requires USDC micropayment settlement on Base, and give me the structured JSON output it returns?"},{"title":"Unified A2A agent delegation with structured output","prompt":"I want to delegate a task to an A2A agent via the MCP gateway — route it as a POST HTTP method with my JSON payload and return whatever structured data the agent network responds with."}],"resultDescription":"A JSON object containing a `data` field with the structured response payload, a `status` field ('ok' on success), and an `roi_proof` object including a compression_ratio_pct metric (e.g. 91.4%) indicating how efficiently the response was compressed.","failureModes":["Missing required `input` object returns schema validation error","Invalid `method` enum value (not GET or POST) causes rejection","Insufficient USDC balance or failed x402 payment settlement blocks execution","Malformed `raw_json` query parameter causes parsing failure","Upstream MCP server or A2A agent unavailability returns error in data field","Network timeout from downstream agent or API causes delayed or null response"],"whenToPreferThis":"Choose this endpoint when you need a single unified gateway to route requests to any of 31,000+ MCP servers, x402 APIs, or A2A agents without managing individual integrations, and when you want deterministic structured JSON output with per-call USDC micropayment settlement on Base rather than subscription billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:42:19.742Z","isFirstParty":false,"canonicalSlug":"x402-broker-structured-output-via-mcp-gateway-61baac41"}