swap_txn
Build an unsigned token swap transaction on Humble Swap and return it base64-encoded for signing, so agents can prepare swaps without handling private keys.
Instructions
Build unsigned transactions to swap tokens on Humble Swap. Returns base64-encoded transactions for signing via UluWalletMCP.
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": {
"fromToken": "<fromToken>",
"toToken": "<toToken>",
"amount": "<amount>",
"sender": "<sender>"
},
"name": "swap_txn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to swap in human-readable units | |
| sender | Yes | Sender wallet address | |
| toToken | Yes | To token symbol or contract ID | |
| slippage | No | Allowed slippage percentage (default 5) | |
| fromToken | Yes | From token symbol or contract ID |