Skip to main content
Glama

Wallet holdings

wallet_holdings
Read-onlyIdempotent

Everything a Solana wallet holds — SOL, SPL and Token-2022 tokens — valued in USD and sorted by value. Reads token accounts from both token programs and prices them in one pass. Empty accounts are counted as reclaimable rent. When to use: For Solana wallets; for EVM wallets use evm_address (callable here by name). Price: $0.003 per call (10 free/day; after that a payment-required result lists x402 options). Errors: returns isError with a message for invalid input or an upstream failure (not charged).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
walletYeswallet address. Base58 Solana address, 32-44 chars.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
solNo
tokensNo
walletNo
sol_usdNo
total_usdNo
tokens_usdNo
empty_accountsNo
token_accountsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / wallet / description
      Previous value: -"wallet address"New value: +"wallet address. Base58 Solana address, 32-44 chars."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "empty_accounts": {
      +      "properties": {
      +        "count": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "reclaimable_sol": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "sol": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "sol_usd": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "token_accounts": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "tokens": {
      +      "items": {
      +        "properties": {
      +          "amount": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "dead": {
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "decimals": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "mint": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "program": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "usd_price": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "usd_value": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": "array"
      +    },
      +    "tokens_usd": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "total_usd": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "wallet": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so the safety profile is covered. The description adds genuinely extra context: pricing ($0.003, 10 free/day, x402 payment-required result), the error contract (isError for invalid input or upstream failure, not charged), dual token-program reads, and empty accounts counted as reclaimable rent.

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?

Front-loaded with the value proposition, then usage, pricing and errors in a compact sequence. Dense but every clause carries useful information; only slightly long for a one-parameter tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return format need not be explained. Given that, the description covers domain scope, alternative routing, cost model, and error semantics — everything an agent needs to call it correctly.

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?

Only one parameter with 100% schema coverage (pattern and Base58 format fully documented in the schema). The description adds no parameter-level detail beyond the schema, so the 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?

States a specific verb+resource+scope: 'Everything a Solana wallet holds — SOL, SPL and Token-2022 tokens — valued in USD and sorted by value.' It names the sibling alternative (evm_address) and its domain constraint, so an agent can distinguish it from the many other wallet/address tools in the sibling list.

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

Usage Guidelines5/5

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

Explicit 'When to use' section: Solana wallets here, EVM wallets via evm_address. Nothing is left to inference, and it even explains that evm_address is callable by name.

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