Skip to main content
Glama

Solana token hygiene

solana_token_hygiene
Read-onlyIdempotent

Which of this wallet's Solana token accounts can be closed for rent, or are delegated or frozen? When to use: Before cleaning up a wallet: to learn how much rent closing its empty token accounts returns, and whether any token account has an active delegate or is frozen. Prefer another tool: To list token accounts, mints or balances (none are returned), or to check one transfer end to end (use /v1/solana/transfer-readiness). Example: solana_token_hygiene {"address":"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"} Paid: 0.01452 USDC or 0.0121 EURC per call on Solana mainnet, VAT included. With prepaid credits, debit per call: 0.0025 EUR-denominated units (approx 400 calls per bundle) or 0.003 USD-denominated units (approx 273 calls per bundle).

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": "solana_token_hygiene"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesOwner wallet whose token accounts are scanned: Solana wallet address: a base58 string that decodes to exactly 32 bytes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety bar is low. The description adds real value beyond them: it says explicitly what is NOT returned (accounts, mints, balances) and discloses per-call pricing in USDC/EURC plus prepaid-credit debit rates. It stops short of saying whether rent figures are estimates, whether a malformed or empty wallet errors, or how results are ordered.

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?

The valuable content (purpose, when-to-use, exclusions) is front-loaded and easy to scan. The final pricing sentences are dense and lengthy, running three clauses deep, which dilutes an otherwise tight definition.

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 one-parameter read-only tool with no output schema, the description covers purpose, exclusions, cost and a sample invocation. The main residual gap is the lack of any indication of return shape or structure, which matters more here because no output schema exists to fill that in.

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 the single address parameter is already documented down to the base58/32-byte constraint, so the schema carries the burden. The description reinforces it with a concrete example call, but adds no new semantics such as whether a program-derived or token-account address is rejected.

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?

The opening sentence names a specific diagnostic question about Solana token accounts: which are closable for rent, delegated, or frozen. It is clearly distinguishable from sibling listing tools like solana_token, and the scope (this wallet's token accounts) is stated up front.

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' (before wallet cleanup, to learn rent yield and delegate/frozen status) and an explicit 'Prefer another tool' section routing listing/balance/transfer checks elsewhere, including the named alternative /v1/solana/transfer-readiness. Both the positive and negative cases are covered.

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