Skip to main content
Glama

token_balance

Rounded ERC20 balance preview of any Base token for any wallet (2 significant figures, read on-chain). Exact balances are a paid lookup.

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": {
      "token_address": "<token_address>",
      "wallet": "<wallet>"
    },
    "name": "token_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
walletYes
token_addressYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

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 does disclose the most consequential behavior: results are rounded to 2 significant figures and read on-chain, so the agent knows the value is lossy. It stops short of stating auth requirements, rate limits, failure behavior for invalid or non-ERC20 addresses, or that the chain is fixed to Base.

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 short sentences, the core capability front-loaded, and the precision caveat placed immediately after where it matters most. Nothing is wasted and no clause is redundant.

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 needn't be explained, and a read-only two-parameter tool needs little more. The remaining gap is parameter formatting and address-validation failure modes for a 0%-coverage schema.

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 0%, so the description must compensate. It does establish that one parameter is a token contract and the other a wallet on Base, but it gives no format guidance (hex address vs symbol, checksum) and never states whether native ETH is supported despite claiming 'any Base token'.

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?

The description names a specific verb-and-resource pair: a rounded ERC20 balance read for any Base token and any wallet, with on-chain sourcing stated. It clearly is not an allowance, price, or supply tool, so an agent can distinguish it from the token_* siblings without opening a schema.

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?

It hints at the selection condition by noting that exact balances are a paid lookup, implying this free tool is the preview step. That is implied rather than explicit: no alternatives are named among the siblings and no exclusions or prerequisites are given.

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