Find better-scored alternatives to an x402 endpoint (paid)
x402_find_alternativesCompare an x402 endpoint against semantically similar alternatives with higher trust scores to route requests to more reliable, better-rated endpoints serving the same function.
Instructions
Given an x402 endpoint URL, returns the top semantically-similar endpoints (matched on advertised purpose via description embeddings) that currently OUT-SCORE it on the deterministic trust score. Use this to route away from a mediocre/dead/expensive endpoint toward a more reliable, better-settled one serving the SAME function — e.g. before paying, check if a higher-graded equivalent exists. Each alternative carries its trust 'score', 'grade', 'recommendation', cosine 'similarity' (0-1), 'amountUsd' price, and a free 'endpointPage' URL. Same-host siblings and 'avoid'-flagged endpoints are excluded. An empty 'alternatives' array is a valid answer meaning nothing beats the subject. Similarity is independent of latency/geography. Pay-per-call over x402 (~$0.005); auto-pays if a wallet is configured, otherwise returns the price quote.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max alternatives to return (1-25, default 5) | |
| resource | Yes | Full x402 resource URL to find better alternatives for, e.g. https://api.example.com/v1/thing | |
| minScoreDelta | No | Minimum trust-score advantage an alternative must have over the subject (default 5) |