Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

Get broker account snapshot

get_broker_account_snapshot
Read-onlyIdempotent

Read-only: fetches current cash, buying power, and account value from the signed-in user's saved broker connection. For current performance of a named bot or a follow-up about its account, use show_bot_activity first; it performs its own exact-linked broker read. Use this tool after that report for a failed or stale current read, not as a preflight before the report. Standalone account questions and trade-sizing reads still use this tool normally. For a trade sized from all cash, all buying power, or a percentage of an account, first resolve one exact active saved connection and pass its brokerCredentialId. Use that same credential for the quote and place_trade approval because quantity depends on the selected account. Do not aggregate balances: values are per account, never added together. This reads the broker directly and never returns account numbers, broker tokens, or runtime secret ids.

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_broker_account_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
brokerProviderNo
brokerCredentialIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 and open-world, and the description adds real value on top: values are per account and must never be aggregated, the read goes directly to the broker, and no account numbers, broker tokens, or runtime secret ids are returned. The stale-read caveat is a behavioral trait the annotations cannot express.

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 read-only summary and return values, then routing rules, then constraints. Most sentences carry distinct information, though the sequencing caveat ('not as a preflight') and the standalone-case restatement add dense but somewhat repetitive qualification that could be tightened.

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 must describe return values itself, and it names the three fields returned plus the security exclusions and the no-aggregation rule. Combined with the sequencing guidance relative to show_bot_activity, an agent has everything needed to call it correctly and interpret results.

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 0%, so the description must compensate. It does well for brokerCredentialId, explaining that it must be an exact active saved connection and reused across quote and place_trade, but brokerProvider is never mentioned, leaving half the parameters undocumented. Partial compensation justifies a middle score.

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 ('fetches current cash, buying power, and account value') plus the source ('signed-in user's saved broker connection'), and explicitly separates itself from show_bot_activity by describing that sibling's own behavior. An agent can distinguish it from get_broker_positions and show_account_overview without opening any 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?

Gives explicit when-to-use and when-not-to-use rules: use show_bot_activity first for named-bot performance, then use this tool only for a failed or stale read and not as a preflight, while standalone account questions still use this tool normally. The trade-sizing path (resolve one exact active connection, reuse its brokerCredentialId for the quote and place_trade) is spelled out step by step.

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.