Skip to main content
Glama

Get balance

get_balance
Read-only

Check an agent wallet's balance: returns the native coin amount or an ERC-20 token amount by contract address, letting agents verify funds before transfers, swaps, or signing.

Instructions

Balance of the agent wallet: the native coin (omit token) or an ERC-20 token by contract address.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenNoERC-20 contract address. Omit for the native coin (ETH).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.10.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds the scoping fact that the balance is for the agent wallet and the default-asset behavior, but says nothing about freshness/caching or what happens with an invalid contract address.

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?

A single front-loaded sentence with a clear subject and no filler; the colon construction packs the two asset modes compactly. Slightly dense but nothing wasted.

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 one-parameter read tool with annotations covering safety this is close to adequate, but with no output schema the description never states the returned units or format (wei vs ether, token decimals), which is exactly what an agent needs to interpret the result.

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% and the single token parameter already documents 'Omit for the native coin (ETH)'. The description repeats that same rule rather than adding new meaning such as address format expectations or per-token rounding/decimals.

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?

Names a specific resource (balance of the agent wallet) and the two supported asset kinds, native coin or ERC-20 by contract address. An agent can distinguish it from send_native, transfer_token, and wallet_address by semantics alone, though no sibling is called out explicitly.

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?

Usage is only implied: the tool's purpose makes clear it is the way to read a balance, and the 'omit token' rule implies the native-coin default case. There is no explicit when-to-use versus alternatives, and no stated prerequisites.

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