Skip to main content
Glama

evm_get_token_holdings_summary

Summarize a wallet's native and ERC-20 token holdings on an EVM testnet, filtering to non-zero balances and computing a portfolio diversity score for quick review.

Instructions

Summary of token holdings: native + ERC-20 tokens with diversity metrics.

CRITICAL RULES:

  • Read-only operation

  • Native balance always included

  • Zero balances excluded by default

  • Portfolio diversity calculated

PARAMETERS:

  • chain: EVM chain (required)

  • address: Wallet address (required)

  • tokenAddresses: Specific tokens (optional)

  • includeZeroBalances: Show zero balances (optional, default: false)

EXAMPLES: ✅ All holdings: {chain: "ethereum", address: "0x742d35Cc..."} ✅ Specific tokens: {chain: "polygon", address: "0x742d35Cc...", tokenAddresses: ["0xToken1...", "0xToken2..."]} ✅ Include zeros: {chain: "bsc", address: "0x742d35Cc...", includeZeroBalances: true}

SUPPORTED EVM CHAINS (7 networks): • ethereum (Sepolia) - EIP-1559 enabled, ~12s blocks, moderate gas costs • polygon (Amoy) - Low fees, fast finality (~2s), layer 2 • avalanche (Fuji C-Chain) - Sub-second finality, dynamic fees • bsc (BNB Testnet) - 3s blocks, low gas costs, Binance ecosystem • arbitrum (Sepolia) - Optimistic rollup, low fees, Ethereum security • base (Sepolia) - Coinbase layer 2, EIP-1559, low fees • worldchain (World Sepolia) - World Network testnet, EIP-1559

CRITICAL GAS CONSIDERATIONS:

  • Ethereum: High gas costs, use gas oracle for timing

  • Polygon/BSC: Very low gas, safe for frequent transactions

  • Arbitrum/Base: L2 optimizations, ~10-50x cheaper than Ethereum

  • Avalanche: Dynamic fees, can spike during congestion

  • Always check gas price before executing transactions

TESTNET TOKENS: All chains use testnet tokens with NO REAL VALUE. Faucets available for all supported networks.

OUTPUT STRUCTURE: • nativeBalance: Native token amount • tokenBalances: ERC-20 holdings array • diversityScore: Portfolio diversity metric • totalTokens: Number of unique tokens

Running on Linux.

LINUX-SPECIFIC NOTES:

  • Package manager: apt (Ubuntu/Debian), yum (RHEL/CentOS), or pacman (Arch)

  • Python 3 is typically 'python3' command

  • GNU tools are standard

  • Use 'xdg-open' command to open files/applications

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chain": "<chain>",
      "address": "<address>"
    },
    "name": "evm_get_token_holdings_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesEVM chain to query
addressYesEthereum address (0x...)
tokenAddressesNoOptional: Array of ERC-20 token contract addresses to check
includeZeroBalancesNoOptional: Include tokens with zero balance (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose key behavior: read-only, native balance always included, zero balances excluded by default, diversity calculated. It also documents the return shape. But it says nothing about failure modes, empty-wallet results, or performance across chains, and a large share of the text is unrelated boilerplate (gas advice, Linux package managers) that dilutes the behavioral signal.

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

Conciseness2/5

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

The purpose is front-loaded and the CRITICAL RULES block is well structured, but roughly half the description is off-topic: per-chain gas cost commentary, faucet notes, and a spurious 'Running on Linux' section about apt/yum/pacman that has nothing to do with querying token holdings. This is significant waste that an agent must filter out.

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

Completeness3/5

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

For a read-only, 4-parameter query tool, the essentials (scope, defaults, output structure) are present and no output schema exists so the OUTPUT STRUCTURE block does real work. Completeness is undermined by the absence of any guidance on large wallets, chain-specific behavior of the returned data, or error conditions.

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 four parameters including the includeZeroBalances default and the tokenAddresses array. The description's examples add only marginal meaning about how tokenAddresses interacts with the default zero-balance filtering; baseline 3 applies.

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 opening line names a specific resource and scope: 'Summary of token holdings: native + ERC-20 tokens with diversity metrics.' That distinguishes it from the single-asset siblings (evm_get_token_balance, evm_get_balance), though the description never names an alternative directly.

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

Usage Guidelines3/5

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

The EXAMPLES section demonstrates three invocation patterns (all holdings, filtered by tokenAddresses, includeZeroBalances), which implies when to use each parameter. However, there is no explicit statement of when to choose this tool over evm_get_token_balance or evm_get_account_analytics, and no exclusions or prerequisites.

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

Deploy Server

Other Tools