Payment Route Selector
payment_route_selectorReject impossible x402 routes, rank safe eligible routes by policy and return the exact next payment action; read-only, deterministic, 0.002 USDC.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"policy": {
"max_latency_ms": 1000,
"allowed_networks": [
"eip155:8453"
],
"max_total_atomic": "3000",
"preferred_networks": [
"eip155:8453"
]
},
"routes": [
{
"asset": "USDC",
"scheme": "exact",
"network": "eip155:8453",
"available": true,
"x402_version": 2,
"amount_atomic": "2000",
"gas_sufficient": true,
"estimated_fee_atomic": "0",
"estimated_latency_ms": 100,
"facilitator_supported": true,
"wallet_balance_atomic": "10000"
}
]
},
"name": "payment_route_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | Yes | ||
| routes | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||