Skip to main content
Glama

AgentLogic MCP Server

chain_balance

Read an address's native token balance on an EVM chain (base, ethereum, polygon, arbitrum, optimism). Price: $0.001 USDC on Base via x402. Returns balanceWei and the decimals-applied balance with the chain's native symbol.

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

Input Schema

NameRequiredDescriptionDefault
chainNoChain to read: base (default), ethereum, polygon, arbitrum or optimism.
addressYesWallet or contract address, 0x-prefixed, 40 hex characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it discloses two facts an agent would otherwise have to discover the hard way: a per-call cost of $0.001 USDC on Base via x402, and the shape of the result (balanceWei plus a decimals-applied balance with the chain's native symbol). It does not cover failure modes such as an unsupported chain or malformed address, which keeps it from 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?

Three short sentences, front-loaded with what the tool reads and on which chains, followed by cost and return shape. Every sentence carries distinct information and nothing is repeated from the schema.

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?

For a two-parameter read tool with no output schema, the description supplies the return fields and the payment requirement, which is most of what an agent needs before calling. Error behavior and any pagination or rate considerations are absent, though the small surface area limits the risk.

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 the chain enum-in-prose and the 0x/40-hex address constraint are already documented in the schema. The description adds only the decimals/symbol interpretation of the result, which is a return-value note rather than parameter meaning, so the baseline 3 applies.

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?

A specific verb plus resource plus scope: reads an address's native token balance, with the supported EVM chains enumerated (base, ethereum, polygon, arbitrum, optimism). That enumeration implicitly separates it from btc_balance and sol_balance, though no sibling is named outright, so the distinction relies on the agent knowing those are non-EVM.

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?

The scope is clear enough that an agent can infer when to call it (native balance on an EVM chain), but there is no explicit when-to-use or when-not guidance, nor any pointer to token_balance for ERC-20 balances or wallet_profile for broader address context. With twenty-nine siblings, an explicit routing sentence would materially help.

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.