trust_swap
Get a swap quote with safety checks on both tokens before returning Uniswap calldata.
Instructions
Get a trust-verified swap quote with calldata. Checks both tokens for safety before returning a Uniswap quote. Use this instead of raw DEX quotes.
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": {
"swapper": "<swapper>",
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amount": "<amount>"
},
"name": "trust_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| swapper | Yes | Wallet address executing the swap (0x...) | |
| tokenIn | Yes | Token being sold (0x...) | |
| tokenOut | Yes | Token being bought (0x...) | |
| amount | Yes | Amount of tokenIn in wei | |
| slippage | No | Slippage tolerance (e.g. 0.5 for 0.5%) |