Skip to main content
Glama

Crypto Bot Audit + Market Data (x402 paid)

ERC-20 balance with decimals

chain_token_balance
Read-onlyIdempotent

balanceOf plus the token's own decimals, formatted — a human-readable USDC/token balance, not a raw 18-digit integer that needs a calculator. Costs $0.001 USDC per call. Chains: base, ethereum, arbitrum, bsc, polygon, optimism, avalanche. Byte-identical to GET /chain/token-balance?chain=base&token=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&owner=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYeschain key: base, ethereum, arbitrum, bsc, polygon, optimism, avalanche [required]
ownerYesholder address [required]
tokenYestoken / NFT contract address [required]

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tsNo
rawNo
noteNo
chainNo
ownerNo
staleNo
tokenNo
caveatNo
reasonNo
sourceNo
symbolNo
chainIdNo
decimalsNo
formattedNo
chainLabelNo
decimalsAssumedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "caveat": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "chain": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "chainId": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "chainLabel": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "decimals": {
      +      "type": "integer"
      +    },
      +    "decimalsAssumed": {
      +      "type": "boolean"
      +    },
      +    "formatted": {
      +      "type": "string"
      +    },
      +    "note": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "owner": {
      +      "type": "string"
      +    },
      +    "raw": {
      +      "type": "string"
      +    },
      +    "reason": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "stale": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "symbol": {
      +      "type": "string"
      +    },
      +    "token": {
      +      "type": "string"
      +    },
      +    "ts": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive behavior. The description adds valuable context beyond those: the cost ($0.001 per call), the formatting behavior (human-readable), and the supported chains. It does not contradict annotations and enhances the agent's understanding of side effects (none) and operational constraints.

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?

The description is mostly concise and front-loaded: it states the purpose first, then cost, chains, and an example. The example URL is somewhat long and could be trimmed, but it serves as a concrete reference. Overall, it is efficient and structured without redundant filler.

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?

Given the output schema exists, the description does not need to detail return values. It covers cost, supported chains, and formatting behavior, which are essential for an agent to invoke correctly. It omits nothing critical for a simple balance lookup, though it doesn't mention edge cases like invalid addresses or unsupported tokens, which are likely handled by error responses.

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% for all three parameters (chain, token, owner), each with a clear description. The description does not add extra parameter-level semantics beyond what the schema provides; the example URL with concrete addresses is illustrative but not explanatory. Thus, baseline 3 is appropriate.

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 clearly states the tool returns a formatted, human-readable ERC-20 token balance, explicitly contrasting it with a raw integer that needs conversion. It names the exact operation (balanceOf plus decimals) and the resource (token), and the phrasing 'not a raw 18-digit integer' effectively distinguishes it from raw balance endpoints. Though it doesn't name a specific sibling, the purpose is unambiguous and specific.

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?

The description provides practical context: cost per call and supported chains, which help an agent decide feasibility. However, it does not explicitly state when to use this tool over alternatives (e.g., chain_balance for native tokens or chain_token_balances for multiple tokens). The usage context is implied by the title and description but lacks explicit exclusions or alternative routing.

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