blackhole-mcp-server
v1.1.7MCP Server for Blackhole DEX Skills
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
swap_steps
Returns the step-by-step transaction payloads to perform a token swap on the Blackhole DEX. On the first call (slippageConfirmed omitted or false) the tool fetches a quote, then returns a slippage confirmation prompt showing the expected output and minimum received at the default 1% slippage. Present this to the user and ask if they want to change it. Re-call with slippageConfirmed=true once confirmed. Steps must be executed sequentially — if an approval step is present it must confirm on-chain before the swap is sent.
| Parameter | Type | Description |
|---|---|---|
tokenIn * | string | The address of the input token (e.g., AVAX, USDC). |
tokenOut * | string | The address of the output token. |
amountIn | string | Human-readable input amount (e.g., '10'). Ignored when amountInRaw is provided. |
amountInRaw | string | Raw input amount (wei). Preferred for exact full-balance swaps; takes precedence over amountIn. |
amountOutMin | string | Override: explicit human-readable min output amount. When omitted, computed from quote × (1 - slippage%). |
amountOutMinRaw | string | Override: explicit raw min output amount (wei). Takes precedence over amountOutMin. |
distributionPercent | number | Optional split granularity (used when useSplitRoutes=true; default 5). |
feeOnTransfer | boolean | Set to true to use fee-on-transfer (FOT) router functions. Auto-detected for known FOT tokens (e.g. fBOMB). Override with false to force standard path. |
maxSplits | number | Optional max split count (used when useSplitRoutes=true; default 4). |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
minSplits | number | Optional min split count (used when useSplitRoutes=true; default 0). |
poolAddress | string | Explicit pair/pool address if already known. |
slippageConfirmed | boolean | Set to true after the user confirms slippage. Defaults to false, returning a confirmation prompt. |
slippagePercent | number | Slippage tolerance % applied to the quoted output to compute amountOutMin (default 1%). |
tokenInDecimals | number | Decimals of the input token (defaults to 18). |
tokenOutDecimals | number | Decimals of the output token (defaults to 18). |
useSplitRoutes | boolean | Enable split-route search; swap_steps will use zapToSingleToken when split route wins. |
userAddress | string | Optional. The wallet address of the user performing the swap. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY… |
quote
Returns the best output quote and route for a token swap on the Blackhole DEX.
| Parameter | Type | Description |
|---|---|---|
amountIn * | string | The human-readable amount of the input token (e.g., '10'). |
tokenIn * | string | The address of the input token. |
tokenOut * | string | The address of the output token. |
distributionPercent | number | Optional split percentage granularity (e.g., 5). Used only when useSplitRoutes=true; defaults to 5. |
maxSplits | number | Optional maximum number of split routes in the combination. Used only when useSplitRoutes=true; defaults to 4. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
minSplits | number | Optional minimum number of split routes in the combination. Used only when useSplitRoutes=true; defaults to 0. |
tokenInDecimals | number | Decimals of the input token (defaults to 18). |
tokenOutDecimals | number | Decimals of the output token (defaults to 18). |
useSplitRoutes | boolean | Enable split-route combination search (5% distribution increments, up to 4 splits). Defaults to false. |
userAddress | string | Optional user address used for route context. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS. |
pool_yield
Pool liquidity and yield metrics. **Two different roles** (never add their APRs as one 'total'): 1) **LP** — **`apr`** = annualized **gauge emissions** (e.g. BLACK) to **staked liquidity** on that gauge, as a **snapshot**: same epoch emissions spread over the **staked liquidity base** already baked into the formula (V2: staked fraction of pool TVL; CL: active-liquidity proxy). When **adding LP** (especially if staked on the gauge), if your new size is a **large share** of that existing base, headline **apr** **falls** afterward — more wallets split the same emissions (dilution). Use **`ap…
| Parameter | Type | Description |
|---|---|---|
apr | object | LP emissions APR range filter (uses **current** staked-liquidity base in the metric; large new LP dilutes headline apr). |
fees | object | Fees (USD) range filter. |
hasGauge | boolean | When true, only return pools with a gauge attached. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
poolAddress | string | Optional specific pool address for single-pool metrics. |
poolType | string | Pool category filter mirroring the UI tabs (default 'all'). |
search | string | Case-insensitive substring match against pool symbol, name, or pairAddress. |
sortBy | string | Rank pools by one field. **apr** — LP gauge emissions vs **current staked-liquidity base** in the formula; headline **apr** **falls** if you add LP that is a **large fraction** of that base (dilutio… |
sortOrder | string | Sort direction (default desc). |
topN | number | Top N pools to return when poolAddress is not provided (default 10). |
tvl | object | TVL (USD) range filter. |
userAddress | string | Optional user address context for pair API pagination. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS. |
vapr | object | Filter by **voter-side** vAPR (uses **existing** votes on each gauge as denominator); irrelevant for pure LP filters. |
votes | object | Votes range filter. |
get_deposit_amounts
Given a pool and one token amount, returns how much of the other token is needed to add liquidity. For basic (v2) pools: uses current reserve ratio (amountOther = amountIn × reserveOther / reserveIn). For CL pools: uses tick-range math (Uniswap v3 style) — given one token amount and the tick range, derives the liquidity L then computes the paired amount. Pass tickLower/tickUpper of the intended range. Call this before add_liquidity_steps or add_liquidity_cl_steps so you have both token amounts ready.
| Parameter | Type | Description |
|---|---|---|
inputAmount * | string | Human-readable amount of inputToken to deposit. |
inputToken * | string | Address of the token whose amount you know. |
poolAddress * | string | Pool contract address. |
poolType * | string | basic = v2 AMM pool, cl = concentrated liquidity pool. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
tickLower | number | Lower tick of the CL range (required for poolType='cl'). |
tickUpper | number | Upper tick of the CL range (required for poolType='cl'). |
add_liquidity_steps
Returns the step-by-step transaction payloads to add liquidity on the Blackhole DEX. On the first call (slippageConfirmed omitted or false) returns a slippage confirmation prompt at the default 1% slippage. Present this to the user and ask if they want to change it. Re-call with slippageConfirmed=true once confirmed. IMPORTANT: Adding liquidity only mints LP tokens — it does NOT stake them. LP tokens must be staked in the gauge via stake_liquidity_steps to earn BLACK emissions/APR. Unstaked LP only earns swap fees. Steps must be executed sequentially — approval steps (if any) must confirm…
| Parameter | Type | Description |
|---|---|---|
amountADesired * | string | Desired human-readable amount of Token A. |
amountBDesired * | string | Desired human-readable amount of Token B. |
stable * | boolean | True if the pair is a stable pair. |
tokenA * | string | Address of the first token. |
tokenB * | string | Address of the second token. |
amountAMin | string | Override: minimum human-readable amount of Token A. When omitted, computed from amountADesired × (1 - slippage%). |
amountBMin | string | Override: minimum human-readable amount of Token B. When omitted, computed from amountBDesired × (1 - slippage%). |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
slippageConfirmed | boolean | Set to true after user confirms slippage. Defaults to false, returning a confirmation prompt. |
slippagePercent | number | Slippage % for amountAMin/amountBMin (default 1%). |
tokenADecimals | number | Decimals of Token A (defaults to 18). |
tokenBDecimals | number | Decimals of Token B (defaults to 18). |
userAddress | string | Optional. Wallet address of the user. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS. |
add_liquidity_cl_steps
Returns CL liquidity transaction steps with two modes: mint or mintAndStake. On the first call (slippageConfirmed omitted or false) returns a slippage confirmation prompt at the default 1% slippage. Present this to the user and ask if they want to change it. Re-call with slippageConfirmed=true once confirmed. Steps must be executed sequentially — approval steps (if any) must confirm before the mint transaction.
| Parameter | Type | Description |
|---|---|---|
amount0Desired * | string | Desired human-readable amount for token0. |
amount1Desired * | string | Desired human-readable amount for token1. |
mode * | string | Choose exactly one mode: mint or mintAndStake. |
tickLower * | number | Lower tick for the CL position. |
tickUpper * | number | Upper tick for the CL position. |
token0 * | string | Address of token0. Use '0xavax' for native AVAX in mode='mint'. |
token1 * | string | Address of token1. Use '0xavax' for native AVAX in mode='mint'. |
amount0Min | string | Override: minimum human-readable amount for token0. When omitted, computed from amount0Desired × (1 - slippage%). |
amount1Min | string | Override: minimum human-readable amount for token1. When omitted, computed from amount1Desired × (1 - slippage%). |
deadline | number | Optional unix deadline. Defaults to now + 20 minutes. |
deployer | string | Optional. Auto-resolved from poolAddress via pool.tickSpacing() when omitted. Do NOT guess. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
poolAddress | string | CL pool address. Required when deployer is omitted, so the server can auto-resolve deployer by tickSpacing. |
recipient | string | Optional. Recipient wallet for minted position. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. |
slippageConfirmed | boolean | Set to true after user confirms slippage. Defaults to false, returning a confirmation prompt. |
slippagePercent | number | Slippage % for amount0Min/amount1Min (default 1%). |
token0Decimals | number | Token0 decimals (defaults to 18). |
token1Decimals | number | Token1 decimals (defaults to 18). |
remove_liquidity_steps
Returns remove liquidity transaction steps for v2 pairs or CL positions. On the first call (slippageConfirmed omitted or false) the tool returns a slippage confirmation request — present the slippage details to the user and ask if they want to change it before proceeding. Re-call with slippageConfirmed=true once the user confirms. Steps must be executed sequentially — if an LP token approval step is present it must confirm before the remove transaction.
| Parameter | Type | Description |
|---|---|---|
mode * | string | Choose remove mode: v2 pair or concentrated liquidity position. |
amount0Min | string | Min token0 amount. Overridden by expectedAmount0+slippagePercent when both present. |
amount1Min | string | Min token1 amount. Overridden by expectedAmount1+slippagePercent when both present. |
amountAMin | string | Min token A amount. Overridden by expectedAmountA+slippagePercent when both present. |
amountBMin | string | Min token B amount. Overridden by expectedAmountB+slippagePercent when both present. |
burn | boolean | Burn position NFT after collect (mode='cl', default false). |
deadline | number | Optional unix deadline. Defaults to now + 20 minutes. |
deployer | string | Pool deployer address (mode='cl'). Pass when already known (from get_user_positions) to skip an extra lookup. Takes precedence over poolAddress. |
expectedAmount0 | string | Expected token0 output from CL removal. Used with slippagePercent to auto-compute amount0Min. |
expectedAmount1 | string | Expected token1 output from CL removal. Used with slippagePercent to auto-compute amount1Min. |
expectedAmountA | string | Expected token A output from LP removal. Used with slippagePercent to auto-compute amountAMin. |
expectedAmountB | string | Expected token B output from LP removal. Used with slippagePercent to auto-compute amountBMin. |
liquidity | string | Human-readable LP amount to remove (mode='v2'). Ignored when liquidityRaw is provided. |
liquidityDecimals | number | Liquidity decimals for parsing (mode='cl', default 18). |
liquidityRaw | string | Raw LP amount (wei) to remove (mode='v2'). Preferred for exact full-balance removes; takes precedence over liquidity. |
liquidityToRemove | string | Human-readable CL liquidity amount to remove (required for mode='cl'). |
lpTokenAddress | string | LP token/pair address (required for mode='v2'). |
lpTokenDecimals | number | LP token decimals (mode='v2', default 18). |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
poolAddress | string | Pool address (mode='cl'). Used to resolve deployer when deployer is not known. Available from get_user_positions. |
slippageConfirmed | boolean | Set to true after the user has confirmed the slippage. On false (default) the tool returns a confirmation prompt instead of steps. |
slippagePercent | number | Slippage tolerance % applied to minimum received amounts (default 1%). |
stable | boolean | Stable pair flag (required for mode='v2'). |
token0Decimals | number | Token0 decimals (mode='cl', default 18). |
token1Decimals | number | Token1 decimals (mode='cl', default 18). |
tokenA | string | Token A address (required for mode='v2'). |
tokenADecimals | number | Token A decimals (mode='v2', default 18). |
tokenB | string | Token B address (required for mode='v2'). |
tokenBDecimals | number | Token B decimals (mode='v2', default 18). |
tokenId | number | Position NFT tokenId (required for mode='cl'). |
userAddress | string | Optional. Recipient address for withdrawn tokens. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_AD… |
withdraw_liquidity_steps
Returns combined unstake + remove-liquidity transaction steps. Handles all cases automatically: V2 (withdrawAll from gauge → removeLiquidity via router), CL legacy (exitFarming on legacy farming center → decreaseLiquidity + collect on legacy NFPM), CL new deployer (exitFarming on new farming center → decreaseLiquidity + collect on new NFPM). Pass deployer from get_user_positions to route to the correct contracts. Use skipUnstake=true if the position is already unstaked or not in farming. On the first call (slippageConfirmed omitted or false) returns a slippage confirmation prompt — pre…
| Parameter | Type | Description |
|---|---|---|
mode * | string | |
amount0Min | string | |
amount1Min | string | |
amountAMin | string | |
amountBMin | string | |
burn | boolean | Burn CL position NFT after removal (default false). |
deadline | number | |
deployer | string | Pool deployer address (mode='cl'). Pass when known (from get_user_positions) to ensure the correct NFPM and pool API are used for legacy vs current positions. |
expectedAmount0 | string | Expected token0 output used with slippagePercent to auto-compute amount0Min. |
expectedAmount1 | string | Expected token1 output used with slippagePercent to auto-compute amount1Min. |
expectedAmountA | string | Expected token A output used with slippagePercent to auto-compute amountAMin. |
expectedAmountB | string | Expected token B output used with slippagePercent to auto-compute amountBMin. |
gaugeAddress | string | Explicit gauge address (optional). |
gaugeManagerAddress | string | Optional gaugeManager override for gauge resolution. |
liquidity | string | v2 human-readable LP amount to remove. Ignored when liquidityRaw is provided. |
liquidityDecimals | number | |
liquidityRaw | string | v2 raw LP amount (wei) to remove. Preferred for exact full-balance removes. |
liquidityToRemove | string | CL human-readable liquidity to remove. |
lpTokenAddress | string | v2 LP token address. |
lpTokenDecimals | number | |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
poolAddress | string | Used to resolve gauge for unstake when gaugeAddress is omitted. |
skipUnstake | boolean | Skip the unstake step (default false). |
slippageConfirmed | boolean | Set to true after the user confirms slippage. Defaults to false, returning a confirmation prompt. |
slippagePercent | number | Slippage % for minimum received amounts (default 0.5%). |
stable | boolean | v2 stable flag. |
token0Decimals | number | |
token1Decimals | number | |
tokenA | string | v2 token A address. |
tokenADecimals | number | |
tokenB | string | v2 token B address. |
tokenBDecimals | number | |
tokenId | number | CL position tokenId (also used to unstake CL). |
userAddress | string | Optional. Wallet address. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS. |
zap_add_liquidity_steps
Returns zapAndAddLiquidity transaction steps for basic pools. If swaps are omitted, MCP auto-computes split + routes. Output from zap_split_plan can be forwarded as-is: set `swaps` to plan.swaps (each entry's amountInRaw/amountOutMinRaw fields are accepted directly), and optionally pass amountAMinRaw/amountBMinRaw from the plan. IMPORTANT: This only mints LP tokens — it does NOT stake them. LP tokens must be staked via stake_liquidity_steps to earn BLACK emissions/APR. Unstaked LP only earns swap fees. Steps must be executed sequentially — input token approval steps (if any) must confirm b…
| Parameter | Type | Description |
|---|---|---|
inputAmounts * | array | |
inputTokens * | array | |
stable * | boolean | |
tokenA * | string | |
tokenB * | string | |
amountAMin | string | Human-readable min. Use amountAMinRaw instead when forwarding split-plan output. |
amountAMinRaw | string | Raw min (BigInt string). Takes precedence over amountAMin when both are given. |
amountBMin | string | Human-readable min. Use amountBMinRaw instead when forwarding split-plan output. |
amountBMinRaw | string | Raw min (BigInt string). Takes precedence over amountBMin when both are given. |
deadline | number | |
inputTokenDecimals | array | |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
poolAddress | string | Pool address required for auto split when swaps are omitted. |
slippageConfirmed | boolean | Set to true after user confirms slippage. Defaults to false, returning a confirmation prompt. |
slippagePercent | number | Slippage % for swap output and pool deposit minimums (default 1%). |
swaps | array | Pre-built swap routes. Each entry accepts either raw (amountInRaw, amountOutMinRaw) OR human (amountIn+amountInDecimals, amountOutMin+amountOutMinDecimals). Raw wins when both are present. This matche… |
to | string | Optional. Recipient wallet for LP tokens. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. |
tokenADecimals | number | |
tokenBDecimals | number | |
useNative | boolean |
zap_remove_liquidity_steps
Returns router zapAndRemoveLiquidity (v2) or zapAndRemoveCL (CL) transaction steps that remove liquidity and swap both sides into a single outputToken. On the first call (slippageConfirmed omitted or false) the tool returns a two-slippage confirmation request: removeSlippagePercent (LP removal amountAMin/amountBMin) and slippagePercent (swap minAmountOut). Present both values to the user and ask if they want to change either before re-calling with slippageConfirmed=true. Steps must be executed sequentially — if an LP token approval step is present it must confirm before the zap transaction.
| Parameter | Type | Description |
|---|---|---|
mode * | string | |
outputToken * | string | Target token to zap both sides into. |
amount0Min | string | |
amount0MinDecimals | number | |
amount1Min | string | |
amount1MinDecimals | number | |
deadline | number | Optional unix deadline. |
deployer | string | Pool deployer address (mode='cl'). Pass when already known (from get_user_positions) to skip an extra lookup. Takes precedence over poolAddress. |
expectedAmountA | string | Human-readable expected tokenA/token0 output from LP removal (required for auto-plan). |
expectedAmountARaw | string | Raw expected tokenA/token0 output (takes precedence over expectedAmountA). |
expectedAmountB | string | Human-readable expected tokenB/token1 output from LP removal (required for auto-plan). |
expectedAmountBRaw | string | Raw expected tokenB/token1 output (takes precedence over expectedAmountB). |
liquidity | string | v2 human-readable LP amount. Ignored when liquidityRaw is provided. |
liquidityRaw | string | Raw liquidity amount. For mode='v2': LP amount in wei (preferred for exact full-balance removes). For mode='cl': raw uint128 liquidity to decrease. |
lpTokenAddress | string | v2 LP token (for approval). |
lpTokenDecimals | number | |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
minAmountOut | string | Human-readable min outputToken amount (default 0). |
minAmountOutRaw | string | Raw min (BigInt string). Takes precedence over minAmountOut. |
outputTokenDecimals | number | Decimals for outputToken minAmountOut parsing (default 18). |
poolAddress | string | Pool address (mode='cl'). Used to resolve deployer when deployer is not known. Available from get_user_positions. |
removeSlippagePercent | number | Remove slippage %: applied to amountAMin/amountBMin from LP token removal (default 1%). |
slippageConfirmed | boolean | Set to true after the user confirms both slippage values. Defaults to false, which returns a confirmation prompt. |
slippagePercent | number | Swap slippage %: applied to each swap's amountOutMin and overall minAmountOut (default 1%). |
stable | boolean | v2 stable flag. |
swaps | array | Pre-built Zap.Swap[] routes. Each entry accepts either raw (amountInRaw, amountOutMinRaw) OR human (amountIn+amountInDecimals, amountOutMin+amountOutMinDecimals). Raw wins when both present. If omitte… |
to | string | Recipient of outputToken (defaults to userAddress). |
token0 | string | CL token0 (used for auto-plan). |
token0Decimals | number | |
token1 | string | CL token1 (used for auto-plan). |
token1Decimals | number | |
tokenA | string | v2 token A. |
tokenADecimals | number | |
tokenB | string | v2 token B. |
tokenBDecimals | number | |
tokenId | number | CL position tokenId. |
unwrapWETH | boolean | Unwrap WAVAX to native AVAX for outputToken (default false). |
userAddress | string | Optional. Wallet address. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS. |
zap_mint_cl_steps
Returns zapAndMintCL or zapMintAndStakeCL transaction steps for new CL positions. If swaps are omitted, MCP auto-computes split + routes. Output from zap_split_plan can be forwarded as-is: set `swaps` to plan.swaps (amountInRaw/amountOutMinRaw accepted directly), and optionally pass amount0MinRaw/amount1MinRaw from the plan. IMPORTANT: mode='mint' only creates the position — it does NOT enter farming. Use mode='mintAndStake' to mint and enter farming in one call, or follow with stake_liquidity_steps. Unstaked CL positions earn swap fees only. Steps must be executed sequentially — input tok…
| Parameter | Type | Description |
|---|---|---|
inputAmounts * | array | |
inputTokens * | array | |
tickLower * | number | |
tickUpper * | number | |
token0 * | string | |
token1 * | string | |
amount0Min | string | Human-readable min. Use amount0MinRaw instead when forwarding split-plan output. |
amount0MinRaw | string | Raw min (BigInt string). Takes precedence over amount0Min. |
amount1Min | string | Human-readable min. Use amount1MinRaw instead when forwarding split-plan output. |
amount1MinRaw | string | Raw min (BigInt string). Takes precedence over amount1Min. |
deadline | number | |
deployer | string | Optional. Auto-resolved from poolAddress via pool.tickSpacing() when omitted. Do NOT guess. |
inputTokenDecimals | array | |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
mode | string | mint => zapAndMintCL, mintAndStake => zapMintAndStakeCL. |
poolAddress | string | CL pool address. Required for auto split and to auto-resolve deployer when omitted. |
recipient | string | Optional. Recipient wallet for minted CL position. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. |
slippageConfirmed | boolean | Set to true after user confirms slippage. Defaults to false, returning a confirmation prompt. |
slippagePercent | number | Slippage % for swap output and pool deposit minimums (default 1%). |
swaps | array | Pre-built swap routes. Each entry accepts either raw (amountInRaw, amountOutMinRaw) OR human (amountIn+amountInDecimals, amountOutMin+amountOutMinDecimals). Raw wins when both present. Matches zap_spl… |
token0Decimals | number | |
token1Decimals | number | |
useNative | boolean |
zap_increase_liquidity_steps
Returns zapAndIncreaseLiquidity steps for existing CL positions only. If swaps are omitted, MCP auto-computes split + routes. Output from zap_split_plan can be forwarded as-is: set `swaps` to plan.swaps (amountInRaw/amountOutMinRaw accepted directly), and optionally pass amount0MinRaw/amount1MinRaw from the plan. Steps must be executed sequentially — input token approval steps (if any) must confirm before the zap increase transaction.
| Parameter | Type | Description |
|---|---|---|
inputAmounts * | array | |
inputTokens * | array | |
token0 * | string | |
token1 * | string | |
tokenId * | number | |
amount0Min | string | Human-readable min. Use amount0MinRaw when forwarding split-plan output. |
amount0MinRaw | string | Raw min (BigInt string). Takes precedence over amount0Min. |
amount1Min | string | Human-readable min. Use amount1MinRaw when forwarding split-plan output. |
amount1MinRaw | string | Raw min (BigInt string). Takes precedence over amount1Min. |
deadline | number | |
deployer | string | Pool deployer address. Pass when already known (from get_user_positions) to skip an extra lookup. Takes precedence over poolAddress. |
inputTokenDecimals | array | |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
poolAddress | string | CL pool address required for auto split when swaps are omitted. |
routeRecipient | string | Optional address used as route receiver context for auto route search. |
slippageConfirmed | boolean | Set to true after user confirms slippage. Defaults to false, returning a confirmation prompt. |
slippagePercent | number | Slippage % for swap output and pool deposit minimums (default 1%). |
swaps | array | Pre-built swap routes. Each entry accepts either raw (amountInRaw, amountOutMinRaw) OR human (amountIn+amountInDecimals, amountOutMin+amountOutMinDecimals). Raw wins when both present. Matches zap_spl… |
tickLower | number | Required for auto split when swaps are omitted. |
tickUpper | number | Required for auto split when swaps are omitted. |
token0Decimals | number | |
token1Decimals | number | |
useNative | boolean | |
userAddress | string | Optional signer address; when provided, already-sufficient approvals are skipped. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS. |
zap_split_plan
Returns a reusable split/route plan for zap liquidity operations.
| Parameter | Type | Description |
|---|---|---|
inputAmount * | string | |
inputToken * | string | |
poolAddress * | string | |
poolType * | string | Pool type to apply split-ratio logic. |
routeRecipient * | string | |
tokenA * | string | |
tokenB * | string | |
inputTokenDecimals | number | |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
slippagePercent | number | |
tickLower | number | |
tickUpper | number |
stake_liquidity_steps
Returns stake transaction steps for v2 LP tokens (by amount) or CL position NFT (by tokenId). Resolves gauge automatically from poolAddress if gaugeAddress is omitted. Steps must be executed sequentially — LP token approval (if needed) must confirm before the stake transaction.
| Parameter | Type | Description |
|---|---|---|
mode * | string | Choose stake mode. |
amount | string | Human-readable LP amount (required for mode='v2'). |
amountDecimals | number | LP token decimals (mode='v2', default 18). |
deployer | string | Pool deployer address (mode='cl'). Pass when known (from get_user_positions) to use the correct pool API for gauge lookup. Takes precedence over poolAddress for deployer resolution. |
gaugeAddress | string | Optional explicit gauge address. |
gaugeManagerAddress | string | Optional override; when given, resolves gauge via gaugeManager.gauges(pool). |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
poolAddress | string | Pool/pair address (used to resolve gauge if gaugeAddress omitted; also used to resolve deployer if deployer is not provided). |
tokenId | number | Position NFT tokenId (required for mode='cl'). |
userAddress | string | Optional. User wallet address (context for v2 pair lookup). Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY,… |
unstake_liquidity_steps
Returns unstake transaction steps for v2 (withdrawAll) or CL (withdraw tokenId). Resolves gauge automatically from poolAddress if gaugeAddress is omitted.
| Parameter | Type | Description |
|---|---|---|
mode * | string | |
deployer | string | Pool deployer address (mode='cl'). Pass when known (from get_user_positions) to use the correct pool API for gauge lookup. Takes precedence over poolAddress for deployer resolution. |
gaugeAddress | string | |
gaugeManagerAddress | string | |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
poolAddress | string | Pool address (used to resolve gauge; also resolves deployer if deployer not provided). |
tokenId | number | Required for mode='cl'. |
userAddress | string | Optional. User wallet address. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS. |
claim_fees_steps
Returns claim-fees transaction steps for v2 pairs or CL positions.
| Parameter | Type | Description |
|---|---|---|
mode * | string | Choose claim mode: v2 pair or concentrated liquidity position. |
collectTo | string | Optional CL fee recipient override (mode='cl'). Defaults to userAddress. |
deployer | string | Pool deployer address (mode='cl'). Pass when known (from get_user_positions) to target the correct NFPM. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
pairAddress | string | V2 pair address (required for mode='v2'). |
poolAddress | string | Pool address (mode='cl'). Used to resolve deployer when deployer is not provided. |
tokenId | number | CL position NFT tokenId (required for mode='cl'). |
userAddress | string | Optional. Recipient address for claimed tokens. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDR… |
claim_emissions_steps
Returns emission-claim transaction steps for staked v2 or CL positions.
| Parameter | Type | Description |
|---|---|---|
mode * | string | Choose emissions claim mode: staked v2 pair or staked CL position. |
poolAddress * | string | Pool/pair address used to resolve gauge and gauge manager. |
deployer | string | Pool deployer address (mode='cl'). Pass from get_user_positions to route to the correct farming center (legacy vs current). |
isBonusReward | boolean | CL bonus-reward flag for Farming Center claim path (mode='cl', default false). |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
tokenId | number | CL position NFT tokenId (required for mode='cl'). |
userAddress | string | Optional. User wallet address used for pool context resolution. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_K… |
claim_rebase_steps
Returns transaction steps to claim rebase (anti-dilution) rewards for one or more veNFT locks from the RewardsDistributor. Rebase rewards accumulate each epoch proportional to voting power and compensate veBLACK holders for token inflation. Use get_user_locks to find tokenIds with non-zero rebaseClaimable before calling this.
| Parameter | Type | Description |
|---|---|---|
tokenIds * | array | One or more veNFT tokenIds to claim rebase for. Single tokenId calls claim(); multiple calls claim_many(). |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
userAddress | string | Optional. User wallet address. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS. |
claim_voting_rewards_steps
Returns claimBribes transaction steps for veNFT voting rewards.
| Parameter | Type | Description |
|---|---|---|
bribeAddresses * | array | Bribe contract addresses to claim from. |
bribeRewardTokens * | array | Reward token addresses per bribe (same order as bribeAddresses). |
tokenId * | number | veNFT lock tokenId used to claim voting rewards. |
gaugeManagerAddress | string | Optional gauge manager override. Defaults to pair API gaugeManager(). |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
userAddress | string | Optional. User wallet address context. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS. |
claim_voting_rewards_payload
Fetches voting rewards from veNFTAPI and returns a ready claimBribes payload for agents to execute.
| Parameter | Type | Description |
|---|---|---|
tokenId * | number | veNFT lock tokenId to build claim payload for. |
gaugeBatchSize | number | Optional gauge page size for veNFTAPI.getAllPairRewards (default 300). |
gaugeManagerAddress | string | Optional gauge manager override. Defaults to pair API gaugeManager(). |
gaugeOffset | number | Optional gauge offset for veNFTAPI.getAllPairRewards (default 0). |
includeZeroAmounts | boolean | Include zero-amount rewards while deriving payload (default false). |
lockBatchSize | number | Optional lock page size for veNFTAPI.getAllPairRewards (default 50). |
lockOffset | number | Optional lock offset for veNFTAPI.getAllPairRewards (default 0). |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
userAddress | string | Optional. User wallet address used to query veNFTAPI rewards. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY… |
create_lock_steps
Returns transaction steps to create a new veNFT lock. Two modes: (1) Timed lock — set lockDurationInSeconds up to 4 years; (2) Permanent SMveNFT lock — set isSMNFT=true; the lock never expires regardless of lockDurationInSeconds.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Human-readable token amount to lock. |
lockDurationInSeconds * | number | Lock duration in seconds (max 4 years). Required by the contract but has no effect on expiry when isSMNFT=true. |
amountDecimals | number | Token decimals for amount parsing (default 18). |
isSMNFT | boolean | Set true to create a permanent Super Massive veNFT (SMveNFT). The lock will never expire and grants additional voting power. This is NOT a 4-year lock — it is permanently locked. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
userAddress | string | Optional. User wallet address. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS. |
increase_lock_steps
Returns transaction steps to increase amount on an existing veNFT lock.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Human-readable amount to add to lock. |
tokenId * | number | |
amountDecimals | number | Token decimals for amount parsing (default 18). |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
userAddress | string | Optional. User wallet address. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS. |
merge_lock_steps
Returns transaction steps to merge one veNFT lock into another.
| Parameter | Type | Description |
|---|---|---|
fromTokenId * | number | Source lock tokenId. |
toTokenId * | number | Destination lock tokenId. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
userAddress | string | Optional. User wallet address. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS. |
lock_advanced_steps
Returns advanced veNFT lock operation steps. Actions: 'extend' (extend unlock time, max 4 years; set isSMNFT=true to make it a permanent SMveNFT instead), 'withdraw' (withdraw expired lock), 'lockPermanent' (convert existing lock to permanent — no expiry), 'unlockPermanent' (revert a permanent lock back to timed), 'claimRebase' (claim rebase/anti-dilution rewards from RewardsDistributor — use when get_user_locks shows non-zero rebaseClaimable). Note: SMveNFT (isSMNFT=true) and lockPermanent are both permanent but are distinct lock types.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
isSMNFT | boolean | For action='extend': set true to extend as a permanent SMveNFT. The lock will never expire. |
lockDurationInSeconds | number | Required for action='extend'. Lock duration in seconds (max 4 years). Ignored for expiry when isSMNFT=true. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
tokenId | number | |
userAddress | string | Optional. User wallet address. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS. |
vote_steps
Returns voterV3 voting transaction steps for veNFT voting actions.
| Parameter | Type | Description |
|---|---|---|
action * | string | Voting action to execute on voterV3. |
tokenId * | number | veNFT lock tokenId used for vote/reset/poke. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
poolAddresses | array | Pool addresses for action='vote'. |
poolWeights | array | Raw weight values for action='vote' (same order as poolAddresses). |
userAddress | string | Optional. User wallet address (context for voting operations). Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KE… |
get_lock_vote_state
Returns the complete state of a veNFT lock: locked amount, expiry, lock type (standard / superMassive / permanent), days until expiry, current voting power (including SMNFT boost), active pool allocations with percentages, carry-forward status, last-voted epoch timestamps, and auto-vote status. Use this whenever you need to inspect where a lock is currently voted, how much power it has, or whether its votes are carrying forward from a previous epoch.
| Parameter | Type | Description |
|---|---|---|
tokenId * | string | The veNFT token ID to query. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
vote_leaderboard
Gauge leaderboard for veBLACK voters. INCENTIVES = EXTERNAL BRIBES: these terms are interchangeable on Blackhole. When a user says 'add incentive', 'top incentive pools', or 'which pools have incentives', they mean external bribes via add_bribes_steps. Each row includes externalBribesUsd (USD value of external incentives this epoch). Voter rewards and vAPR depend only on this epoch's reward inventory (rewardTokens) and vote weight on the gauge (votes/votesUsd) -- NOT on pool TVL. tvlUsd is informational only. vAPR = implied annualized (fee + bribe/incentive) rewards per $1 of vote power --…
| Parameter | Type | Description |
|---|---|---|
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
minVotes | number | Optional **list filter**: minimum raw **`votes`** on the gauge (protocol vote units). **Preferred for dilution:** same units as `extra / (votes + extra)` — line up with your ve voting power in **`vo… |
minVotesUsd | number | Optional **list filter**: minimum **`votesUsd`** (votes × BLACK USD price). Use for a **dollar** threshold only; for dilution vs your on-chain vote size, prefer **`minVotes`** so units match row `vot… |
poolType | string | Filter by pool type (default 'all'). |
sortBy | string | Voter-centric sort. votes (default) -- rank by vote weight. vapr -- implied voter yield from rewardTokens / votes. emissionsUsd -- BLACK emissions per epoch. externalBribesUsd -- external incentive/br… |
sortOrder | string | Sort direction (default desc). |
topN | number | Number of gauges to return (default 25). |
get_epoch_state
Returns the current epoch timing state from the Blackhole minter: epoch number, start/end timestamps, time remaining, and scheduled BLACK emissions for this epoch. Use this to determine where in the vote cycle you are before placing or adjusting votes.
| Parameter | Type | Description |
|---|---|---|
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
get_tokenomics
Returns BLACK token tokenomics: total supply, circulating supply, market cap, FDV, current epoch emissions, and a projected 10-epoch emissions schedule. Circulating supply excludes tokens locked in veNFTs and burned tokens. Market cap and FDV are null if the price feed is unavailable.
| Parameter | Type | Description |
|---|---|---|
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
create_gauge_steps
Returns transaction steps to create a gauge on GaugeManager via createGaugeWithBonusReward.
| Parameter | Type | Description |
|---|---|---|
bonusRewardToken * | string | Bonus reward token address (usually the protocol token). |
gaugeType * | number | 0 = basic V2 pool, 1 = concentrated liquidity pool. |
poolAddress * | string | Pool/pair address to gauge-ify. |
gaugeManagerAddress | string | Optional override; defaults to pair API gaugeManager(). |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
userAddress | string | Optional. User wallet address (tx sender). Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS. |
add_bribes_steps
Add incentives (external bribes) to a gauge — 'incentive' and 'bribe' are interchangeable on Blackhole. Returns transaction steps to deposit tokens into a pool's external bribe contract via notifyRewardAmount. Incentives flow to veBLACK voters who vote for that gauge this epoch. Use vote_leaderboard with sortBy='externalBribesUsd' to find the bribeAddress for a pool.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Human-readable bribe amount. |
bribeAddress * | string | External bribe contract address for the gauge. |
rewardToken * | string | Reward token address being deposited as bribe. |
amountDecimals | number | Reward token decimals (default 18). |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
userAddress | string | Optional. User wallet address (tx sender). Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS. |
create_cl_pool_steps
Returns transaction steps to deploy a new concentrated-liquidity pool via customPoolDeployer.createCustomPool. Pass tickSpacing (1/50/100/200) to auto-resolve deployerAddress, or pass deployerAddress directly.
| Parameter | Type | Description |
|---|---|---|
creator * | string | Pool creator address (usually the user). |
initialPrice * | string | Human-readable initial price (tokenB per tokenA). |
tokenA * | string | Address of token A. |
tokenADecimals * | number | Decimals of token A. |
tokenB * | string | Address of token B. |
tokenBDecimals * | number | Decimals of token B. |
deployerAddress | string | Optional. Tick-spacing-specific custom pool deployer address. Auto-resolved from tickSpacing when omitted. Do NOT guess. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
poolInitData | string | Optional bytes payload forwarded to deployer (default '0x'). |
tickSpacing | number | CL tick spacing. Used to auto-resolve deployerAddress when it is omitted. |
userAddress | string | User wallet address (tx sender). If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS. |
resolve_address
Look up protocol/system addresses. Kinds: 'user_address' (the address configured via PRIVATE_KEY or USER_ADDRESS env var — use when the user asks for 'my address', 'my wallet', 'configured address', etc.), 'protocol' (router, voter, pair_api, nfpm, wavax, black, etc. — see 'list_protocol' for full list), 'cl_deployer' (current deployer by tickSpacing 1/10/50/100/200), 'cl_deployer_legacy' (legacy/pre-migration deployer by tickSpacing 1/50/100/200), 'pool' (basic_stable/basic_volatile/cl for tokenA+tokenB, CL requires tickSpacing), 'gauge' (for a pool), 'pool_from_gauge' (reverse lookup via…
| Parameter | Type | Description |
|---|---|---|
kind * | string | What to resolve. |
gaugeAddress | string | Gauge address. Required for kind='pool_from_gauge'. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
name | string | Protocol name for kind='protocol'. One of: router, router_helper, voter, voting_escrow, pair_api, pool_api_cl, pair_factory, algebra_factory, gauge_manager, nfpm, wavax, black, minter, ve_nft_api, bri… |
poolAddress | string | Pool address. Required for kind='gauge' or kind='bribe'. |
poolType | string | Pool category for kind='pool'. |
tickSpacing | number | CL tick spacing. Required for kind='cl_deployer' and for kind='pool' with poolType='cl'. |
tokenA | string | First token address. Required for kind='pool'. |
tokenB | string | Second token address. Required for kind='pool'. |
variant | string | Bribe contract variant for kind='bribe'. Defaults to 'external'. |
estimate_gas_and_tx_cost
Estimates gas limit and approximate native (AVAX) fee for one or more unsigned transactions on Avalanche C-Chain. Accepts the same { to, data, value } shape as compacted *_steps payloads (hex calldata). Use the user's wallet as `from`. For multi-step flows, pass `calls` in execution order; costs are summed.
| Parameter | Type | Description |
|---|---|---|
from * | string | Sender address (must match the wallet that will sign). |
calls | array | Optional list of { to, data, value? } objects. When present, root-level to/data/value are ignored. |
data | string | Hex-encoded calldata for a single transaction; use 0x for a plain AVAX transfer. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
to | string | Target address for a single transaction (ignored when `calls` is provided). |
value | string | Optional value in wei (decimal string) for a single transaction. Defaults to 0. |
get_token_balances
Returns all token balances (ERC20 + native AVAX) for an address with USD values. Use to check vault holdings before trading. Each entry has: `balance` (EXACT decimal string, do NOT round), `balanceRaw` (wei as string), `decimals`. Use `balance` verbatim as `amountIn` when spending the full balance.
| Parameter | Type | Description |
|---|---|---|
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
userAddress | string | Optional. Wallet address to check balances for. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDR… |
get_user_positions
Returns all active liquidity positions for an address — V2 LP balances, concentrated CL positions, and ALM (Steer/Gamma) vault positions. Includes exact V2 balances (`lpBalance`, `stakedBalance`) plus raw amounts (`lpBalanceRaw`, `stakedBalanceRaw`), token splits, claimable fees, pending emissions, sourceType (steer/gamma), vaultAddress, strategyName, and USD values for each.
| Parameter | Type | Description |
|---|---|---|
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
userAddress | string | Optional. Wallet address to check positions for. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADD… |
get_user_locks
Returns all veNFT locks for an address — locked amount, voting power, rebase rewards, lock expiry, vote distribution across pools, permanent/SMNFT status.
| Parameter | Type | Description |
|---|---|---|
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
userAddress | string | Optional. Wallet address to check locks for. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS… |
get_whitelisted_tokens
Returns all whitelisted tokens on Blackhole DEX with current USD prices. Use to discover available tokens and their addresses.
| Parameter | Type | Description |
|---|---|---|
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
get_allowances
Returns current ERC20 allowances for a wallet across the key Blackhole DEX spenders (router, router_helper, nfpm, voting_escrow, gauge_manager). Use this before executing any transaction to check whether approvals are already in place and avoid redundant approve steps. By default only non-zero allowances are returned.
| Parameter | Type | Description |
|---|---|---|
includeZero | boolean | Include tokens with zero allowance. Defaults to false. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
spenders | array | Spender names to check. Omit to check all key spenders. |
tokens | array | Specific token addresses to check. Omit to check all whitelisted tokens. |
userAddress | string | Optional. Wallet address to check allowances for. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_AD… |
get_pool_status
Returns full status of a specific pool: gauge activity (periodFinish, rewardRate, stakedSupply), token details, reserves/liquidity, TVL, **votes** (vote weight already on this gauge’s snapshot), epoch emissions, staked fees, bribe inventories (internal fee-shares + external incentives), ALM-managed liquidity (Steer/Gamma vaults on this pool), and `liquidityBreakdown` (totalTvlUsd, stakedTvlUsd, unstakedTvlUsd, stakedPercent, unstakedPercent). For CL pools, `cl.volume24hUsd`, `cl.volume7dUsd`, and cumulative `cl.totalVolumeUsd` are also provided; `liquidityBreakdown` assumes 100% staked TVL (…
| Parameter | Type | Description |
|---|---|---|
poolAddress * | string | Address of the pool (pair address) to check. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
get_opportunities
Scans a wallet for actionable items: expiring or expired veNFT locks (loss of voting power and rewards), unvoted locks (earning nothing), out-of-range CL positions (earning zero fees), and unclaimed rebase tokens. Note: votes carry forward automatically each epoch — there is no need to re-vote unless changing allocations. Run this proactively before any epoch-related action.
| Parameter | Type | Description |
|---|---|---|
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
userAddress | string | Optional. Wallet address to scan. Defaults to the address derived from PRIVATE_KEY or USER_ADDRESS env var. If omitted, the server uses the address derived from PRIVATE_KEY, or USER_ADDRESS. |
cl_tick_to_price
Convert a CL tick to a human-readable price. Optionally pass poolAddress to auto-detect token decimals and symbols.
| Parameter | Type | Description |
|---|---|---|
tick * | number | The tick value to convert. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
poolAddress | string | CL pool address — auto-detects decimals and symbols. |
token0Decimals | number | Decimals of token0 (default 18). |
token1Decimals | number | Decimals of token1 (default 18). |
cl_price_to_tick
Convert a human-readable price to the nearest valid CL tick. Aligns to pool tickSpacing when poolAddress is provided.
| Parameter | Type | Description |
|---|---|---|
price * | number | The price (token1 per token0) to convert. |
alignToSpacing | boolean | Align tick to pool tickSpacing (default true). |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
poolAddress | string | CL pool address — auto-detects decimals and aligns to tickSpacing. |
token0Decimals | number | Decimals of token0 (default 18). |
token1Decimals | number | Decimals of token1 (default 18). |
cl_position_detail
Get detailed info about a CL position range — prices at tick boundaries, width %, in-range status, token amounts. Use to understand what a position looks like before entering.
| Parameter | Type | Description |
|---|---|---|
poolAddress * | string | CL pool address. |
tickLower * | number | Lower tick of the range. |
tickUpper * | number | Upper tick of the range. |
depositUsd | number | Optional USD deposit amount to estimate position size. |
liquidityAmount | string | Optional liquidity amount to compute token split. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
cl_apr_simulator
Simulate APR for a CL pool at different position widths. Shows how APR changes as you go from narrow (high APR, high rebalance risk) to wide (low APR, stable). Essential for choosing optimal tick range.
| Parameter | Type | Description |
|---|---|---|
poolAddress * | string | CL pool address to simulate. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
widths | array | Optional array of widths in ticks to simulate. Defaults to common multiples of tickSpacing. |
get_alm_vaults
Lists all ALM (Automated Liquidity Management) vaults managed by Steer Protocol and Gamma on Blackhole DEX. Steer vaults are discovered dynamically via the Steer subgraph (filtered to Blackhole pools). Gamma vaults are discovered via on-chain calls to configured vault addresses. Returns per vault: sourceType, poolAddress, vaultAddress, strategyName, managerAddress, token amounts, tvlUsd, pool volumeUSD/feesUSD (cumulative), active (tvlUsd > 0), and Steer strategy metadata. Filter by poolAddress, activeOnly, or sourceType.
| Parameter | Type | Description |
|---|---|---|
activeOnly | boolean | If true, return only vaults with tvlUsd > 0. Defaults to false. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
poolAddress | string | Optional: filter to vaults managing liquidity for a specific pool address. |
sourceType | string | Filter by ALM provider. Defaults to 'all'. |
get_pool_lp_providers
Show top LP providers (liquidity providers) for a specific pool — supports both V2 (volatile/stable AMM) and concentrated liquidity (CL) pools. Returns wallets sorted by TVL held, with LP balances, token amounts, USD value, and each wallet's share of pool TVL. Answers: 'Which wallets hold the most liquidity in this pool?' and 'Show top LPs for pool X.'
| Parameter | Type | Description |
|---|---|---|
poolAddress * | string | The pool contract address to query LP providers for. |
limit | number | Maximum number of top LP providers to return. Default 20, max 100. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
execute_transactions
Executes one or more prepared transaction payloads on Avalanche using PRIVATE_KEY from the MCP server environment. Use only after the user has reviewed and confirmed the transaction steps.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to broadcast transactions with the configured private key. |
call | object | Single compact transaction object: { to, data, value }. |
calls | array | Compact transaction objects to execute sequentially: [{ to, data, value }]. |
data | string | Single transaction calldata as a 0x-prefixed hex string. |
from | string | Optional signer address safety check; must match the private key-derived address. |
mcp_debug | boolean | Optional. When true: pretty-print JSON and keep full transaction payloads (abi, functionName, args). When false or omitted: compact JSON and encode calldata as { to, value, data }. |
steps | array | Step objects from *_steps tools. Executed sequentially — each transaction is confirmed before the next is sent. Critical for approval→action pairs: the approval must land on-chain before the depen… |
to | string | Single transaction target address. Use this with `data` and optional `value`. |
value | string | Single transaction native value in wei as a decimal or hex string. Defaults to 0. |
waitForReceipt | boolean | Wait for each transaction receipt before sending the next call. Defaults to true. |