Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

Compare backtests

show_backtest_comparison
Read-onlyIdempotent

Answers "Which of my backtests did better?" for 2 to 50 saved backtests (a whole parameter sweep fits one call), or pass experimentId instead of backtestIds to rank a parameter experiment's runs, including while it is still going ("how is it going?", "results so far"): finished runs are ranked and the answer says how many are still running. equity lines started at 100 on the same chart (the 10 best by total return) plus a metric table of every run (total return, CAGR, max drawdown, Sharpe, trades). Runs of one strategy with different parameter values are named by those values. Results are simulated. Read-only. Shows an interactive panel in apps that support MCP Apps; always returns a text summary and a botspot.trade link.

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

Input Schema

NameRequiredDescriptionDefault
backtestIdsNo
experimentIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / backtestIds / anyOf
      Added value: +[
      +  {
      +    "items": {
      +      "format": "uuid",
      +      "type": "string"
      +    },
      +    "maxItems": 50,
      +    "minItems": 2,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / backtestIds / items
      Removed value: -{
      -  "format": "uuid",
      -  "type": "string"
      -}
    • removedInput schema / properties / backtestIds / maxItems
      Removed value: -50
    • removedInput schema / properties / backtestIds / minItems
      Removed value: -2
    • removedInput schema / properties / backtestIds / type
      Removed value: -"array"
    • removedInput schema / properties / experimentId / $ref
      Removed value: -"#/properties/backtestIds/items"
    • addedInput schema / properties / experimentId / anyOf
      Added value: +[
      +  {
      +    "$ref": "#/properties/backtestIds/anyOf/0/items"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed3 schema fields changed
    • changedInput schema / properties / backtestIds / maxItems
      Previous value: -10New value: +50
    • addedInput schema / properties / experimentId
      Added value: +{
      +  "$ref": "#/properties/backtestIds/items"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "backtestIds"
      -]
  3. Changed1 schema field changed
    • changedInput schema / properties / backtestIds / maxItems
      Previous value: -5New value: +10
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: results are simulated, only finished runs are ranked with a count of still-running runs, the chart shows the 10 best by total return rebased to 100, and the metric table covers every run. It also discloses output surfaces (interactive panel in MCP Apps, always a text summary and a botspot.trade link).

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 user question and both modes, and the trailing sentences on chart/table/return format each add distinct information. The middle sentence is long and packs several ideas together, but no sentence is filler.

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 still covers return values (chart of top 10 equity lines rebased to 100, full metric table with named metrics, text summary, link) and the simulation/read-only caveats. Nothing needed to invoke or interpret the result is 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?

Schema description coverage is 0%, so the description must carry the load, and it does: backtestIds is bounded to 2-50 saved backtests, experimentId is described as a substitute for backtestIds that ranks an experiment's runs. It does not state the UUID format or explicitly confirm the parameters are mutually exclusive (implied only by 'instead of').

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 (compare/rank saved backtests) and frames the user question it answers, plus both supported modes: a set of backtestIds (2-50) or an experimentId. This clearly separates it from siblings like backtest_status or show_backtest_dashboard, which surface a single run rather than a ranked comparison.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says when to pass backtestIds (2 to 50 saved backtests, a whole parameter sweep in one call) versus experimentId (to rank an experiment's runs, including while it is still running), which resolves the choice between the two parameters. It does not name a sibling alternative or state when not to use this tool, so it falls short of full when/when-not/alternatives coverage.

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.