Skip to main content
Glama

Code402 Non-Custodial Financial Verification MCP

ERC-20 Token Balance Snapshot

erc20_balance
Read-onlyIdempotent

Raw and formatted ERC-20 balanceOf for an address on Base, with decimals read from the token. Result carries a signed receipt.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "address": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f",
      "token_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
    },
    "name": "erc20_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesHolder EVM address, 0x-prefixed.
decimalsNoToken decimals override (optional).
token_addressYesERC-20 token contract address, 0x-prefixed.

Output Schema

NameRequiredDescriptionDefault
toolNo
scopeNo
validYes
reasonNo
addressYes
balanceNo
decimalsNo
retryableNo
balance_rawNo
token_addressYes
decimals_sourceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "address": "0xc59c85e661d34084a7769f955d17fd38254a6235",
      -    "token_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
      -  }
      -]New value: +[
      +  {
      +    "address": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f",
      +    "token_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
      +  }
      +]
  2. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "address": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f",
      -    "token_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
      -  }
      -]New value: +[
      +  {
      +    "address": "0xc59c85e661d34084a7769f955d17fd38254a6235",
      +    "token_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
      +  }
      +]
  3. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "address": "0xc59c85e661d34084a7769f955d17fd38254a6235",
      -    "token_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
      -  }
      -]New value: +[
      +  {
      +    "address": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f",
      +    "token_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
      +  }
      +]
  4. Added
  5. Removed
  6. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, and openWorld, so the bar is lower, yet the description still adds real behavior: results are returned both raw and formatted, decimals are read from the token rather than assumed, and the result carries a signed receipt. It stops short of explaining what the receipt signs or what failure looks like for a non-ERC-20 address.

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?

Two dense sentences, front-loaded with what is fetched and on which chain, then the shape of the result. No filler, no restatement of the tool name or title.

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 an output schema present, the description does not need to enumerate return fields, and its mention of raw/formatted values plus a signed receipt is appropriate signposting. The only real gap is the absence of guidance on sibling selection and on error cases, which matters given the many other balance/check tools nearby.

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?

Schema coverage is 100%, so the baseline is 3, and the description earns a bump by clarifying that decimals are read from the token unless overridden, which explains the intent of the optional decimals parameter. It adds nothing for the address or token_address fields, but those are already well documented in the schema.

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 (ERC-20 balanceOf for an address) and pins the chain to Base, which is concrete. It does not name or differentiate against siblings such as balance_check, so an agent must infer that this one is token-specific rather than native-asset.

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?

Usage is only implied by the scoping phrase 'on Base' plus 'ERC-20', which tells the agent this is the token-balance path rather than a native balance read. There is no explicit when-to-use/when-not-to-use statement and no named alternative for a plain balance check.

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.