Skip to main content

gswap toolset: tools and prompts

The gswap toolset of @gala-chain/gala-mcp-server 1.0.0-rc.9 provides GSwap DEX quotes, swaps, pools, liquidity positions, fees, market prices and the leaderboard. It defines 32 tools and 34 prompts. A prompt is offered only when every tool it names is registered by the selection.

The same data, with every parameter's type and description, is at /mcp/gswap/tools.json. * marks a required parameter. Tools whose description says they need authentication need a wallet in full-access mode.

Tools​

get​

ToolWhat it doesAuthParameters
gala_launchpad_get_swap_quote_exact_inputGet a v6 GSwap quote for an exact input amount through gswap-sdk (gSwap.quoting.quoteExactInput)nofromToken, toToken, amount*, fee
gala_launchpad_get_swap_quote_exact_outputGet a v6 GSwap quote for an exact output amount through gswap-sdk (gSwap.quoting.quoteExactOutput)nofromToken, toToken, amount*, fee
gala_launchpad_get_swap_resultResolve the outcome of a previously queued GSwap swap by its uniqueKey through gswap-sdk (gSwap.swaps.confirmSwap), without resubmittingnouniqueKey*, timeoutMs
gala_launchpad_get_swap_user_assetsGet one page of GSwap assets for a wallet through gswap-sdk (gSwap.assets.getUserAssets)nowalletAddress*
gala_launchpad_get_all_swap_user_assetsFetch all GSwap assets for a wallet through gswap-sdk (gSwap.assets.getUserAssets)nowalletAddress*
gala_launchpad_get_swap_pool_infoGet current-contract GSwap pool information for a token pairnotokenA, tokenB
gala_launchpad_get_swap_pool_priceGet current-contract GSwap price state through gswap-sdk (gSwap.pools.getSlot0)notoken0, token1, fee*
gala_launchpad_get_user_liquidity_positionsGet current-contract GSwap liquidity positions owned by an addressnoownerAddress*
gala_launchpad_get_all_user_liquidity_positionsGet all current-contract GSwap liquidity positions owned by an addressnoownerAddress*
gala_launchpad_get_liquidity_position_by_idGet one current-contract GSwap position by its pair, fee, owner, and tick rangenotoken0, token1, fee, tickLower, tickUpper, ownerAddress
gala_launchpad_get_liquidity_positionGet one current-contract GSwap position by pair, owner, and tick rangenotoken0, token1, fee, tickLower, tickUpper, ownerAddress

calculate​

ToolWhat it doesAuthParameters
gala_launchpad_calculate_dex_pool_quote_localCalculate a DEX quote through the v6 GSwap quoting servicenotoken0, token1, fee, fromToken, toToken, amount
gala_launchpad_calculate_dex_pool_quote_externalCalculate a server-backed DEX quote through the v6 GSwap quoting servicenotoken0, token1, fee, fromToken, toToken, amount

execute​

ToolWhat it doesAuthParameters
gala_launchpad_execute_swapExecute a GSwap trade through gswap-sdk (gSwap.swaps.swap) and return its confirmation resultnofromToken, toToken, inputAmount, estimatedOutput, feeTier*, slippageTolerance

fetch​

ToolWhat it doesAuthParameters
gala_launchpad_fetch_dex_poolsFetch current-contract GSwap pools through gswap-sdk (gSwap.pools.getPools)nosearch, sortBy, sortOrder, cursor, pageSize
gala_launchpad_fetch_all_dex_poolsFetch all current-contract GSwap pools through gswap-sdk (gSwap.pools.getPools)nosearch, sortBy, sortOrder, withPrices
gala_launchpad_fetch_composite_pool_dataFetch a current-contract GSwap composite pool snapshot through gswap-sdk (gSwap.pools.getCompositePool)notoken0, token1, fee*
gala_launchpad_fetch_available_dex_tokensList registered GSwap trading symbols through gswap-sdk (gSwap.symbols.list)nosearch, pageSize, cursor
gala_launchpad_fetch_all_available_dex_tokensList all registered GSwap trading symbols through gswap-sdk (gSwap.symbols.list)nosearch
gala_launchpad_fetch_swap_position_directFetch one current-contract GSwap position by its compound pair and tick keynotoken0, token1, fee, tickLower, tickUpper, ownerAddress
gala_launchpad_fetch_all_dex_seasonsFetch all DEX leaderboard seasons - returns complete list of seasons with dates and rulesno-
gala_launchpad_fetch_current_dex_seasonFetch current active DEX leaderboard season - returns null if no season is activeno-
gala_launchpad_fetch_dex_leaderboard_by_season_idFetch DEX leaderboard for a specific season - returns rankings with XP metrics and achievementsnoseasonId*
gala_launchpad_fetch_current_dex_leaderboardFetch current DEX leaderboard for active season - returns null if no active seasonno-
gala_launchpad_fetch_dex_aggregated_volume_summaryFetch DEX aggregated volume summary with 1d/7d/30d volume (USD) and deltas (fraction of the previous period: -0.11 is 11% less)no-
gala_launchpad_fetch_gala_spot_priceFetch current GALA USD spot price (convenience method)no-

