Skip to main content
Glama

My balance of one token

get_my_token_balance
Read-only

How much of one token the user holds now. Use to size a sell. balance_token_amount IS THE ANSWER: the on-chain balance, same as get_my_balances; 0 means they do not hold it. ledger_balance_token_amount and cost_basis_usd are the ledger's, for cost context only: check ledger_present first (false = both unknown, and ledger_disagrees: false then means nothing to compare). A disagreeing ledger is normal after transfers; never average the two or sell the larger. Quantities come from the CHAIN; cost basis and PnL from Moby's swap ledger, which only sees Moby swaps. Never size a sell from a ledger quantity. Use get_my_position for unrealised PnL.

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": {
      "token_address": "<token_address>"
    },
    "name": "get_my_token_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
token_addressYesSolana token mint address (base58). Get it from search_tokens or a leaderboard row.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / token_address / title
      Removed value: -"Token Address"
    • removedInput schema / title
      Removed value: -"get_my_token_balanceArguments"
  2. Changed2 schema fields changed
    • removedInput schema / properties / network
      Removed value: -{
      -  "const": "solana",
      -  "default": "solana",
      -  "title": "Network",
      -  "type": "string"
      -}
    • addedInput schema / properties / token_address / description
      Added value: +"Solana token mint address (base58). Get it from search_tokens or a leaderboard row."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare it as a safe read; the description adds the substantive behavior: which field is authoritative (`balance_token_amount`), what a zero means, that a disagreeing ledger is normal after transfers, what `ledger_disagrees: false` does when `ledger_present` is false, and the scope limitation of the ledger (Moby swaps only). These are non-obvious semantics an agent cannot get from annotations.

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?

Highly front-loaded: purpose and action in the first two sentences, then field semantics, then the exclusion. It is dense but nearly all of it earns its place; the only redundancy is the sell-sizing warning appearing twice ('never average the two or sell the larger' / 'Never size a sell from a ledger quantity').

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, and the description still explains the ambiguous return fields (chain vs ledger quantity, ledger_present, ledger_disagrees, cost_basis_usd) that the schema alone would leave opaque. Nothing an agent needs to interpret the response or avoid a misuse is missing.

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 parameter already documents the base58 mint address and where to obtain it. The description adds no further meaning about `token_address`, so the baseline of 3 applies — all parameter guidance lives in 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?

Opening sentence gives a specific resource and scope ('How much of one token the user holds now') and immediately ties it to a decision ('Use to size a sell'). It also disambiguates the adjacent tools by name — get_my_balances (all tokens) and get_my_position (unrealised PnL) — so an agent can pick this one without opening a schema.

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 ('size a sell'), explicit when-not-to-use ('Never size a sell from a ledger quantity'), and explicit routing to the alternative ('Use get_my_position for unrealised PnL'). It also states a sequencing prerequisite: check `ledger_present` before trusting ledger fields.

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