Skip to main content
Glama

ab_get_balance

Read-only

Fetch current on-chain wallet balances including native ETH and ERC-20 tokens using address or ENS name resolution.

Instructions

Fetch the current on-chain balance for a wallet.

CAPABILITIES • Native ETH balance (default) • ERC-20 balance via tokenAddress OR well-known tokenSymbol (lookup table) • ENS name resolution for the target address

EXAMPLES

  1. Native balance → { address: "vitalik.eth" }

  2. ERC-20 balance via symbol → { address: "0x123…", tokenSymbol: "USDC" }

  3. ERC-20 via contract → { address: "0xabc…", tokenAddress: "0xA0b8…" }

RETURNS • Human-readable string (e.g. "12.3456")

SECURITY • Read-only operation, no gas spent; safe to run frequently.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesTarget wallet (address or ENS) to query
tokenAddressNoERC-20 token address
tokenSymbolNoToken symbol to resolve (e.g. USDC)
Behavior4/5

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

Annotations provide readOnlyHint=true, and the description reinforces this with 'Read-only operation, no gas spent; safe to run frequently.' It adds valuable context beyond annotations: ENS name resolution capability, human-readable return format, and safety for frequent use. No contradiction with annotations.

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

Conciseness5/5

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

The description is well-structured with clear sections (CAPABILITIES, EXAMPLES, RETURNS, SECURITY), front-loaded with the core purpose, and every sentence adds value without redundancy. It efficiently communicates essential information in a compact format.

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 the tool's moderate complexity (3 parameters, no output schema), the description is highly complete: it covers purpose, usage, parameters, return format, and security. The only minor gap is lack of explicit error handling or rate limit details, but annotations and context provide sufficient coverage for effective use.

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 description coverage is 100%, so the baseline is 3. The description adds significant value by explaining parameter usage through examples: address accepts ENS names, tokenSymbol uses a lookup table, and tokenAddress is for direct contract specification. This clarifies semantics beyond the schema's basic descriptions.

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 the specific action ('Fetch the current on-chain balance') and resource ('for a wallet'), distinguishing it from sibling tools like create_wallet, deploy_token, generate_wallet, and transfer_token which involve creation, deployment, or transfer operations rather than querying existing balances.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool: for fetching wallet balances (native ETH or ERC-20 tokens) and when to use specific parameters (tokenAddress vs tokenSymbol). It implicitly distinguishes from siblings by focusing on read-only balance queries rather than write operations like creation or transfers.

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/wearesociety/abstract_MCP'

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