{"uid":"cap_OO3rF_7ADAxwuuI6oyZQ5","slug":"trust402-compare-resources-10b87860","name":"Trust402 Compare Resources","description":"Rank 2-10 candidate paid resources for a goal, budget, and risk policy.","url":"https://trust402.aztecbeacon.uk/api/trust/compare-resources","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"goal":{"type":"string"},"budgetUsd":{"type":"number"},"candidates":{"type":"array","items":{"type":"object","anyOf":[{"required":["endpoint"]},{"required":["url"]}],"properties":{"id":{"type":"string","description":"Stable candidate identifier used in rankings and receipts."},"url":{"type":"string","format":"uri","description":"Alternate field for the x402 resource endpoint."},"name":{"type":"string","description":"Human-readable resource name."},"x402":{"type":"object","description":"Optional parsed x402 challenge metadata."},"asset":{"type":"string","description":"Payment asset address or symbol."},"payTo":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"price":{"oneOf":[{"type":"number","minimum":0},{"type":"string"}],"description":"Alternate price field accepted by Trust402."},"accept":{"type":"object","description":"Optional single x402 accept object."},"has402":{"type":"boolean","description":"Whether the endpoint is known to return an x402 challenge."},"network":{"type":"string","description":"x402 payment network, for example eip155:8453."},"endpoint":{"type":"string","format":"uri","description":"HTTPS x402 resource endpoint."},"metadata":{"type":"object","description":"Additional public-safe metadata used during scoring."},"observed":{"type":"object","description":"Optional probe observations such as status or latency."},"priceUsd":{"oneOf":[{"type":"number","minimum":0},{"type":"string"}],"description":"Advertised resource price in USD."},"hasOpenApi":{"type":"boolean","description":"Whether the origin publishes OpenAPI metadata."},"openapiUrl":{"type":"string","format":"uri"},"proofReady":{"type":"boolean","description":"Alternate receipt/proof readiness signal."},"description":{"type":"string","description":"Buyer-facing explanation of the resource."},"inputSchema":{"type":"object","description":"Optional embedded input schema for the candidate."},"hasWellKnown":{"type":"boolean","description":"Whether the origin publishes /.well-known/x402 discovery."},"receiptReady":{"type":"boolean","description":"Whether the candidate can return receipt/proof-ready output."},"wellKnownUrl":{"type":"string","format":"uri"},"hasInputSchema":{"type":"boolean","description":"Whether structured input schema metadata is available."}},"additionalProperties":true},"maxItems":10,"minItems":2}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"trust.compare_resources","recommendation":"test-first"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_INDm0U31omph-QKrbclFK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares and ranks multiple x402 pay-per-call API candidates against a buyer's goal and budget, returning a trust-scored recommendation.","exampleAgentPrompt":"I have three x402 API endpoints I'm considering for summarizing text — compare them for me given my goal of 'high-quality text summarization' and a budget of $0.10 USD, and tell me which one to use first.","exampleUseCases":null,"resultDescription":"A JSON object with ok status, tool identifier ('trust.compare_resources'), and a recommendation string (e.g. 'test-first') indicating which candidate or strategy the buyer should pursue based on trust scoring and budget fit.","failureModes":["Missing or empty candidates array returns validation error","Budget too low for all candidates results in no viable recommendation","Malformed endpoint URIs in candidates cause schema rejection","Unknown x402 networks in candidate metadata may reduce scoring accuracy","Truncated or missing price fields lead to incomplete ranking"],"whenToPreferThis":"Use this endpoint when an AI agent needs to autonomously select among multiple x402 pay-per-call API options before committing budget — especially when candidates vary in price, network, or trust signals. Prefer over manual comparison or single-endpoint trust checks when you have 2+ candidates and a defined goal.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:36:03.520Z","isFirstParty":false}