Skip to main content
Glama

Optimism wallet balances

optimism_wallet_balances
Read-onlyIdempotent

Native ETH balance of a OP Mainnet wallet plus the balances of up to 20 ERC-20 tokens you list, formatted with each token's symbol and decimals, read live from OP Mainnet. 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": "optimism_wallet_balances"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
chainNostring, e.g. "optimism"
tokensNoarray
addressNostring, e.g. "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
nativeSymbolNostring, e.g. "ETH"
nativeBalanceNostring, e.g. "0.181079591875347535"

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. \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\""
      +    },
      +    "chain": {
      +      "description": "string, e.g. \"optimism\""
      +    },
      +    "nativeBalance": {
      +      "description": "string, e.g. \"0.181079591875347535\""
      +    },
      +    "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 establish read-only, idempotent, non-destructive, open-world behavior, so the description only needed to add context — and it does: live read from OP Mainnet, formatting with each token's symbol and decimals, and a $0.005 USDC cost on Base via x402, which is operationally critical for a paid call. What it omits is failure behavior (e.g. bad address or unlisted token contracts), which keeps it short of 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 sentences, zero filler. The output content and chain are front-loaded, with the payment disclosure placed last where it still reads as a caveat rather than burying the core purpose.

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?

An output schema exists, so return values need not be explained, and the description covers the essentials for a paid, read-only lookup: chain, gas-token plus token list, formatting, and cost. The only gap is what happens on partial failure (e.g. an invalid or non-ERC-20 contract in the token list), which matters given the hard 20-address cap.

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 coverage is 100%, so both parameters are already documented, and the description largely restates the token-list cap of 20 that the schema's pattern and description already encode. It does clarify that 'tokens you list' is a caller-supplied optional set appended to the mandatory native balance, but that is marginal added meaning over 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?

The description names a concrete resource pair — native ETH balance plus up to 20 listed ERC-20 balances — scoped explicitly to OP Mainnet. That chain scoping alone separates it from the arbitrum_/base_/eth_/polygon_ balance siblings 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 Guidelines3/5

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

Usage is implied by the chain scope: use this when you want balances on OP Mainnet. There is no explicit when-to-use/when-not wording and no routing to alternatives such as wallet_balances or optimism_wallet_profile, so the agent must infer selection from the chain name.

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