Estimate GoodDollar Reserve Swap
estimate_gooddollar_reserve_swapEstimate gas for a GoodDollar reserve swap on Celo mainnet (G$ ↔ USDm via MentoBroker), including ERC-20 approval when needed. Requires CELO_PRIVATE_KEY — fails on hosted MCP without a local signer.
§ Inputs
| Name | Type | Description |
|---|---|---|
token_inRequired | string | GoodDollar or G$ |
token_outRequired | string | USDm or cUSD |
amountRequired | string | Human-readable amount; paired with amount_side (in = spend, out = receive) |
amount_side | string | 'in': amount is token_in spend (default). 'out': amount is desired token_out receive amount. |
from | string | Wallet on Celo mainnet. Omit to use the connected wallet or MCP CELO_PRIVATE_KEY signer. |
recipient | string | recipient |
slippage_tolerance | string | slippage tolerance |
§ Returns
{ approvalNeeded, approvalGas?, swapGas, totalGas, expectedOut, amountOutMin, … }§ Try saying
- Estimate gas to swap 1000 G$ to USDm via GoodDollar reserve.
Use this tool
Once Celina is wired into your MCP client, just ask in plain language. The LLM picks estimate_gooddollar_reserve_swap automatically.