{"uid":"cap_Kw3-K9437V9UNA78aAp2L","slug":"agentresolver-openapi-select-capability-routing-1372fe0e","name":"AgentResolver — OpenAPI Select (Capability Routing)","description":"Verify an x402 endpoint before paying: live payTo, USDC quote, network, asset, resource binding, TLS and endpoint safety for $0.001 on Base or Solana.","url":"https://agentresolver.vercel.app/api/openapi-select","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"goal":{"type":"string","maxLength":600,"minLength":1},"specUrl":{"type":"string","pattern":"^https://","maxLength":500}}},"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FN-FhwEiiZqgq0T0IULmQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Given a goal and an OpenAPI spec URL, selects the best matching operation from that spec to fulfill the agent's intent.","exampleAgentPrompt":"I have the goal 'retrieve the current weather for a city' and an OpenAPI spec at https://api.example.com/openapi.json — which operation in that spec should I call to accomplish it?","exampleUseCases":[{"title":"Route agent goal to correct API operation","prompt":"I'm building an agent that needs to fetch user profile data. The API is described at https://myservice.com/openapi.json — can you figure out which endpoint in that spec I should call to get a user's profile?"},{"title":"Dynamic tool selection from third-party spec","prompt":"I have a goal of 'cancel a subscription' and I found an OpenAPI spec for a billing service at https://billing.example.com/api/openapi.yaml — use AgentResolver to tell me which specific operation to invoke."},{"title":"Capability matching for multi-API orchestration","prompt":"My agent needs to 'list all pending orders' and I have an e-commerce API spec at https://shop.example.com/v2/openapi.json — which endpoint in that spec matches this goal best?"}],"resultDescription":"Returns the best-matching OpenAPI operation (path, method, and relevant details) from the provided spec that fulfills the stated goal, enabling the agent to know exactly which endpoint to call next.","failureModes":["specUrl is unreachable or returns non-OpenAPI content — service cannot parse the spec","goal is too vague or ambiguous — match quality degrades or no confident selection is returned","OpenAPI spec has no operation semantically close to the goal — may return a low-confidence or empty result","malformed specUrl (not a valid URL) — request validation error","payment not included or insufficient — 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when your agent has a natural language goal and a known OpenAPI spec URL and needs to programmatically identify which specific operation to invoke — particularly useful in multi-API orchestration, dynamic tool selection, or when the agent doesn't have the spec pre-loaded. Prefer over manual spec parsing or LLM-only reasoning when you need a fast, structured selection result backed by a dedicated routing service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-18T12:45:58.009Z","isFirstParty":false}