Prepare: pay with ETH
buy_with_ethUnsigned transaction swapping the wallet's ETH for USDG or a stock on Uniswap, or through Route (route.fun) for a stock bought exact in when Route guarantees more (no Borro contract, no Borro fee), for the flows that need them.
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>",
"want": "<want>",
"amount": "<amount>"
},
"name": "buy_with_eth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| want | Yes | USDG, or a stock symbol | |
| amount | Yes | How much of it to get, in whole units as a decimal string, like "1.5" | |
| wallet | Yes | The wallet's address (0x...); the transactions are built for it to sign | |
| slip_bps | No | Most the price may move, in hundredths of a percent (default 100, 1%) |