Skip to main content
Glama

iafri x402 APIs

base_wallet_state

Read-only

Live Base mainnet wallet state: ETH balance, USDC balance, contract check, nonce/tx_count & current gas price in gwei (?address=0x...). Price $0.005 per call via x402, USDC on Base.

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

Input Schema

NameRequiredDescriptionDefault
addressYesEVM wallet or contract address on Base mainnet (0x + 40 hex chars).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond readOnlyHint=true, it discloses live-chain data, a $0.005 charge on every call, and payment through x402 using USDC on Base. It also specifies gwei for the gas price, adding useful operational and result-interpretation context.

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?

The description front-loads the network, resource, and returned data, then separates pricing into a short second sentence. Although dense, it contains no filler and communicates substantial selection and invocation information efficiently.

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?

For a single-argument read-only lookup, it covers the network, freshness, result categories, gas units, and cost/payment requirements. With no output schema, exact response fields and encodings—especially balance units and the contract-check representation—remain undocumented, as does error behavior.

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% and already defines address as a required Base-mainnet EVM wallet or contract address with its hexadecimal format. The parenthetical '?address=0x...' adds only an abbreviated invocation example and no meaningful validation or semantics beyond 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?

The description clearly identifies a live Base mainnet wallet-state lookup and enumerates ETH/USDC balances, contract status, nonce/transaction count, and current gas price. Its chain and result scope distinguish it well, though it does not explicitly contrast itself with any sibling tool.

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?

It provides clear usage context: retrieve current Base mainnet account or contract state, including balances and gas price, with a paid x402 call. It does not provide explicit when-not guidance or name alternatives for other chains, historical state, or narrower lookups.

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