Skip to main content
Glama

Sonic ERC-20 balance

sonic_token_balance
Read-only

ERC-20 token balance of a wallet on Sonic (USDC, USDT, WETH or any token, via balanceOf): raw amount, decimals, symbol and the human-readable amount, live from the token contract. Use to check stablecoin or token holdings before a transfer or trade; for the native coin use sonic_balance. Both inputs are 0x addresses (40 hex characters); no contract returns 404 and a non-ERC-20 contract 422, both uncharged. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
tokenYesToken: a ticker such as USDC, USDT, WETH or DAI, or the 0x ERC-20 contract address
addressYes0x wallet address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false); the description adds genuine value beyond that with pricing ($0.01/call via x402, first 25 free), the fact that failed calls are uncharged, and confirmation that nothing is mutated. It only stops short of explaining caching or why repeats are billed, which is a minor gap against otherwise strong disclosure.

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?

Purpose is front-loaded in the first clause and each subsequent sentence adds real information (use case, error codes, pricing). However, the dense semicolon-chained packing and the incorrect 'both inputs are 0x addresses' claim mean not every sentence earns its place cleanly.

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 no output schema, the description steps in to name the returned fields, and it covers error paths, pricing, and mutation status—unusually complete for a balance read. The one shortfall is the inaccurate parameter-format statement, which undermines otherwise thorough coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description actively contradicts the schema: it states 'Both inputs are 0x addresses (40 hex characters)' while the input schema says the token parameter accepts a ticker such as USDC, USDT, WETH or DAI. This misinformation could steer the agent away from a valid call form, pulling the score below the baseline 3.

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?

States a specific verb+resource (ERC-20 token balance of a wallet on Sonic, via balanceOf) and explicitly distinguishes itself from the native-coin sibling sonic_balance. The return shape (raw amount, decimals, symbol, human-readable amount) is named up front.

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

Usage Guidelines5/5

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

Gives an explicit use case ('check stablecoin or token holdings before a transfer or trade') and routes the agent to the correct alternative for the native coin ('use sonic_balance'). Error behavior (404 for no contract, 422 for non-ERC-20) further guides correct invocation.

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