Skip to main content
Glama

My balances (USDC and tokens)

get_my_balances
Read-only

Per-token balances in the Solana agent wallet, with available USDC to size a buy. USDC is your cash (is_cash: true). SOL and every other token are positions; sell with quick_sell to raise USDC. tokens is EVERYTHING held, SOL (is_native) and USDC (is_quote) included; empty means the wallet is empty. native_token / usd_token repeat those two as fixed slots: never add them to the total. Quantities are read on the CHAIN (balance_source: "chain"; "ledger" = a stale snapshot, say so; ledger_disagrees: true = the snapshot was wrong). swap_user_tokens is the ledger: cost and PnL, not amounts held. get_my_closed_positions is exited positions ONLY; what the user holds now is get_my_balances. Never say they hold nothing from an empty closed list. available_usdc is spendable now; reserved_usdc is held by resting DCAs and buy orders (reserved_breakdown) until cancel_order; not the guardrails' daily_volume_reserved_usd. One wallet: the total is get_my_portfolio. app_links.deposit adds funds. interview_due: true = onboarding was skipped: go back to get_my_trading_profile and the 5-question interview (onboarding FIRST) before acting on these numbers.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_my_balances"
  }
}

Input Schema

NameRequiredDescriptionDefault
refreshNotrue only right after an outside deposit that is not showing; slow.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / refresh / title
      Removed value: -"Refresh"
    • removedInput schema / title
      Removed value: -"get_my_balancesArguments"
  2. Changed2 schema fields changed
    • removedInput schema / properties / network
      Removed value: -{
      -  "const": "solana",
      -  "default": "solana",
      -  "title": "Network",
      -  "type": "string"
      -}
    • addedInput schema / properties / refresh / description
      Added value: +"true only right after an outside deposit that is not showing; slow."
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description goes well beyond them: it discloses that quantities come from chain vs a stale ledger snapshot (`balance_source`, `ledger_disagrees`), that `reserved_usdc` is locked by resting DCAs/orders, and that `refresh` is slow. The only omission is return shape/pagination, which the output schema covers.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, but the body is a dense run of backticked field names and sibling cross-references in one paragraph, and much of it restates return-value semantics that the output schema already carries. Several facts (cash vs position, fixed slots, empty-wallet meaning) are genuinely useful, but the length-to-signal ratio is poor for a read-only getter.

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?

For a single-parameter read tool it covers the traps an agent would actually fall into: empty `tokens` vs empty closed list, double-counting `native_token`/`usd_token`, stale ledger snapshots, reserved vs spendable USDC, and the onboarding gate. Nothing needed to call or interpret it correctly 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 `refresh` parameter is fully documented in the schema, so the baseline is 3. The description adds no syntax or timing detail for `refresh` — most of its added meaning concerns output fields rather than the input parameter.

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: per-token balances in the Solana agent wallet, plus available USDC for sizing a buy. It draws an explicit line against siblings — `get_my_portfolio` for the total, `get_my_closed_positions` for exited positions, `swap_user_tokens` for the ledger — so an agent can differentiate without opening schemas.

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?

Gives explicit when/when-not guidance: use `quick_sell` to raise USDC, use `cancel_order` to release `reserved_usdc`, never infer holdings from an empty closed-position list, and go to `get_my_trading_profile` first when `interview_due` is true. Alternatives and the conditions selecting them are named rather than implied.

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