Skip to main content
Glama

balance

Read-only

Solana wallet balance: SOL and USDC (Solana public RPC) — $0.005 USDC per call via x402 v2 (Solana or 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": {
      "wallet": "<wallet>"
    },
    "name": "balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
walletYesSolana wallet address (base58 public key)

Output Schema

NameRequiredDescriptionDefault
okYes
solNoSOL balance
slotNo
usdcNoUSDC balance (all USDC token accounts)
walletNo
networkNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / wallet / description
      Added value: +"Solana wallet address (base58 public key)"
    • addedInput schema / properties / wallet / example
      Added value: +"4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE"
    • addedInput schema / properties / wallet / pattern
      Added value: +"^[1-9A-HJ-NP-Za-km-z]{32,44}$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "network": {
      +      "type": "string"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "slot": {
      +      "type": "integer"
      +    },
      +    "sol": {
      +      "description": "SOL balance",
      +      "type": "number"
      +    },
      +    "usdc": {
      +      "description": "USDC balance (all USDC token accounts)",
      +      "type": "number"
      +    },
      +    "wallet": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond readOnlyHint/openWorldHint, the description discloses two things annotations cannot: the data source (Solana public RPC) and a hard, per-call price of $0.005 USDC settled through x402 v2 from Solana or Base. That payment/authorization requirement is exactly the kind of context an agent needs before calling. It stops short of 5 because it says nothing about latency, failure behavior for invalid addresses, or rate limits on the public RPC.

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?

One sentence, front-loaded with the resource and returned assets, then the source, then the pricing. No filler and nothing an agent could skim past without losing 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?

With an output schema present, return shape need not be described, and the description covers asset types, chain, RPC source, and cost — enough for a one-parameter read tool. It is only marginally incomplete on error/edge behavior, which is a minor gap for a tool this simple.

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?

The single parameter has 100% schema description coverage, including base58 format and an example, so the schema already carries the semantics. The description adds no further detail about the wallet argument (e.g. what happens with a non-existent or uninitialized account), which is acceptable at this coverage level.

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?

States a specific verb (retrieve balance) and resource (Solana wallet), and names exactly what is returned: SOL and USDC. An agent can distinguish this from the forensics/safety siblings (approvals, drainForensics, tokenSafety, txtrace) without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description never says when to use this tool versus alternatives, nor any preconditions or exclusions; usage is only implied by the name and the 'balance' framing. The only decision-relevant context it gives is the cost, which is a payment detail rather than a routing rule.

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