Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

Stop a backtest

stop_backtest
DestructiveIdempotent

Force-stop an in-progress backtest by ID, or a whole batch in one call with experimentId (a parameter experiment) or backtestIds. Queued backtests are cancelled before they start.

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

Input Schema

NameRequiredDescriptionDefault
botIdNo
backtestIdNo
revisionIdNo
backtestIdsNoStop several backtests in one call (for example every run of a sweep started one by one). Queued ones are cancelled before they start; finished ones are left as they are.
experimentIdNoStop a whole parameter experiment in one call: every one of its backtests that is still queued or running. Use the experimentId start_parameter_experiment returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / backtestIds
      Added value: +{
      +  "description": "Stop several backtests in one call (for example every run of a sweep started one by one). Queued ones are cancelled before they start; finished ones are left as they are.",
      +  "items": {
      +    "format": "uuid",
      +    "type": "string"
      +  },
      +  "maxItems": 200,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / experimentId
      Added value: +{
      +  "description": "Stop a whole parameter experiment in one call: every one of its backtests that is still queued or running. Use the experimentId start_parameter_experiment returned.",
      +  "format": "uuid",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.6/5.0
Behavior3/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 safety profile is known from structured data. The description adds one genuinely useful behavioral fact – queued backtests are cancelled before they start – but says nothing about partial results, errors on unknown/already-finished IDs, or scope of impact.

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

Conciseness5/5

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

Two sentences, no filler, with the primary single-ID case front-loaded and the batch modes and cancellation semantics following. Every clause carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, five-parameter, no-output-schema tool, the description covers the main invocation paths and the queued-cancellation behavior but omits what happens to finished backtests, error behavior, and the roles of botId/revisionId. Adequate but with clear gaps relative to tool complexity.

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?

At 40% schema coverage the description must compensate, and it does map the three operating modes (single ID, experimentId for a parameter experiment, backtestIds for a batch) onto their parameters. botId and revisionId are left unexplained in both description and schema, which is the remaining gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Force-stop') and resource ('an in-progress backtest') plus the batch modes, so an agent can distinguish it from read-oriented siblings like backtest_status or start_backtest. It never names an alternative explicitly, which keeps it short of a 5.

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

Usage Guidelines3/5

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

Usage is implied by 'in-progress backtest' and 'Queued backtests are cancelled before they start', which tells the agent this is for live/queued work rather than completed runs. There is no explicit when-not guidance (e.g., what to do about finished backtests, or when to prefer backtest_status first).

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.