Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

Switch the conversation data source

set_data_provider
DestructiveIdempotent

Updates the active conversation to use the specified backtesting data provider.

AVAILABILITY AND SETUP: Read these constraints before selecting a provider. Do not probe a provider already declared OFF by calling this tool. Explain its known unavailability and the supported alternatives instead. Preserve the named setup page when explaining a connection requirement.

  • Only the providers listed below exist on BotSpot. If the user asks for any other data source, say plainly that it is not available and offer the alternatives below. Never select it and never start a backtest on it.

  • 'alpaca' uses the user's connected Alpaca broker account for data. Never ask the user to add ALPACA_API_KEY or ALPACA_API_SECRET as environment variables: those names are reserved for broker connections. If Alpaca is not connected or needs reconnecting, send the user to the Broker Connections page.

  • For OPTIONS: BotSpot Auto has NO options data of its own. start_backtest picks the user's own data by itself: their linked Alpaca account (options history from February 2024), else an attached Polygon key. Do not ask which one and do not switch for it. With neither, start_backtest refuses with a Connect Alpaca action: tell the user to link Alpaca (a free account works) or save a Polygon key. BotSpot does not currently have IBKR options support.

IMPORTANT: Match the provider to the strategy's asset class requirements.

Available providers and their capabilities:

  • Alpaca (alpaca): stocks, options, crypto

  • BotSpot Auto (botspot_auto): stocks, options, crypto, futures, indexes

  • Custom Provider (custom): stocks, options, crypto, futures, indexes

  • DataBento (databento): futures

  • Kalshi (kalshi): prediction_contract

  • Polygon (polygon): stocks, options, crypto, indexes

  • ProjectX Futures (projectx): futures

RULES:

  • Match the provider to the strategy's asset class requirements

  • If the strategy requires an asset class the provider doesn't support, STOP and pick a compatible provider

  • BotSpot Auto is a managed asset-class router. Policy version: 2026-11-17. Current routes: default → ibkr, stock → ibkr, index → ibkr, option → the user's own Alpaca or Polygon data (not supplied by BotSpot Auto), crypto → public, crypto_future → public, future → ibkr, cont_future → ibkr, forex → ibkr.

  • For STOCKS/INDEXES: Default to 'botspot_auto' (IBKR via router) unless the user explicitly requests a different provider (e.g., 'polygon' or 'alpaca')

  • For SPOT CRYPTO: Default to 'botspot_auto'. No broker connection or API key is needed: USD pairs use Coinbase public data, USDT pairs use Binance public data. Switch only when the user explicitly requests Polygon/Alpaca for spot crypto

  • For CRYPTO PERPETUAL/FUTURES: Default to 'botspot_auto'. No broker connection or API key is needed: perpetuals use Binance public data, with funding charged. Switch only when the user explicitly requests a compatible futures provider

  • For FUTURES: Default to 'botspot_auto' (IBKR via router) unless the user explicitly requests DataBento. If IBKR is missing/unsupported for the requested futures symbol/contract, recommend DataBento as the fallback (BYOK: the user must supply their own DataBento API key).

  • For a user's saved ProjectX futures connection, select 'projectx-' (Topstep: 'projectx-topstepx') and its dataConnectionId. History uses that owner's connection; never request reserved broker keys as environment variables. Coverage depends on the provider.

  • For prediction contracts, select 'kalshi'. Kalshi history is public: no broker connection, dataConnectionId or API key is needed to backtest (a connection is only needed to trade live). Use the contract's native ticker and YES/NO outcome, not the underlying stock or crypto price. Do not fabricate missing bars.

  • If user doesn't have required API keys for a BYOK provider, recommend 'botspot_auto' for stocks, indexes, crypto and futures, or 'custom'. For options, follow the OPTIONS rule above.

  • The 'custom' provider lets users supply their own data files

The tool will return capability validation warnings if there's a mismatch.

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": {
      "dataProvider": "<dataProvider>"
    },
    "name": "set_data_provider"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataProviderYes
customEnvVarsNo
dataConnectionIdNoSaved broker connection for Alpaca, Kalshi or ProjectX history; use its owner-scoped connection ID, never API keys.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / dataConnectionId / description
      Previous value: -"Saved broker connection for ProjectX history; use its owner-scoped connection ID, never API keys."New value: +"Saved broker connection for Alpaca, Kalshi or ProjectX history; use its owner-scoped connection ID, never API keys."
  2. Changed1 schema field changed
    • addedInput schema / properties / dataConnectionId
      Added value: +{
      +  "description": "Saved broker connection for ProjectX history; use its owner-scoped connection ID, never API keys.",
      +  "format": "uuid",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the baseline bar is lower, yet the description adds real behavioral context: BYOK key requirements, that Kalshi history is public and needs no connection, that Alpaca uses the broker connection rather than env vars, and that mismatches produce capability validation warnings. It does not say what existing conversation or backtest state is lost when the provider changes, which is exactly the destructive aspect an agent would want spelled out.

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

Conciseness3/5

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

Headers and bullets front-load the purpose and the availability constraints well, which suits the complexity. However, 'Match the provider to the strategy's asset class requirements' is stated twice (the IMPORTANT line and the RULES bullet), and the router route table partially restates the per-asset-class default guidance, so some of the length is redundant rather than load-bearing.

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 tool with seven providers, three parameters, sparse schema descriptions and no output schema, the description covers selection, fallbacks, auth/connection requirements, error behavior and user-facing messaging. Nothing an agent needs in order to call it correctly appears to be missing.

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 33% schema coverage and no enum on dataProvider, the description carries the burden and mostly does: it enumerates every valid provider id, their asset-class capabilities, and the 'projectx-<firm>' naming pattern with dataConnectionId pairing. customEnvVars is never explained beyond a passing mention that 'custom' lets users supply their own data files, so one parameter remains under-specified.

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: 'Updates the active conversation to use the specified backtesting data provider.' It also scopes the tool against start_backtest by explaining that start_backtest picks the user's own options data automatically and should not be switched for. An agent can distinguish this from the other conversation/setup siblings without opening the 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 per asset class: defaults to botspot_auto for stocks/indexes/spot crypto/perps/futures, DataBento as futures fallback, kalshi for prediction contracts, projectx-<firm> for saved ProjectX connections. It also names exclusions, e.g. 'Do not probe a provider already declared OFF' and 'do not switch for it' for options, plus what to tell the user instead.

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.