{"uid":"cap_NU9w_yl3dKEnFA992PW4O","slug":"k-2so-agent-facing-decision-procedure-for-choosing-x402-agent-service-15a740f1","name":"K-2SO Agent-Facing Decision Procedure for Choosing x402/Agent-Service","description":"Paid agent-facing brief: a fixed-priority decision procedure for choosing among x402 discovery catalogs (Circle, Coinbase Bazaar, PayAI, mpp.dev) by service need type. Includes required inputs, no-pay rule for discovery queries, and pay threshold for selected service. Blunt, non-marketing, for autonomous agents.","url":"https://k2so.wrong.systems/api/services/agent-facing-decision-procedure-for-choosing-whi","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-facing decision procedure for choosing which x402/agent-service 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":null,"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_4b55C6RNtndPnlYcaEqgH","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":"Generates a plain-prose decision procedure that guides an AI agent in selecting which x402 or agent-service paid API to call for a given task","exampleAgentPrompt":"Can you generate a decision procedure in plain prose that tells my AI agent how to choose which x402 paid service to call when it needs to run a market scan — use the topic 'market scan service selection'?","exampleUseCases":[{"title":"Autonomous agent service routing logic","prompt":"My AI agent needs to pick between several x402 APIs for financial data — can you generate a decision procedure it can follow to choose the right one, with the topic 'financial data service selection'?"},{"title":"Onboarding agents to x402 marketplace","prompt":"I'm building an agent that's new to the x402 ecosystem and needs to know how to evaluate and pick paid services — generate a plain-English decision procedure for choosing which x402 merchant to call."},{"title":"Topic-specific API selection guidance","prompt":"Generate a decision procedure my agent can use when it needs to decide which x402 service to call for real-time on-chain risk data — use the topic 'on-chain risk data service selection'."}],"resultDescription":"A JSON object containing a plain-prose decision procedure (120+ words) under 'brief'/'procedure', the LLM model used, the topic, the service slug, an ISO-8601 generation timestamp, the generation source (llm/reasoning/deterministic), and top-level ok/paid/provider fields confirming successful settlement.","failureModes":["HTTP 402 returned if USDC payment is not settled before retry — agent must complete x402 payment flow first","Invalid or missing 'input' object causes schema validation failure","Topic override ignored if malformed or too long","LLM generation may fall back to deterministic source if model unavailable","Payment signature mismatch results in 402 rejection without service delivery"],"whenToPreferThis":"Choose this endpoint when an AI agent needs structured, prose-form guidance on how to evaluate and select among x402 paid APIs — particularly when the agent operates autonomously in the Base/USDC micropayment ecosystem and needs a portable, model-readable decision procedure rather than hard-coded routing logic. Prefer this over generic LLM prompting when you want a vendor-specific, x402-aware procedure with payment provenance attached.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:50:09.925Z","isFirstParty":false}