Skip to main content
Glama

code402-verify-mcp

chain_erc20_balance

Paid ($0.02). Get ERC-20 token balance via balanceOf. Returns balance in raw and human-readable form.

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": {
      "token": "<token>",
      "address": "<address>"
    },
    "name": "chain_erc20_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYes0x-prefixed ERC-20 token contract address
addressYes0x-prefixed wallet address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden and does partially meet it: it discloses the $0.02 paid cost up front and describes the return shape (raw and human-readable). It says nothing about required permissions, error behavior for invalid contracts, or which chain is queried, which are material gaps for a paid on-chain read.

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?

Three short sentences with the cost front-loaded and no filler. Every sentence carries information, though the return-value sentence could be trimmed if an output schema existed.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read tool with no annotations and no output schema, the description covers purpose, cost, and return format adequately. It leaves out chain/network identification and failure modes, which an agent calling a paid on-chain method would reasonably want.

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 description coverage is 100%, so both parameters are already documented as 0x-prefixed addresses. The description adds no format, validation, or constraint detail beyond the schema, so the baseline of 3 applies.

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 and resource ('Get ERC-20 token balance') and even names the contract method ('via balanceOf'), which separates it from the sibling chain_balance for native currency. It doesn't explicitly name that sibling, but the resource noun alone makes the distinction clear.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no alternative tool is named. The ERC-20 qualifier implicitly tells the agent to pick this over a native-balance tool when a token contract is involved, but that inference is left to the reader.

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