Skip to main content
Glama
rpc402-mcp

rpc402-mcp

wallet_balances

wallet_balances

Retrieve a wallet's native and up to 20 token balances across Ethereum, Solana, or Base in one call, with per-token failures marked as partial results instead of failing the request.

Instructions

Whole wallet snapshot in ONE RPC402 call ($0.002 USDC via x402): native balance plus up to 20 token balances. Per-token failures degrade to marked entries (partial: true) instead of failing the call.

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": {
      "chain": "<chain>",
      "wallet": "<wallet>"
    },
    "name": "wallet_balances"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesChain to READ (settlement network is separate, configured by env)
tokensNoToken contract / mint addresses (optional, max 20)
walletYesWallet address: 0x… (EVM) or base58 (solana)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does meaningful work: it discloses the per-call cost ($0.002 USDC via x402), the 20-token ceiling, and that per-token failures degrade into entries marked partial: true rather than failing the whole call. It stops short of describing auth setup or what the degraded entry looks like beyond the flag.

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?

A single dense sentence with the headline capability and pricing front-loaded, then the failure-degradation behavior. No filler, and each clause adds information.

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?

No output schema exists, and the description sketches the return shape (native balance, token balances, partial flags) plus the paid-call model, which is most of what an agent needs. Only the precise response structure and payment/auth mechanics are left unstated.

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 chain, wallet, and tokens are already documented in the schema, including the max-20 constraint and address formats. The description only restates the token cap and adds no syntax or format meaning beyond structured fields, so baseline 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 resource and scope: a whole-wallet snapshot returning native balance plus up to 20 token balances in one call. This implicitly separates it from the single-token sibling token_balance, though no sibling is named explicitly.

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 implied by 'whole wallet snapshot' versus the narrower token_balance tool, but the description never says when to prefer one over the other, nor does it state prerequisites beyond the x402 payment mention.

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