Skip to main content
Glama

Token Balance (Base)

token_balance
Read-onlyIdempotent

Token Balance (Base): balance of any ERC-20 (symbol + decimals resolved) or native ETH for an address, raw and human units, read live from Base. For agents checking they can afford a purchase, or that a payment arrived. Public chain data, never needs a key. By OMENZ. (MCP calls run in AYNE, the free playzone; production: GET https://www.omenz.org/api/tollbooth/v1/token/balance, $0.002 via x402.)

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

Input Schema

NameRequiredDescriptionDefault
tokenNoERC-20 address on Base; omit or 'eth' for native ETH
addressYes0x... contract or wallet address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely useful context beyond that: the data is read live from Base, no API key is ever required, and it discloses the AYNE free playzone versus the paid production endpoint ($0.002 via x402). It does not describe pagination or failure behavior, but none is really expected for a single-address 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?

The core capability and use cases are front-loaded in the first two sentences. The trailing attribution ('By OMENZ') and endpoint/pricing parenthetical are somewhat promotional, but the pricing detail is arguably relevant to an agent deciding whether to call it, so the waste is limited.

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 only two parameters, full schema coverage, and no output schema, the description supplies what an agent needs: the chain, the asset scope, and the return shape (raw plus human units, symbol and decimals resolved). Cost and environment differences between AYNE and production are also covered, leaving little an agent must guess.

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%, with both parameters documented including the 'omit or eth for native ETH' default, so the schema already carries the parameter meaning. The description reinforces that any ERC-20 or native ETH is supported and that symbol/decimals are resolved, but adds little syntax or constraint detail beyond the schema.

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 resource (ERC-20 or native ETH balance for an address) and a specific chain (Base), with the resolution behavior (symbol + decimals) and dual unit output. It is clear what the tool returns, though it never mentions the sibling wallet_balance, so an agent must infer the boundary between the two balance tools.

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

Usage Guidelines4/5

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

It gives two concrete use cases: checking whether an agent can afford a purchase, and confirming a payment arrived. That is clear context for when to call it, but there are no exclusions or named alternatives (e.g., when to prefer wallet_balance or allowance instead).

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