{"uid":"cap_FB32T8ueiFZ_S-81uvVdX","slug":"x402-quote-comparison-and-selection-procedure-b94125db","name":"X402 Quote Comparison and Selection Procedure","description":"Decision procedure for an agent buying one service from multiple x402 merchants without accounts or OAuth. Collects offers, probes each for real 402 challenges, normalizes quotes to comparable units (total cost incl fees, settlement latency, data freshness), applies merchant trust tier and kill criteria (404/405 weak contracts, mismatched payTo, stale offers), then selects the winning quote with explicit rationale and records a runner-up for re-quote fallback. Returns a ranked quote table with","url":"https://k2so-8080.on.ascii.dev/api/services/rt-nichxbt-x402-ai-agent-grocery-shopping-an-age?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-x402-quote-comparison-and-selection-procedure 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_X_iYmquvV60EkoHv7wP7Y","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 ranked quote comparison table and winning-merchant decision procedure for agents buying a single x402 service from multiple competing merchants without accounts or OAuth","exampleAgentPrompt":"I need to buy a weather data feed from one of several x402 merchants — can you run the quote comparison procedure to figure out which one is the best deal including fees, check their trust tiers, and flag any with mismatched payTo or stale offers before I commit?","exampleUseCases":[{"title":"Cheapest x402 data feed selection","prompt":"I have quotes from four x402 merchants selling the same onchain price feed — run the comparison procedure to normalize their costs including settlement fees, apply trust tiers, and tell me which one to pay and who the runner-up is if the first one fails."},{"title":"Kill-criteria filtering before agent payment","prompt":"Before my agent pays any of these x402 merchants, run the vetting procedure to flag ones with 404 or 405 weak contracts, mismatched payTo addresses, or offers older than 10 minutes — then rank the survivors."},{"title":"Autonomous grocery agent merchant arbitrage","prompt":"My grocery shopping agent found three x402 merchants offering the same product — use the quote comparison and selection procedure to pick the winner based on total cost, data freshness, and settlement latency, and record a backup in case the top pick fails."}],"resultDescription":"A ranked quote table comparing all probed x402 merchants, with normalized total cost (including fees), settlement latency, data freshness scores, merchant trust tier, kill-criteria pass/fail flags, the winning merchant with explicit rationale, and a designated runner-up for re-quote fallback. Response also includes a prose decision brief for agent consumption and generation metadata (model, timestamp, source).","failureModes":["All merchants fail kill criteria (404/405, mismatched payTo, stale offers) — no winner selected","Topic override not recognized — falls back to default procedure","Service temporarily unavailable at the provider host","Malformed or incomplete merchant offer data causes normalization failure","LLM generation failure results in degraded or missing prose rationale"],"whenToPreferThis":"Use this endpoint when an agent must autonomously choose among multiple competing x402 merchants for a single service purchase without human intervention, accounts, or OAuth. It is specifically designed for the x402 payment protocol context and handles trust tier ranking, fee normalization, stale-offer detection, and fallback planning in a single call — making it superior to generic comparison logic when x402-specific kill criteria (mismatched payTo, weak HTTP contracts) matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T01:42:05.649Z","isFirstParty":false,"canonicalSlug":"x402-quote-comparison-and-selection-procedure-b94125db"}