Skip to main content
Glama

get_kaia_ecosystem_prices

Retrieve current market data for KAIA ecosystem tokens, including prices, market cap, trading volume, and price changes.

Instructions

Get comprehensive market data including prices, market capitalization, 24h trading volume, and 24h price changes for KAIA ecosystem tokens only (KAIA, BORA, MBX, SIX, stKAIA)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that fetches and filters the KAIA ecosystem prices.
    export const getKaiaEcosystemPrices = async () => {
        try {
            const allPricesResult = await getAllPrices();
            
            if (!allPricesResult.success) {
                return allPricesResult;
            }
    
            // KAIA ecosystem tokens (using standard symbols)
            const kaiaEcosystemSymbols = ['KAIA', 'BORA', 'MBX', 'SIX', 'stKAIA'];
            
            const ecosystemPrices = (allPricesResult.prices || []).filter((price: any) => 
                kaiaEcosystemSymbols.includes(price.symbol)
            );
    
            return {
                success: true,
                prices: ecosystemPrices,
                count: ecosystemPrices.length,
                category: 'kaia_ecosystem'
            };
        } catch (error: any) {
            console.error('Error fetching KAIA ecosystem prices:', error);
            return {
                success: false,
                error: error.message || 'Failed to fetch KAIA ecosystem prices'
            };
        }
    };
  • The tool definition and handler registration for 'get_kaia_ecosystem_prices'.
    export const GetKaiaEcosystemPricesTool: McpTool = {
        name: "get_kaia_ecosystem_prices",
        description: "Get comprehensive market data including prices, market capitalization, 24h trading volume, and 24h price changes for KAIA ecosystem tokens only (KAIA, BORA, MBX, SIX, stKAIA)",
        schema: {},
        handler: async (agent: WalletAgent, input: Record<string, any>) => {
            const result = await getKaiaEcosystemPrices();
    
            if (!result.success) {
                return {
                    status: "error",
                    message: (result as any).error
                };
            }
    
            const successResult = result as any;
            return {
                status: "success",
                prices: successResult.prices,
                count: successResult.count,
                category: successResult.category,
                timestamp: new Date().toISOString()
            };
        },
    };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tamago-labs/kaia-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server