UNPKG

@gala-chain/launchpad-mcp-server

Version:

MCP server for Gala Launchpad - 102 tools (pool management, event watchers, GSwap DEX trading, price history, token creation, wallet management, DEX pool discovery, liquidity positions, token locks, locked token queries, composite pool data, cross-chain b

43 lines 1.76 kB
"use strict"; /** * Fetch All Pools Tool * * Convenience tool that fetches all available pools with automatic pagination. * Equivalent to calling fetchPools with limit: 0. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.fetchAllPoolsTool = void 0; const response_formatter_js_1 = require("../../utils/response-formatter.js"); const error_handler_js_1 = require("../../utils/error-handler.js"); exports.fetchAllPoolsTool = { name: 'gala_launchpad_fetch_all_pools', description: 'Fetch all available pools with automatic pagination. No page/limit parameters needed - returns ALL pools matching filters. Note: For search functionality, use gala_launchpad_fetch_pools (paginated version) instead.', inputSchema: { type: 'object', properties: { tokenName: { type: 'string', minLength: 3, maxLength: 20, pattern: '^[a-zA-Z0-9]{3,20}$', description: 'Optional token name (exact match filter)', }, type: { type: 'string', enum: ['recent', 'popular'], description: 'Type of pools to fetch (default: recent)', }, }, }, handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => { const options = {}; // Note: search parameter removed - not supported in auto-pagination endpoint if (args.tokenName) options.tokenName = args.tokenName; if (args.type) options.type = args.type; const result = await sdk.fetchAllPools(options); return (0, response_formatter_js_1.formatSuccess)(result); }), }; //# sourceMappingURL=fetchAllPools.js.map