Skip to main content
Glama

cast_balance

Query an Ethereum address's balance over a specified RPC network and block, returning the amount in wei or ether.

Instructions

Query the ETH balance of an address (cast balance).

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>",
      "rpcUrl": "<rpcUrl>"
    },
    "name": "cast_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
etherNoDisplay balance in ether instead of wei
rpcUrlYesRPC URL of the network
addressYesAddress to query the balance of
blockTagNoBlock to query at, e.g. "latest" or a number

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full disclosure burden. "Query" implies a read-only operation, but nothing is said about network dependency via rpcUrl, failure modes (invalid address, unreachable RPC), or what the default unit of the returned value is — all material for a blockchain read.

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 short sentence with the core purpose front-loaded and nothing superfluous. The redundant parenthetical echo of the tool name is the only wasted token.

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

Completeness3/5

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

For a simple four-parameter read tool with a fully documented schema and no output schema, this is close to adequate. It still leaves the return representation (wei by default) and the network assumptions behind rpcUrl unaddressed.

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 all four parameters (address, rpcUrl, ether, blockTag) are already documented in the schema. The description adds no syntax, format, or default information beyond it; the baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: "Query the ETH balance of an address." An agent immediately knows what it returns. The parenthetical "(cast balance)" merely restates the tool name and does nothing to distinguish it from siblings like cast_call, cast_code, or cast_storage.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance, and no named alternatives. An agent must infer on its own that this is preferable to a generic cast_call or cast_rpc for reading native balance, and there is no mention of prerequisites such as a reachable RPC endpoint.

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