Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

Create a new strategy workspace

create_strategy
Destructive

Creates a new strategy workspace with main.py and requirements.txt. By default (template omitted or "neutral"), starter files are neutral boilerplate only; they do not encode customer-specific strategy logic or fake validation trades. External MCP clients can optionally select a verified runnable starter template via template ("stock_ma_crossover", "rsi_mean_reversion", "opening_range_breakout", "options_wheel", or "crypto_trend"). After creation, use the returned files manifest instead of rediscovering starter paths. Use list_files for missing or stale discovery. Use replace_file, patch_file, and create_file to implement the strategy; each save result confirms what was saved and returns the revisionId to validate. When this user has not linked data that some asset class needs for a backtest, the result says so in backtestData. Before writing code, load BotSpot's free strategy-building skills: call skills (action=get, name=strategy-building-core) or skills (action=list) for all guides and templates, and follow them, including existing plan progress and Rules; do not replace the plan merely to record workspace creation. For the first real main.py implementation after neutral starter creation, use replace_file with the main.py editHandle from the returned files manifest; no get_file is needed first. Keep the if __name__ == "__main__": run block at the end of main.py (IS_BACKTESTING -> Strategy.backtest(...), else Trader); without it start_backtest refuses the revision. This is the default first-build path for BotSpot strategy creation after the user clearly asks to build/create/make/generate/implement/code a strategy, or asks to turn prior trading or competition rules into a clean/tighter/easier-for-agent prompt in this product flow. Do not use this tool when the current conversation/context already has an attached, current, open, or saved strategy/revision and the user asks to update, edit, fix, refine, change, or make that strategy buy/sell differently. For attached/current strategy edits, use get_file plus patch_file or replace_file on the existing revision; the save result confirms the saved revision. Do not use this tool for advice, critique, feedback, risk assessment, review, planning, or 'what do you think' turns.

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

Input Schema

NameRequiredDescriptionDefault
nameYesRequired human-readable strategy title. Use natural words or title case, such as "Competition Risk Trader". Do not use slug-style, snake_case, kebab-case, file names, or lowercase underscore names such as competition_prompt_cleanup.
templateNoOptional starter template. Omit or pass "neutral" for the minimal neutral LumiBot skeleton. External MCP clients can also pick a verified runnable starter: "stock_ma_crossover", "rsi_mean_reversion", "opening_range_breakout", "options_wheel", or "crypto_trend".
descriptionNoOptional notes for the initial revision

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / description / anyOf
      Added value: +[
      +  {
      +    "maxLength": 2000,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / description / maxLength
      Removed value: -2000
    • removedInput schema / properties / description / type
      Removed value: -"string"
    • addedInput schema / properties / template
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "neutral",
      +        "stock_ma_crossover",
      +        "rsi_mean_reversion",
      +        "opening_range_breakout",
      +        "options_wheel",
      +        "crypto_trend"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Optional starter template. Omit or pass \"neutral\" for the minimal neutral LumiBot skeleton. External MCP clients can also pick a verified runnable starter: \"stock_ma_crossover\", \"rsi_mean_reversion\", \"opening_range_breakout\", \"options_wheel\", or \"crypto_trend\"."
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the destructive/openWorld/non-idempotent annotations, it discloses that neutral starters contain no customer-specific logic or fake validation trades, that a files manifest with editHandles is returned, that backtestData flags missing data links per asset class, and that start_backtest rejects revisions lacking the __main__ run block. It stops short of saying whether creation is reversible or whether an existing workspace is affected, which matters for a destructive-hinted tool.

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?

Purpose and template semantics are front-loaded and nearly every sentence carries operational instruction, but the piece is long and repeats the attached-strategy routing guidance twice (create_file/patch_file/replace_file list, then 'use get_file plus patch_file or replace_file'). The skills and plan-progress aside is also dense for a creation call.

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 destructive, open-world creation tool with no output schema, it covers the full lifecycle an agent needs: prerequisites (load strategy-building skills), the returned manifest/editHandle, the required run block, downstream edit tools, and the backtestData failure signal.

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?

Schema coverage is already 100%, so the baseline is 3; the description nonetheless adds real meaning for `template` (what 'neutral' implies behaviorally, and that the named templates are verified-runnable), which the schema only lists.

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 first sentence states a specific verb and resource plus what is produced ('Creates a new strategy workspace with main.py and requirements.txt'), immediately separating it from update_strategy, clone_strategy, and the file-editing siblings. The template enumeration further pins down the exact scope of creation.

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?

It gives an explicit trigger ('the default first-build path ... after the user clearly asks to build/create/make/generate/implement/code a strategy'), explicit exclusions ('Do not use this tool when the current conversation already has an attached, current, open, or saved strategy ... use get_file plus patch_file or replace_file'), and a further exclusion for advice/critique/planning turns.

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.