Skip to main content
Glama

Chain Balance

chain_balance
Read-only

Wallet balance on Base (default) or Ethereum: ETH and USDC, plus any ERC-20 token you name, at the latest block. Use it to check a wallet can pay before paying. Costs USD 0.001 per call, paid with x402 (USDC on Base); calls that fail are not charged.

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": {
      "address": "<address>"
    },
    "name": "chain_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenNoOptional ERC-20 token contract to include, 0x + 40 hex characters
addressYesWallet address, 0x + 40 hex characters
networkNoBlockchain (default base)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the read-only/open-world annotations, the description discloses the pricing model ($0.001 per call), the payment rail (x402, USDC on Base), and the failure-billing policy (failed calls not charged) – material behavior an agent must know before calling. It stops short of rate limits or latency expectations, so not a 5.

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?

Two dense sentences, front-loaded with what is returned and where, then usage, then cost. Every clause carries information; nothing is redundant.

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?

For a three-parameter read tool with full schema coverage and no output schema, the description covers networks, returned assets, snapshot point (latest block), and billing. It leaves the exact response shape (e.g., per-token balances, decimals) unspecified, which is a minor residual gap.

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 100%, so the baseline is 3, but the description adds real meaning: the token parameter yields an extra ERC-20 alongside the default ETH/USDC set, and network defaults to Base. That clarifies the effect of specifying a token, which the schema's bare contract-address text does not.

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?

States a specific verb and resource (wallet balance), the scope (Base default or Ethereum, at the latest block), and the returned assets (ETH, USDC, plus any named ERC-20). The agent can distinguish it from chain_token or chain_tx without opening a schema.

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?

Gives an explicit when-to-use trigger: 'check a wallet can pay before paying'. It doesn't name exclusions or point at siblings such as chain_token for token metadata, but the intended context is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources