Skip to main content
Glama

lookup_whale

Analyze cryptocurrency whale wallets by address to view balance history, token holdings, recent transactions, and PnL metrics using on-chain data.

Instructions

Get full detail for a single whale wallet by address. Returns balance history, token holdings, recent transactions, and PnL metrics. Cost: $0.02 per query. Source: On-chain analytics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesWallet address (e.g. 0x...)

Implementation Reference

  • The handler for the lookup_whale tool, which fetches details for a specific whale address from the API.
    async ({ address }) => {
      const res = await apiGet<{ dataset: string; data: Record<string, unknown> }>(
        `/api/v1/whales/${encodeURIComponent(address)}`,
      );
    
      if (!res.ok) {
        const msg =
          res.status === 404
            ? `Whale wallet ${address} not found.`
            : `API error (${res.status}): ${JSON.stringify(res.data)}`;
        return {
          content: [{ type: "text" as const, text: msg }],
          isError: res.status !== 404,
        };
      }
    
      const warn = stalenessWarning(res);
      return {
        content: [
          { type: "text" as const, text: `${warn}${JSON.stringify(res.data.data, null, 2)}` },
        ],
      };
    },
  • The input schema and tool definition for lookup_whale.
    {
      title: "Lookup Whale Wallet",
      description:
        "Get full detail for a single whale wallet by address. Returns balance history, " +
        "token holdings, recent transactions, and PnL metrics. " +
        "Cost: $0.02 per query. Source: On-chain analytics.",
      inputSchema: {
        address: z
          .string()
          .describe("Wallet address (e.g. 0x...)"),
      },
    },
  • The registration of the lookup_whale tool within the server.
    server.registerTool(
      "lookup_whale",

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