Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

List deployments for the current user

list_deployments
Read-onlyIdempotent

Returns the user's deployments with each row's own paper/live mode, linked broker and performance data. Never transfer performance between same-named paper and live deployments; an unavailable live return stays unknown. Do not use this tool to prepare or route a direct buy, sell, or one-off order request; use list_broker_credentials and place_trade for that workflow. Each deployment includes: id, status (running/stopped/failed/in_progress/deploying/starting/stopping/etc.), strategyName, revision version, nested bot object (id, name, isRealMoney, isPublic), broker metadata (broker, paperOrLive, saved credential display name/account id when available), timestamps, errorDetails, a schedule object for scheduled deployments (health, backend status, lastRunStatus, last run timestamps, schedule backend/status), A scheduled launcher can intentionally precede strategy execution by its configured preStartSeconds. A historical skipped run is not proof that its cadence is incorrect. AND a live object containing:

  • live.performance.stats: trimmed to returnAll/return1y/return6mo/return3mo/return30d/return7d/return24h timeframes with complete data. Each stat has total_return, max_drawdown, volatility (as % with snake_case canonical field names).

  • live.positions.count: current holdings count

  • live.positions.lastUpdated: timestamp of the most recent position snapshot

  • live.account: latest account snapshot with portfolio value, cash, timestamp, and found flag The live data is batched (one call to the preprocessor, parallel position lookups) so a single list_deployments call answers 'how are my bots doing?'. For 'is this bot live/running?' or Active inventory checks, use status="running" or omit status; the server matches the Bots page Active & scheduled inventory by including scheduled bots and refreshing startup states like deploying before returning results. If broker-snapshot tools return no accounts, no positions, stale data, or unavailable telemetry while the user asked for actual positions/holdings, this tool is the fallback discovery path for live-bot positions; call it with status="running" and a broad limit before concluding there is no live position evidence. When the user asks for all/running deployments, enumerate every returned row in items[] with its status and strategyName or bot.name; do not collapse them into 'same strategy' if a row-level answer was requested. Count and name only rows returned by items[] in this tool call unless additional pages were fetched; total/count/hasMore/nextToken metadata is not evidence of missing deployment names. If total is larger than returned rows and no additional page was fetched, say the answer is limited and list only the returned rows. For current account performance and holdings of a specific bot, call show_bot_activity first. It reads the exact linked broker balances and account holdings while keeping recorded bot orders separate. Do not repeat its telemetry via get_deployment_position_telemetry, get_bot_performance, or get_portfolio_series. If its current broker read is unavailable, recover once with get_broker_account_snapshot and get_broker_positions using this row's broker.brokerCredentialId. live.positions.count is only a summary hint. It is not a symbol-level holdings answer and it is not proof of zero holdings. A current linked-account report is not a request for bot-attributed telemetry; answer that scope with show_bot_activity, without a preliminary historical positions read. Only for an explicit bot-attribution question or a correction of deployment summary counts, call get_deployment_position_telemetry for every deployment whose recorded holdings you will report, including deployments you intend to describe as zero; do not final-answer from this summary count. Only an explicit get_deployment_position_telemetry empty positions result proves zero holdings for that deployment. For live-vs-code discrepancy questions, an empty deployment list only limits live evidence; it is not a substitute for saved-code inspection or LumiBot source lookup. For failed, unhealthy, or attention-required deployment diagnosis, this inventory is not authoritative failure-log evidence: call get_deployment_logs for the exact deployment before reading or editing saved strategy code. status, schedule health, and errorDetails do not replace the logs. Filter by one status value or by multiple statuses; omit both to list all deployments. Do not pass comma-separated status strings. Also supports isRealMoney, strategyId, aiStrategyId, or free-text search. A strategy attached to the conversation does not implicitly filter this inventory; strategy filters apply only when explicitly supplied. Paginate with limit (max 50). For current account performance use show_bot_activity; get_bot_performance provides recorded historical metrics across timeframes.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNoRows to skip, for the next page. When hasMore is true, call again with offset=nextOffset to see the rest.
searchNo
statusNoOptional single status filter. Omit status to list all deployments.
statusesNoOptional multi-status filter. Use this instead of a comma-separated status string.
strategyIdNo
isRealMoneyNo
aiStrategyIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Rows to skip, for the next page. When hasMore is true, call again with offset=nextOffset to see the rest.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. 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 readOnly/idempotent/non-destructive, but the description adds substantial behavior: the live data is batched (one preprocessor call plus parallel position lookups), the server matches the Bots page inventory by including scheduled bots and refreshing startup states, schedule preStartSeconds can precede execution, and pagination metadata (total/count/hasMore/nextToken) is not evidence of missing names. It also warns that live.positions.count is a summary hint and not proof of zero holdings.

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?

The description is a very long, largely unstructured block that mixes inventory semantics with routing rules for unrelated workflows (order placement, saved-code inspection, source lookup). It repeats itself, stating 'For current account performance use show_bot_activity' and 'get_bot_performance' guidance twice, and the core payload field list runs as an undifferentiated bullet dump. Useful content, but poorly sized and not organized for scanning.

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 an 8-parameter, no-output-schema inventory tool with no nested objects, the description covers the return shape, pagination caveats, status matching semantics, and fallback behavior thoroughly. An agent has everything needed to call it and to interpret items[] versus total/hasMore without further documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With only 38% schema description coverage, the description carries the load and does: it explains status vs statuses ('Filter by one `status` value or by multiple `statuses`; omit both to list all... Do not pass comma-separated status strings'), limit max 50, and that isRealMoney, strategyId, aiStrategyId, and free-text search are supported. Offset handling is only lightly touched ('Paginate with limit'), leaving the next-page offset mechanics to the schema, which is the one remaining gap.

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 states a specific verb and resource plus the shape of the payload: 'Returns the user's deployments with each row's own paper/live mode, linked broker and performance data.' It then enumerates the returned fields (id, status, strategyName, bot, broker, schedule, live.performance.stats) so an agent knows exactly what it gets, and it explicitly separates itself from show_bot_activity, get_deployment_position_telemetry, get_deployment_logs, and place_trade.

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?

Usage is unusually explicit: 'Do not use this tool to prepare or route a direct buy, sell, or one-off order request; use list_broker_credentials and place_trade,' plus a named fallback path ('if broker-snapshot tools return no accounts... call it with status="running"') and a rule that a current linked-account report should be answered with show_bot_activity instead. Both when-to-use and when-not-to-use are covered with named alternatives.

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.