Skip to main content
Glama

tokens

Read-onlyIdempotent

Run when you need to know which tokens a wallet holds and how much. Ranked by USD value, with unverified (often spam airdrop) tokens flagged so you don't report fake holdings. Lists a wallet's tokens (SPL Token and Token-2022) with exact amounts, whether each is verified, and its USD value where there's a price. Inputs: wallet: The wallet address to read the tokens of. how_many (optional): How many tokens, highest USD value first, to return. Default 25. include_empty (optional): Whether to include empty token accounts. Default false. network (optional): Which Solana network to read. Default "mainnet-beta" (real money). Cost: 25 free calls a day, then $0.01 USDC per call (x402). Full field-by-field docs: GET /api/tools/tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
walletYesThe wallet address to read the tokens of. The user's wallet address (from their wallet app, or your agent's own public key). Not a .sol name or a ticker.
networkNoWhich Solana network to read. Default "mainnet-beta" (real money). Leave it out for mainnet. Use "devnet" only for test wallets.mainnet-beta
how_manyNoHow many tokens, highest USD value first, to return. Default 25. Leave it out for 25.
include_emptyNoWhether to include empty token accounts. Default false. Set true only to find empty accounts (for example to close them).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / how_many / description
      Added value: +"How many tokens, highest USD value first, to return. Default 25. Leave it out for 25."
    • addedInput schema / properties / include_empty / description
      Added value: +"Whether to include empty token accounts. Default false. Set true only to find empty accounts (for example to close them)."
    • addedInput schema / properties / network / description
      Added value: +"Which Solana network to read. Default \"mainnet-beta\" (real money). Leave it out for mainnet. Use \"devnet\" only for test wallets."
    • addedInput schema / properties / wallet / description
      Added value: +"The wallet address to read the tokens of. The user's wallet address (from their wallet app, or your agent's own public key). Not a .sol name or a ticker."
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld), and the description layers on genuinely new traits: results ranked by USD value, unverified/spam tokens flagged, empty accounts excluded by default, and a concrete cost model (25 free calls/day then $0.01 USDC via x402). The x402 pricing is behavior an agent cannot get from annotations or schema.

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?

Purpose is front-loaded in the first sentence and the spam-flagging rationale is useful. The four 'Inputs:' sentences largely duplicate schema text that the agent already receives, adding length without new information, but the structure remains scannable.

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?

With no output schema, the description steps in to describe the return shape (exact amounts, verified flag, USD value where a price exists) and names the token standards covered. Cost, network defaults, and pagination-like limits are all told, so an agent has what it needs to call and interpret it.

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% and the schema descriptions are actually richer than the prose (e.g. wallet 'Not a .sol name or a ticker', include_empty rationale). The description essentially restates wallet/how_many/include_empty/network without adding format or edge-case meaning beyond the schema.

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 and resource — reading which tokens a wallet holds and how much — and immediately disambiguates from siblings like balance by scoping to SPL/Token-2022 holdings rather than native SOL. The mention of USD ranking and spam-token flagging further sharpens what the tool returns.

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?

The opening 'Run when you need to know which tokens a wallet holds and how much' gives clear triggering context, and the unverified-flagging note implies when it beats a raw balance check. It never explicitly names an alternative sibling (balance, token_account, find_token) or a when-not condition, so routing still requires some inference.

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.