Skip to main content
Glama

Base Token Balance

base-token-balance
Idempotent

Read a live ERC-20 token balance on Base and return raw units plus best-effort token decimals/symbol metadata without signup or an API key. Price: $0.01 via x402. _salt19_operation_id is recommended but optional for standard x402 compatibility.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYes
token_addressYes
_salt19_handoff_idNoOptional SALT19 authorization handoff correlation. Preserve the same value across challenge, local signing, and paid retry.
_salt19_operation_idNoOptional but recommended semantic purchase identifier preserved across challenge/payment/retries.
_x402_payment_signatureNoOptional x402 payment proof. Omit on the first call; include after satisfying the challenge.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

The description discloses meaningful behavioral details beyond the annotations: it is a live read, returns raw units with best-effort metadata, requires payment via x402, and works without signup/API key. The annotations already cover idempotency and non-destructiveness, so the added payment and metadata caveats are valuable context. No contradiction with annotations.

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 sentences with no filler. The core operation is front-loaded, followed by the payment constraint and the optional operation-id recommendation. Every clause adds decision-relevant information.

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 paid read tool with five parameters and no output schema, the description gives a solid high-level contract: raw units plus best-effort decimals/symbol metadata. The x402 workflow is covered in the schema descriptions, and the annotations cover idempotency/safety. Slightly more detail about output formatting or error cases would improve completeness, but the description is adequate for an agent to invoke the tool correctly.

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?

The schema describes the three x402-related parameters well, but token_address and owner only have regex patterns and no semantic description. The description adds that token_address refers to an ERC-20 token and that decimals/symbol metadata is returned, but it does not explicitly define owner as the wallet holder or explain how raw units map to decimals. Overall the description partially compensates for the 60% schema coverage.

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?

The description clearly specifies the verb 'Read', the resource 'ERC-20 token balance on Base', and the output 'raw units plus best-effort token decimals/symbol metadata'. This distinguishes it from sibling tools like base-wallet-balance and base-token-allowance without needing to open their schemas.

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 description gives useful context: it requires no signup or API key and costs $0.01 via x402. However, it does not explicitly say when to choose this tool over base-wallet-balance, base-token-allowance, or other siblings, nor does it state exclusions. Usage is implied from the resource name rather than explicitly guided.

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