Skip to main content
Glama
x402-data-mcp

x402-data-mcp

ERC-1155 balances of an address for up to 50 token ids ($0.003)

get_erc1155_balance

Read ERC-1155 balances for one wallet across 1-50 token IDs of a single contract in one batched call; returns per-ID balances and total on five chains.

Instructions

ERC-1155 balances of one address for 1-50 token ids of a single contract, read in one batched call on Base, Ethereum, Arbitrum, Optimism or Polygon. Returns per-id balance and the total. Not charged for bad input, a contract that is not ERC-1155, or a chain outage. No API key. Price: $0.003 USDC per call, paid over x402 on Base from the wallet in X402_PRIVATE_KEY (not charged when the call fails).

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": {
      "owner": "<owner>",
      "contract": "<contract>",
      "ids": "<ids>"
    },
    "name": "get_erc1155_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesComma list of 1-50 token ids, decimal or 0x hex
chainNoOne chain, any of: base,ethereum,arbitrum,optimism,polygon. Default: ethereum.
ownerYesWallet address to read
contractYesERC-1155 contract address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: pay-per-call pricing ($0.003 USDC via x402 on Base), the X402_PRIVATE_KEY wallet requirement, no API key needed, and explicit non-charge conditions (bad input, non-ERC-1155 contract, chain outage). The only minor tension is that the description frames the operation as a 'read' while readOnlyHint is false, but the disclosed payment side effect explains that annotation rather than contradicting it.

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?

Front-loaded with capability and scope, then pricing and failure terms. Slight redundancy in repeating the no-charge-on-failure condition twice and echoing the price already in the title, but no sentence is wasted overall.

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?

Four parameters, all documented, and the description states the return values (per-id balance and total) despite no output schema. Pricing, auth, chain coverage, batching limits, and failure semantics are all covered, which is everything an agent needs before calling.

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%, so owner, contract, ids, and chain are already fully documented, including the id format and the default chain. The description restates the ids range and single-contract constraint but adds no syntax or format detail the schema lacks; baseline 3 applies.

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 and resource ('ERC-1155 balances of one address for 1-50 token ids of a single contract'), the batching behavior, the supported chains, and the return shape (per-id balance plus total). An agent can distinguish it from broader tools like get_balances or get_nft_holdings on scope alone.

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?

Usage context is clear: exactly one address, one contract, 1-50 ids per call, five named chains, batched in a single request. It does not explicitly route the agent to an alternative when the query spans multiple contracts or more than 50 ids, which is the one gap.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.