estimate​

ToolWhat it doesAuthParameters
gala_launchpad_estimate_remove_liquidityEstimate token amounts released by a current-contract GSwap liquidity withdrawalnotoken0, token1, fee, tickLower, tickUpper, liquidity, ownerAddress*

add​

ToolWhat it doesAuthParameters
gala_launchpad_add_liquidity_by_priceAdd liquidity through gswap-sdk (gSwap.positions.addLiquidityByPrice) and return confirm() outputnotoken0, token1, fee, minPrice, maxPrice, amount0Desired, amount1Desired*, amount0Min, amount1Min, amountIsToken0
gala_launchpad_add_liquidity_by_ticksAdd liquidity through gswap-sdk (gSwap.positions.addLiquidityByTicks) and return confirm() outputnotoken0, token1, fee, tickLower, tickUpper, amount0Desired, amount1Desired*, amount0Min, amount1Min, amountIsToken0

remove​

ToolWhat it doesAuthParameters
gala_launchpad_remove_liquidityRemove current-contract GSwap liquidity and return confirm() outputnotoken0, token1, fee, tickLower, tickUpper, ownerAddress, liquidity, amount0, amount1

collect​

ToolWhat it doesAuthParameters
gala_launchpad_collect_position_feesCollect current-contract GSwap position fees and return confirm() outputnotoken0, token1, fee, tickLower, tickUpper, ownerAddress

on​

ToolWhat it doesAuthParameters
gala_launchpad_on_dex_pool_creationWatch for new DEX pool creation by polling, not a real-time push eventnominTVL, tokens, intervalMs, durationSeconds

Prompts​

