Skip to main content
Glama

EVM Wallet & Token Due-Diligence (x402)

evm_balance

Read-only

$0.002 (x402). Balance of one wallet on Ethereum, Base, Arbitrum, Optimism, Polygon or BSC: native coin, or any ERC-20 (pass token=0x...), with symbol, decimals, formatted and raw amounts and block number. Live RPC with fallbacks.

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

Input Schema

NameRequiredDescriptionDefault
chainNoethereum|base|arbitrum|optimism|polygon|bsc (default base)
tokenNooptional ERC-20 contract
addressNowallet 0x...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds genuinely useful context beyond that: the $0.002 x402 cost, live RPC with fallbacks, and the fields returned (symbol, decimals, formatted and raw amounts, block number). It stops short of describing error behavior or what happens on an unsupported chain/token.

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 dense sentence with no wasted clauses, front-loaded with cost then purpose then return shape. It reads as a run-on, but every clause carries information an agent would use.

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 no output schema, the description correctly compensates by enumerating return fields and noting the RPC fallback behavior. The notable gap is that the schema marks address as optional (0 required params) while the description implies one wallet must be identified, leaving the agent unsure whether address is mandatory.

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 schema already documents chain values, the default of base, the optional ERC-20 contract, and the 0x wallet address. The description restates the token usage without adding format or validation meaning, so the baseline of 3 applies.

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?

Names a specific resource (one wallet's balance), enumerates supported chains, and covers both native coin and ERC-20 via the token parameter. It is immediately distinguishable from siblings like evm_nonce, evm_code, or evm_block, which target entirely different data.

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: "pass token=0x..." tells the agent how to switch to ERC-20 mode, but there is no explicit statement of when to call this versus alternatives, nor any preconditions such as needing the address.

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