Skip to main content
Glama

get_token_balances

Lists all ERC-20 token balances held by an Ethereum address, including token name, symbol, contract address, and amount. Supports pagination for wallets with many tokens.

Instructions

List all ERC-20 token balances held by an Ethereum address. Returns token name, symbol, contract address, and human-readable amount for each token. Requires ETHERSCAN_API_KEY env var. Supports pagination for wallets with many tokens. Use get_erc20_transfers as fallback if no API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesEthereum address (0x...) to check token balances for
pageNoPage number for pagination (default 1)1
offsetNoNumber of results per page (default 100, max ~10000 with API key)100
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It mentions the requirement for an API key and pagination support, but does not explicitly state that the tool is read-only or disclose any potential side effects or error behavior.

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 concise (two sentences) and front-loaded with the purpose. However, it could be slightly more structured or include additional detail without being wordy.

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

Completeness4/5

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

Given no output schema, the description adequately explains return values and pagination. It covers the main use case and environment requirement, but lacks details on error conditions and response structure.

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 baseline is 3. The description adds minimal value beyond the schema, only mentioning pagination support broadly without specific parameter details.

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

Purpose5/5

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

The description clearly states it lists ERC-20 token balances for an Ethereum address and specifies the returned fields (name, symbol, contract, amount). It distinguishes itself from sibling tools like get_erc20_transfers and get_eth_balance.

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

Usage Guidelines4/5

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

Explicitly states the requirement for ETHERSCAN_API_KEY and recommends get_erc20_transfers as a fallback. Provides clear context on when to use this tool, though could be more explicit about when not to use it.

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/friendlygeorge/etherscan-mcp-server'

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