Skip to main content
Glama

api.onesource.io

Chain erc20 balance

api_onesource_io_chain_erc20_balance
Read-only

ERC20 token balance for any Ethereum wallet - USDC, USDT, DAI, or any token - via balanceOf (eth_call) on OneSource live Ethereum RPC 0.003 USDC a call.

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>",
      "contract": "<contract>"
    },
    "name": "api_onesource_io_chain_erc20_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYes
networkNoethereum
contractYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=true), and the description adds genuinely useful non-obvious context: the eth_call/balanceOf mechanism and the per-call price of 0.003 USDC, which matters for invocation decisions. However it omits what the returned value actually is (raw integer in the token's smallest unit, requiring the contract's decimals to interpret) and does not mention that non-Ethereum networks in the enum are reachable.

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?

A single front-loaded sentence that leads with the capability and appends the mechanism and cost. Slightly run-on with the pricing clause tacked on, but every element carries information and nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/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 is the only place to explain that the result is an unscaled integer requiring the token's decimals — a critical detail for interpreting an ERC20 balanceOf call — and it says nothing about it. It also leaves the network parameter and non-mainnet behavior undescribed, so an agent cannot call this confidently beyond the happy path.

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 description coverage is 0%, so the description carries the full burden, and it only partially compensates: naming USDC/USDT/DAI/any-token effectively explains that 'contract' is the token contract address, and 'any Ethereum wallet' hints at 'address'. The 'network' parameter (ethereum/sepolia/robinhood, default ethereum) is never mentioned, and the description's Ethereum-only framing arguably conflicts with the available networks.

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?

States a specific verb+resource ('ERC20 token balance for any Ethereum wallet') and names the underlying mechanism (balanceOf / eth_call), which implicitly separates it from the native-coin sibling api_onesource_io_chain_live_balance. It never names that sibling or explicitly contrast the two, so the differentiation is inferred rather than stated.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance at all; nothing tells the agent to pick this over chain_live_balance, chain_erc20_transfers, or contract_address. The reader has to infer the choice from the word 'ERC20' alone.

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