Quote a private swap
gloam_swap_quoteQuote a private swap from a private Gloam balance: what you would get, the route, the vault's fee, and the first thing that would stop the swap (too thin a pool, a refund the vault could not take back, the relay's floor where gas is dear), or none. Read only: it never builds or sends a swap. A private swap hides who swapped; the tokens and amounts are public. To swap, use the Gloam app or the local server (npx -y @gloamtrade/mcp, gloam_execute_private_swap).
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": {
"from": "<from>",
"to": "<to>",
"amount": "<amount>"
},
"name": "gloam_swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The asset you receive: a symbol or a token address. | |
| from | Yes | The asset you pay with: a symbol (USDG, ETH, USDC.e) or a token address. | |
| amount | Yes | How much of `from` to swap, in whole units, e.g. "100" or "0.05". | |
| network | No | Gloam network: "robinhood-mainnet" (Robinhood Chain mainnet: USDG, GLOAM, PONS, CASHCAT, ETH, AI and ORBIO), "tempo-mainnet" (Tempo mainnet: USDC.e, pathUSD, USDT0, OUSD), "base-mainnet" (Base mainnet: USDC, EURC, USDT, ETH), "ethereum-mainnet" (Ethereum mainnet: USDC, USDT, USDG, PYUSD, EURC, ETH), "elysium-mainnet" (Elysium mainnet: USDC; gas in HYPE), or a testnet: "tempo" (Tempo Moderato), "robinhood" (Robinhood Chain testnet), "base" (Base Sepolia) or "ethereum" (Ethereum Sepolia). | robinhood-mainnet |