Skip to main content
Glama

US Economic, SEC EDGAR & On-Chain Data (x402)

On-chain Token Balances (bulk)

onchain_token_balances
Read-onlyIdempotent

Read an ERC-20 token balance for up to 500 wallet addresses in a SINGLE call.

Doing this yourself means issuing hundreds of eth_call requests, batching them, handling per-provider rate limits and partial failures, then scaling raw integers by token decimals. This does all of that and returns clean, ready-to-use numbers plus the block height the snapshot was taken at.

Supported chains: base (default), ethereum, optimism, arbitrum, polygon. Defaults to canonical USDC on the selected chain when no token is given.

When to use: portfolio or treasury roll-ups, airdrop and eligibility checks, holder analysis, reconciling a list of wallets.

When NOT to use: you need native ETH balances (this reads ERC-20 contracts) or balances at a historical block.

Args:

  • addresses (string[], required): 1-500 EVM addresses. Duplicates removed, order preserved.

  • chain (string, optional, default "base"): base | ethereum | optimism | arbitrum | polygon.

  • token (string, optional): ERC-20 contract address. Defaults to USDC on the chosen chain.

Returns structuredContent: { "chain": "base", "chainId": 8453, "blockNumber": 34567890, "token": { "address": "0x8335...", "symbol": "USDC", "decimals": 6 }, "requested": 3, "queried": 3, "failed": 0, "totalBalance": "1234.56", "holders": [ { "address": "0x...", "raw": "1234560000", "balance": "1234.56" } ] }

A read that fails at the provider returns null for that address rather than a misleading 0, and "failed" counts them. If every read fails the call errors and is not billed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoWhich EVM chain to query. Defaults to base.base
tokenNoERC-20 contract address. Defaults to canonical USDC on the selected chain.
addressesYes1-500 EVM wallet addresses (0x + 40 hex). Duplicates are removed.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnlyHint=true and idempotentHint=true annotations, the description discloses concrete behavioral details: it handles rate limits and partial failures, returns null for failed reads rather than misleading zeros, counts failures, errors if every read fails, and reports the block height of the snapshot. This is exactly the kind of context agents need to interpret results correctly.

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?

The first sentence is a front-loaded, high-signal summary. The rest is organized into clear sections (motivation, supported chains, when to use/not use, args, return example) with no redundant padding. Every sentence earns its place, and the length is justified by the tool's complexity.

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

Completeness5/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 carries full responsibility for explaining return values; it provides a complete JSON example with all fields, including edge-case behavior (null for individual failures, 'failed' count, error condition for total failure). It also covers defaults, supported chains, and limits, making it fully sufficient for an agent to invoke and interpret this tool correctly.

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

Parameters4/5

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

The input schema already covers 100% of parameters with descriptions, so the bar is at 3. The description adds extra semantic nuance: 'Duplicates removed, order preserved' for addresses, the exact default token behavior (canonical USDC), and a structured output example that shows how token decimals are scaled to produce clean balances. This extra context earns a 4.

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 opens with 'Read an ERC-20 token balance for up to 500 wallet addresses in a SINGLE call', which clearly states the verb (read), the resource (ERC-20 token balance), and a key distinguishing scope (bulk, up to 500 addresses). It also distinguishes from sibling tools like onchain_portfolio or onchain_cross_chain_balances by focusing on ERC-20 balances for a list of holders on a single chain.

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?

The description explicitly provides 'When to use' (portfolio roll-ups, airdrop checks, holder analysis) and 'When NOT to use' (native ETH balances, historical blocks), giving the agent clear selection criteria. It also contrasts with manual eth_call batching, implying this is the efficient bulk alternative.

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.

TDQS

A4.5/5.0
Disambiguation5/5

Every tool targets a distinct resource and action. The macro_* tools each cover one economic indicator, the edgar_* tools cover different SEC filing types, and the onchain_* tools are split by chain scope (single vs multi), asset type, and operation. Even the two data-cleaning tools are clearly distinct (JSON repair vs table parsing). No two tools appear to do the same thing.

Naming Consistency4/5

Names follow a mostly consistent snake_case pattern with domain prefixes: macro_*, edgar_*, onchain_*. The exceptions are bls_cpi (could be macro_cpi) and the utility tools structured_json_repair and tabular_to_json, which break the prefix pattern but are still descriptive and predictable. Overall, the convention is clear with minor deviations.

Tool Count3/5

21 tools is in the 'heavy' range (16-25). However, the server spans three distinct domains (US economic data, SEC EDGAR, on-chain data), and each tool serves a unique purpose within its domain. While it feels dense, the breadth is justified by the server's stated multi-domain scope.

Completeness4/5

The tool surface covers the major needs in each domain: key macro indicators, common EDGAR filings and searches, and core on-chain reads. Minor gaps exist (e.g., no PPI, no historical on-chain balances, no company CIK lookup), but agents can work around these with existing tools or by combining them.