Route a request
phlece_route_requestPicks the best-fit provider for a need (tag, search, a listing id, or max price) within the wallet's policy, reads its live x402 offer, and returns the EIP-3009 USDC authorization for the wallet to sign (EIP-712 typed data). Then call phlece_x402_header with the signature to get the payment header. Signing sends nothing; Phlece never holds the money.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"wallet": "<wallet>"
},
"name": "phlece_route_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| search | No | ||
| wallet | Yes | The agent wallet that pays (0x address). | |
| listing | No | Route to this listing only. | |
| maxPriceUsdc | No |