PromptTierWhat it doesArgumentsTools it names
galachain-launchpad:discover-poolslegacyDiscover DEX liquidity pools with filtering and analysis - find hot pools, high TVL, or high volume trading opportunitiessearch, sortBy, sortOrder, minTvl, minVolume, page, limitgala_launchpad_fetch_dex_pools
galachain-launchpad:fetch-all-poolslegacyFetch ALL DEX liquidity pools with auto-pagination for comprehensive analysissortBy, sortOrdergala_launchpad_fetch_all_dex_pools
galachain-launchpad:check-leaderboardlegacyView top DEX pools ranked by TVL, volume, or APRmetric, limitgala_launchpad_fetch_current_dex_leaderboard
galachain-launchpad:manage-liquiditylegacyComplete liquidity provider workflow - deposit liquidity, monitor positions, collect fees, and manage LP strategiesaction*, token0, token1, feeTier, minPrice, maxPricegala_launchpad_add_liquidity_by_price, gala_launchpad_collect_position_fees, gala_launchpad_estimate_remove_liquidity, gala_launchpad_get_swap_pool_price, gala_launchpad_get_swap_user_assets, gala_launchpad_get_user_liquidity_positions, gala_launchpad_remove_liquidity
galachain-launchpad:add-liquidity-by-pricelegacyCreate new LP position by specifying price range and token amountstoken0, token1, feeTier, minPrice, maxPrice, amount0, amount1*gala_launchpad_add_liquidity_by_price, gala_launchpad_get_swap_pool_price
galachain-launchpad:collect-feeslegacyCollect accumulated swap fees from your LP positionspositionId*gala_launchpad_collect_position_fees, gala_launchpad_get_user_liquidity_positions
galachain-launchpad:remove-liquiditylegacyExit an LP position and retrieve your tokenspositionId*gala_launchpad_estimate_remove_liquidity, gala_launchpad_get_user_liquidity_positions, gala_launchpad_remove_liquidity
galachain-launchpad:optimize-liquiditylegacyAdvanced liquidity optimization strategies - multi-tier positions, fee tier selection, range managementtokenPair*, strategy, targetYield-
galachain-launchpad:advanced-positionslegacyAdvanced liquidity position management - multi-leg strategies, fee collection, position monitoringaction*, positionId-
galachain-launchpad:liquidity-strategylegacyPlan and optimize liquidity provision strategy based on market conditions and risk tolerancemarketCondition, riskTolerance-
galachain-launchpad:fetch-available-dex-tokenslegacyDiscover all tokens available for trading on the DEX with rich metadatasearch, allgala_launchpad_fetch_all_available_dex_tokens, gala_launchpad_fetch_available_dex_tokens
galachain-launchpad:dex-swaplegacyExecute a token swap on GalaSwap DEX for graduated tokensfromToken, toToken, amount*, slippagegala_launchpad_execute_swap, gala_launchpad_get_swap_pool_info, gala_launchpad_get_swap_quote_exact_input, gala_launchpad_get_swap_quote_exact_output, gala_launchpad_get_swap_result, gala_launchpad_get_swap_user_assets
galachain-launchpad:get-all-swap-user-assetslegacyGet ALL token assets for a wallet with automatic paginationwalletAddress*gala_launchpad_get_all_swap_user_assets
galachain-launchpad:fetch-composite-pool-datalegacyFetch complete pool state for offline DEX quote calculationstoken0, token1, fee*gala_launchpad_fetch_composite_pool_data, gala_launchpad_get_swap_quote_exact_input
galachain-launchpad:calculate-dex-pool-quotelegacyCalculate DEX swap quote using local or external calculationtoken0, token1, fee, fromToken, toToken, amount, modegala_launchpad_calculate_dex_pool_quote_local
galachain-launchpad:fetch-dex-poolslegacyDiscover DEX liquidity pools with pagination, sorting, and search filteringsearch, sortBy, sortOrder, page, limitgala_launchpad_fetch_dex_pools
galachain-launchpad:fetch-all-dex-poolslegacyDiscover ALL DEX liquidity pools with automatic paginationsearch, sortBy, sortOrdergala_launchpad_fetch_all_dex_pools
galachain-launchpad:my-positionslegacyView all your open liquidity positions on GalaSwap DEX with details about each position-gala_launchpad_get_user_liquidity_positions
galachain-launchpad:add-liquiditylegacyAdd liquidity to a GalaSwap DEX pooltoken0, token1, amount0, amount1, minPrice, maxPrice, feeTiergala_launchpad_add_liquidity_by_price, gala_launchpad_get_swap_pool_info, gala_launchpad_get_swap_user_assets
galachain-launchpad:get-all-liquidity-positionslegacyGet ALL liquidity positions for a wallet with automatic pagination and optional pricingownerAddress*, withPricesgala_launchpad_get_all_user_liquidity_positions
galachain-launchpad:estimate-remove-liquiditylegacyEstimate tokens and fees received when removing liquidity from a positiontoken0, token1, fee, liquidity, tickLower, tickUpper, ownerAddress*gala_launchpad_estimate_remove_liquidity
galachain-launchpad:fetch-position-directlegacyFetch a single liquidity position using the compound key (most efficient when you have all position parameters)token0, token1, fee, tickLower, tickUpper, ownergala_launchpad_fetch_swap_position_direct
galachain-launchpad:fetch-gala-spot-pricelegacyFetch current GALA USD spot price-gala_launchpad_fetch_gala_spot_price
galachain-launchpad:watch-dex-poolslegacyWatch for new DEX pools by polling the swap backend pool list (not the realtime stream)duration, minTVL, tokensgala_launchpad_on_dex_pool_creation
galachain-launchpad:fetch-all-dex-seasonslegacyFetch all DEX leaderboard seasons - explore season dates and rules-gala_launchpad_fetch_current_dex_season, gala_launchpad_fetch_dex_leaderboard_by_season_id
galachain-launchpad:fetch-current-dex-seasonlegacyFetch the currently active DEX leaderboard season-gala_launchpad_fetch_all_dex_seasons, gala_launchpad_fetch_current_dex_leaderboard, gala_launchpad_fetch_dex_leaderboard_by_season_id
galachain-launchpad:fetch-dex-leaderboard-by-season-idlegacyFetch DEX leaderboard rankings for a specific seasonseasonId*gala_launchpad_fetch_all_dex_seasons, gala_launchpad_fetch_current_dex_leaderboard, gala_launchpad_fetch_current_dex_season
galachain-launchpad:fetch-current-dex-leaderboardlegacyFetch DEX leaderboard rankings for the currently active season-gala_launchpad_fetch_all_dex_seasons, gala_launchpad_fetch_current_dex_season, gala_launchpad_fetch_dex_leaderboard_by_season_id
galachain-launchpad:fetch-dex-aggregated-volume-summarylegacyFetch DEX aggregated volume summary with 1d/7d/30d trend metrics-gala_launchpad_fetch_all_dex_pools, gala_launchpad_fetch_dex_pools, gala_launchpad_get_swap_quote_exact_input
galachain-launchpad:subscribe-dex-liquidity-addedlegacySubscribe to real-time DEX liquidity addition events via WebSocket connectionduration, minLiquiditygala_launchpad_on_dex_pool_creation
galachain-launchpad:subscribe-dex-liquidity-changedlegacySubscribe to real-time DEX liquidity modification events via WebSocket connectiondurationgala_launchpad_on_dex_pool_creation
galachain-launchpad:subscribe-dex-liquidity-removedlegacySubscribe to real-time DEX liquidity removal events via WebSocket connectionduration, minAmountgala_launchpad_on_dex_pool_creation
galachain-launchpad:subscribe-dex-pool-addedlegacyWatch for new DEX pools by polling the swap backend pool list (not the realtime stream)duration, feeTiergala_launchpad_on_dex_pool_creation
galachain-launchpad:subscribe-dex-swap-executedlegacySubscribe to real-time DEX swap execution events via WebSocket connectionduration, minAmountgala_launchpad_on_dex_pool_creation