Skip to main content
Glama

P0: wallet balances and EVM reads

Wallet balance

wallet_balance
Read-onlyIdempotent

Use when you need a wallet's token balances on several chains in one call: native coin plus USDC, USDT, DAI, WETH, WBTC/cbBTC on Ethereum, Base, Arbitrum and Polygon. Returns the exact paid x402 request for your input (GET /wallet/balance, $0.003 per call), with a link to the full schema; call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. One wallet across several chains. For one token on one chain use evm_erc20_balance; for the native coin on one chain use evm_native_balance; for many wallets use wallet_balance_batch. With a P0 access key (header Authorization: Bearer p0k_…, buy one at https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/keys/buy?usd=5) this tool makes the paid call itself and returns the data, deducting the listed price.

Input Schema

NameRequiredDescriptionDefault
chainsNocomma list of ethereum, base, arbitrum, polygon (default: all EVM chains for a 0x address)
addressYes0x address or ENS name (lowercase a-z, 0-9, hyphen)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the non-obvious mechanics: the default response is the exact paid x402 request (GET /wallet/balance, $0.003 per call) that must be called with an x402/MPP client, and that a P0 Bearer key makes the tool perform the paid call itself. It also covers failure behavior (rejected input is not charged), which annotations cannot express.

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

Conciseness3/5

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

It is front-loaded with the 'use when' condition, which is good, but one dense paragraph carries usage, output format, pricing, error behavior, alternatives, and auth/key-purchase instructions, with some redundancy ('One wallet across several chains' restates the opening clause). The key-purchase URL in particular adds bulk an agent rarely needs mid-call.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no output schema, a two-parameter schema that is fully documented, and a paid-call wrapper, the description covers everything an agent needs: what it returns, the cost, that the returned payload is a request to be executed, and the access-key shortcut. No material gap remains.

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 already 100%, and the description adds meaning the schema lacks by enumerating the token set covered (native, USDC, USDT, DAI, WETH, WBTC/cbBTC) and reiterating the single-wallet/several-chain scoping of `address` and `chains`. It does not add syntax detail beyond the schema's existing 'comma list' guidance.

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 uses a specific verb and resource (return a wallet's token balances across several named chains and named tokens) and explicitly carves out the sibling cases: evm_erc20_balance for one token on one chain, evm_native_balance for the native coin, wallet_balance_batch for many wallets. An agent can route correctly 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 Guidelines5/5

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

It gives an explicit 'use when' trigger (one wallet, several chains, one call) plus three named alternatives with the exact conditions that select them. It also states the input-validation precondition ('bad input is refused before any charge'), which is actionable guidance rather than inference.

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