Skip to main content
Glama

token_monitor

Monitor token transfer activity, track whale movements, and identify unusual trading patterns for Hedera tokens using live blockchain data.

Instructions

Monitor recent token transfer activity, whale movements, and unusual trading patterns for a Hedera token. Costs 0.1 HBAR.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyYesYour HederaIntel API key
token_idYesHedera token ID to monitor (e.g. 0.0.123456)
limitNoNumber of recent transactions to return (default 25, max 100)

Implementation Reference

  • The handler logic for the token_monitor tool, which calculates whale concentration and fetches token balance data.
    if (name === "token_monitor") {
      const payment = chargeForTool("token_monitor", args.api_key);
      const base = getMirrorNodeBase();
      const limit = Math.min(args.limit || 25, 100);
    
      const tokenRes = await axios.get(`${base}/api/v1/tokens/${args.token_id}`);
      const token = tokenRes.data;
      const decimals = parseInt(token.decimals || 0);
      const totalSupply = parseInt(token.total_supply || 0);
    
      // Fetch holder balances — fetch max and sort client-side by balance desc
      const balRes = await axios.get(
        `${base}/api/v1/tokens/${args.token_id}/balances?limit=100&account.balance.gt=0`
      ).catch(() => ({ data: { balances: [] } }));
      const holders = (balRes.data.balances || []).sort((a, b) => parseInt(b.balance || 0) - parseInt(a.balance || 0));
    
      // SaucerSwap price
      const saucerTokens = await getSaucerSwapTokens();
      const saucerToken = saucerTokens.find(t => t.id === args.token_id);
    
      // Top holders / whale detection
      const top10Balance = holders.slice(0, 10).reduce((s, b) => s + parseInt(b.balance || 0), 0);
      const concentrationPct = totalSupply > 0 ? (top10Balance / totalSupply * 100).toFixed(1) : 0;
    
      const whales = holders.slice(0, limit).map((b, i) => ({
        rank: i + 1,
        account: b.account,
        balance: (parseInt(b.balance) / Math.pow(10, decimals)).toLocaleString(),
        pct_supply: totalSupply > 0 ? (parseInt(b.balance) / totalSupply * 100).toFixed(2) + "%" : "unknown",
        is_treasury: b.account === token.treasury_account_id,
      }));
    
      // Activity signals
      const signals = [];
      if (parseFloat(concentrationPct) > 80) signals.push("HIGH CONCENTRATION - Top 10 holders control " + concentrationPct + "% of supply");
      if (holders.length < 20) signals.push("LOW DISTRIBUTION - Token held by fewer than 20 accounts");
      if (token.pause_status === "PAUSED") signals.push("WARNING - Token is currently PAUSED");
      if (saucerToken && !saucerToken.dueDiligenceComplete) signals.push("DEX CAUTION - SaucerSwap due diligence not complete");
      if (signals.length === 0) signals.push("No unusual patterns detected");
    
      return {
        token_id: args.token_id,
  • The tool registration definition and schema for token_monitor.
      name: "token_monitor",
      description: "Monitor recent token transfer activity, whale movements, and unusual trading patterns for a Hedera token. Costs 0.2 HBAR.",
      inputSchema: {
        type: "object",
        properties: {
          token_id: { type: "string", description: "Hedera token ID to monitor (e.g. 0.0.123456)" },
          limit: { type: "number", description: "Number of recent transactions to return (default 25, max 100)" },
          api_key: { type: "string", description: "Your HederaIntel API key" },
        },
        required: ["token_id", "api_key"],
      },
    },
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions the cost (0.1 HBAR) which is useful context, but doesn't describe what 'monitor' actually returns, whether it's real-time or historical data, rate limits, authentication requirements beyond the API key, or what constitutes 'unusual' patterns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately concise with two sentences that each serve a purpose - one describing the monitoring function, one stating the cost. There's no wasted verbiage, though it could be slightly more structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a monitoring tool with no annotations and no output schema, the description is incomplete. It doesn't explain what format the monitoring results take, what time periods are covered, how 'whale movements' are defined, or what constitutes the returned data structure. The cost information is helpful but insufficient for full understanding.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all three parameters thoroughly. The description doesn't add any meaningful parameter semantics beyond what's in the schema descriptions, so it meets the baseline of 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool monitors token transfer activity, whale movements, and unusual trading patterns for a Hedera token, which is a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like token_analyze or token_price, which might have overlapping monitoring functions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like token_analyze or token_price. It mentions a cost (0.1 HBAR) which implies a usage consideration, but doesn't specify when this monitoring tool is preferable to other analysis tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/mountainmystic/hederatoolbox'

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