Build a swap (paid, x402)
swap_quote_buildBuild one non-custodial swap via POST /swap/build on this host ($0.01 USDC on Base via x402). Returns best route found at quote time, itemized fees, guaranteed minimum received, and an unsigned transaction. This MCP wrapper does not take payment itself: call the HTTP endpoint, answer its 402 challenge, and retry with PAYMENT-SIGNATURE.
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": {
"fromChain": "<fromChain>",
"fromToken": "<fromToken>",
"toChain": "<toChain>",
"toToken": "<toToken>",
"amount": "<amount>",
"fromAddress": "<fromAddress>"
},
"name": "swap_quote_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| toChain | Yes | ||
| toToken | Yes | ||
| fromChain | Yes | ||
| fromToken | Yes | ||
| toAddress | No | ||
| fromAddress | Yes | ||
| slippageBps | No | ||
| maxPriceImpactBps | No |