Skip to main content
Glama

query_whales

Identify large cryptocurrency wallets by filtering blockchain networks, minimum balances, and token holdings to analyze whale activity and holdings.

Instructions

List whale wallets filtered by blockchain, minimum balance, token, and activity. Returns wallet address, balance, token holdings, and last activity timestamp. Cost: $0.014 per query. Source: On-chain analytics, updated hourly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoFilter by blockchain network
min_balance_usdNoMinimum wallet balance in USD
tokenNoFilter by token symbol (e.g. WETH, USDC)
sortNoSort order (default: balance)
limitNoMaximum results (default 25)

Implementation Reference

  • The handler for query_whales tool which fetches data from the API endpoint /api/v1/whales.
    async ({ chain, min_balance_usd, token, sort, limit }) => {
      const res = await apiGet<WhaleQueryResponse>("/api/v1/whales", {
        chain,
        min_balance_usd,
        token,
        sort,
        limit: limit ?? 25,
      });
    
      if (!res.ok) {
        return {
          content: [
            {
              type: "text" as const,
              text: `API error (${res.status}): ${JSON.stringify(res.data)}`,
            },
          ],
          isError: true,
        };
      }
    
      const { count, data } = res.data;
      const warn = stalenessWarning(res);
      const summary = `${warn}Found ${count} whale wallet(s).`;
      const json = JSON.stringify(data, null, 2);
    
      return {
        content: [{ type: "text" as const, text: `${summary}\n\n${json}` }],
      };
    },
  • The registration of the query_whales tool including its schema definition.
    server.registerTool(
      "query_whales",
      {
        title: "Query Whale Wallets",
        description:
          "List whale wallets filtered by blockchain, minimum balance, token, and activity. " +
          "Returns wallet address, balance, token holdings, and last activity timestamp. " +
          "Cost: $0.014 per query. Source: On-chain analytics, updated hourly.",
        inputSchema: {
          chain: z
            .enum(["ethereum", "arbitrum", "polygon", "base", "bsc"])
            .optional()
            .describe("Filter by blockchain network"),
          min_balance_usd: z
            .number()
            .optional()
            .describe("Minimum wallet balance in USD"),
          token: z
            .string()
            .optional()
            .describe("Filter by token symbol (e.g. WETH, USDC)"),
          sort: z
            .enum(["balance", "activity", "pnl"])
            .optional()
            .describe("Sort order (default: balance)"),
          limit: z
            .number()
            .int()
            .min(1)
            .max(100)
            .optional()
            .describe("Maximum results (default 25)"),
        },
      },

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/carrierone/verilexdata-mcp'

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