Skip to main content
Glama

evm_get_balance

Retrieves the native token balance for any address across supported EVM chains, returned in both raw wei and human-readable ether. Use it to verify funds, monitor wallets, or confirm an address holds gas before sending transactions.

Instructions

Get native token balance for any EVM chain (ETH, POL, AVAX, BNB, etc.)

Returns the native token balance in both raw wei and human-readable ether units. Works across all 7 supported EVM chains with automatic unit conversion.

CRITICAL RULES:

  • Address MUST be a valid 0x-prefixed Ethereum address (42 characters)

  • Balance is returned in both wei (raw) and ether (formatted) units

  • All chains use 18 decimals for native tokens

  • Returns 0 balance for non-existent addresses (not an error)

PARAMETERS:

  • chain: EVM chain to query (required)

    • Supported: ethereum, polygon, avalanche, bsc, arbitrum, base, worldchain

    • Each chain has different RPC endpoints

    • Must be lowercase

  • address: Ethereum address to check (required)

    • Format: 0x followed by 40 hexadecimal characters

    • Case-insensitive (checksummed addresses accepted)

    • Examples: "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"

EXAMPLES: ✅ Check Ethereum balance: {chain: "ethereum", address: "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"}

✅ Check Polygon balance: {chain: "polygon", address: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}

✅ Check BSC balance (low gas chain): {chain: "bsc", address: "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"}

❌ Invalid - wrong chain name: {chain: "ethereum-sepolia", address: "0x..."}

❌ Invalid - missing 0x prefix: {chain: "ethereum", address: "742d35Cc6634C0532925a3b844Bc9e7595f0bEb"}

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: • success: Boolean indicating operation success • chain: Chain name queried • address: Address checked • balance: Object with wei (string) and ether (string) values • executionTime: Time taken in milliseconds

COMMON MISTAKES:

  • Using mainnet chain names instead of testnet identifiers

  • Forgetting 0x prefix on address

  • Expecting USD value (this tool returns native token balance only)

  • Confusing wei with ether (1 ether = 10^18 wei)

USE CASES:

  • Check if address has sufficient funds for transactions

  • Monitor wallet balances across multiple chains

  • Validate address exists before sending transactions

  • Compare balances across different EVM networks

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_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesEVM chain to query (ethereum, polygon, avalanche, bsc, arbitrum, base, worldchain)
addressYesEthereum address in 0x format (42 characters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the safety burden and does well: it discloses that non-existent addresses return 0 rather than an error, that native tokens use 18 decimals on all chains, and that each chain has distinct RPC endpoints. It never explicitly states this is a read-only, side-effect-free call nor mentions rate limits, and the gas-cost discussion is tangential to a balance read.

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 core is well front-loaded with headers, but large blocks do not earn their place for a read-only balance query: gas timing advice for executing transactions, faucet/testnet token notes, and an entirely irrelevant Linux section about apt/yum/pacman and xdg-open. Roughly a third of the text could be deleted without losing anything an agent needs.

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?

Since there is no output schema, the OUTPUT STRUCTURE block (success, chain, address, balance.wei/ether, executionTime) is essential and present, and the return-unit explanation compensates for the missing schema. The only real gap is that read-only/safety semantics are implied by 'Get' rather than stated.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3, but the description adds genuine meaning: chain values must be lowercase, the listed names map to testnets (ethereum = Sepolia, bsc = BNB Testnet), and addresses are case-insensitive with checksummed forms accepted. It also gives worked valid and invalid parameter examples.

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?

Opening line states a specific verb and resource ('Get native token balance') and scopes it to 'any EVM chain'. The qualifier 'native token' cleanly separates it from siblings like evm_get_token_balance and evm_get_nft_balance without needing to name them.

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?

The USE CASES section gives concrete situations (checking funds before a transaction, monitoring across chains), and COMMON MISTAKES adds a boundary ('this tool returns native token balance only', not USD value). However, it never explicitly routes the agent to an alternative such as evm_get_token_balance for ERC-20 holdings or evm_get_portfolio_value for USD totals.

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