{"uid":"cap_Pw0SdP1PJC3yQY3furCvU","slug":"k-2so-agent-capability-index-api-discoverability-gate-3779c1b3","name":"K-2SO Agent Capability Index & API Discoverability Gate","description":"Decision procedure for an agent deciding whether a discovered API capability is real, indexed, and safe to pay before it authorizes settlement. Input: candidate endpoint or capability index entry, claimed tool/function name, price, discoverability source (well-known file, MCP server, capability registry, market catalog). Step 1 verify the index entry resolves: endpoint responds, 402 challenge or documented auth exists, no 404/405/tiny-body stub. Step 2 check capability match: claimed function","url":"https://k2so.wrong.systems/api/services/agent-capability-index-api-discoverability-for-a?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"meta":{"enum":["0","1"],"type":"string","description":"Set to 1 for free metadata JSON (no payment required)"},"topic":{"type":"string","description":"Optional topic override for the decision procedure"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"agent capability index and API discoverability gate: pre-payment check for agent paid response","$schema":"https://json-schema.org/draft/2020-12/schema","required":["ok","paid","service","provider","result"],"properties":{"ok":{"type":"boolean"},"paid":{"type":"boolean"},"result":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean","description":"Handler success"},"brief":{"type":"string","description":"Decision procedure prose for agents"},"model":{"type":"string"},"topic":{"type":"string"},"service":{"type":"string","description":"Service slug"},"procedure":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"generationSource":{"enum":["llm","reasoning","deterministic"],"type":"string"}}},"payment":{"type":"object","properties":{"code":{"type":"string"},"payer":{"type":"string"},"detail":{"type":"string"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":{"type":"json","example":{"ok":true,"paid":true,"result":{"ok":true,"brief":"plain prose decision procedure (120+ words)","model":"deepseek/deepseek-v4-flash-0731","topic":"string topic","service":"agent-capability-index-api-discoverability-for-a","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"agent-capability-index-api-discoverability-for-a","provider":"K-2SO"}},"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":"down","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_6B7XXJ79l1trdsBseyMIA","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 a paid LLM-generated decision procedure brief explaining how an AI agent should discover and evaluate x402 APIs for capability indexing and discoverability.","exampleAgentPrompt":"Give me a plain-language decision procedure for how an AI agent should discover and evaluate x402 APIs for capability indexing — I want to know what steps to follow and what to check before calling a paid service.","exampleUseCases":[{"title":"Agent building its own service index","prompt":"I'm building an autonomous agent that needs to maintain a live index of available x402 services — walk me through the decision procedure for how it should discover, evaluate, and add new APIs to its capability index."},{"title":"Evaluating discoverability of a new x402 API","prompt":"My agent just encountered a new paid API on Base — what's the decision procedure it should follow to determine if this API is discoverable and worth indexing in its capability registry?"},{"title":"Onboarding agent to x402 bazaar discovery flow","prompt":"I want my AI agent to automatically find and call services in the x402 bazaar — give me the step-by-step procedure it should use to discover available capabilities and decide which ones to add to its allowlist."}],"resultDescription":"A JSON object containing a plain-prose decision procedure brief (120+ words) tailored to agent capability indexing and API discoverability, including the service slug, the LLM model used, generation source (llm/reasoning/deterministic), an ISO-8601 timestamp, and ok/paid confirmation fields.","failureModes":["HTTP 402 returned if payment is not settled — agent must pay exact USDC and retry with PAYMENT-SIGNATURE header","Invalid or missing payment signature returns payment error with detail field","topic query param ignored if malformed","meta=1 returns free metadata JSON without the paid decision procedure content","Network or upstream LLM failure may return ok:false with error detail"],"whenToPreferThis":"Choose this endpoint when an AI agent needs authoritative, LLM-generated procedural guidance specifically about how to discover, evaluate, and index x402 APIs on Base — especially when building autonomous agent systems that need to dynamically find and vet paid services. Prefer this over static documentation when you need a fresh, model-generated decision procedure with provenance metadata.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T19:25:45.086Z","isFirstParty":false,"canonicalSlug":"k-2so-agent-capability-index-api-discoverability-gate-3779c1b3"}