api_tinyman_get_remove_liquidity_quote
Calculate the asset amounts you'll receive when removing liquidity from a Tinyman pool on Algorand, factoring in slippage and protocol version.
Instructions
Get quote for removing liquidity from a pool
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": {
"asset1Id": "<asset1Id>",
"asset2Id": "<asset2Id>",
"poolTokenAmount": "<poolTokenAmount>",
"initiatorAddr": "<initiatorAddr>"
},
"name": "api_tinyman_get_remove_liquidity_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset1Id | Yes | ID of the first asset | |
| asset2Id | Yes | ID of the second asset | |
| poolTokenAmount | Yes | Amount of pool tokens to burn | |
| initiatorAddr | Yes | Address of the account removing liquidity | |
| slippage | No | Maximum acceptable slippage (e.g., 0.01 for 1%) | |
| singleAssetMode | No | Whether to remove liquidity in single asset mode (v2 only) | |
| version | No | Tinyman protocol version | v2 |
| network | No | Algorand network to use (default: mainnet) | |
| itemsPerPage | No | Number of items per page for paginated responses (default: 10) |