Skip to main content
Glama

Base wallet balances

base_wallet_balances
Read-onlyIdempotent

Native ETH balance of a Base wallet plus the balances of up to 20 ERC-20 tokens you list, formatted with each token's symbol and decimals, read live from Base. Costs $0.005 USDC on Base via x402.

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": "base_wallet_balances"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokensNoComma-separated ERC-20 contract addresses on Base, up to 20
addressYesWallet address on Base

Output Schema

NameRequiredDescriptionDefault
chainNostring, e.g. "base"
tokensNoarray
addressNostring, e.g. "0x2211d1D0020DAEA8039E46Cf1367962070d77DA9"
nativeSymbolNostring, e.g. "ETH"
nativeBalanceNostring, e.g. "7.554675633166555733"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "address": {
      +      "description": "string, e.g. \"0x2211d1D0020DAEA8039E46Cf1367962070d77DA9\""
      +    },
      +    "chain": {
      +      "description": "string, e.g. \"base\""
      +    },
      +    "nativeBalance": {
      +      "description": "string, e.g. \"7.554675633166555733\""
      +    },
      +    "nativeSymbol": {
      +      "description": "string, e.g. \"ETH\""
      +    },
      +    "tokens": {
      +      "description": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the description earns credit for what they don't say: the data is read live from Base, results are formatted with each token's symbol and decimals, and the call costs $0.005 USDC via x402 — a payment requirement an agent must know before invoking. It does not describe failure behavior for invalid or non-ERC-20 addresses.

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 sentences, front-loaded with what is returned and scoped to Base, with the payment caveat last. Every clause carries information 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?

With annotations, a full input schema and an output schema, the description covers the essentials: chain, asset coverage, formatting, and the x402 cost. Only edge-case behavior (unlisted/invalid token contracts, partial failures) is left unstated, which is minor for a read-only balance lookup.

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 both parameters are already documented, and the 20-token cap plus comma-separated format are repeated from the schema rather than extended. Baseline 3 is appropriate; the description adds no format or edge-case detail beyond the schema.

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 — native ETH balance plus balances of listed ERC-20 tokens — and pins it to Base, which is precisely the axis that separates it from the eth_/arbitrum_/optimism_/polygon_ wallet_balances siblings. An agent can identify the correct chain-specific tool without opening any schema.

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 implied by the chain scoping and the 'tokens you list' phrasing, but there is no explicit when-to-use/when-not guidance or named alternative for other chains or for the multi-chain wallet_balances sibling. The cost note gives a practical selection signal but is not routing guidance.

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