Skip to main content
Glama

Stop a backtest loop

quant_stop_backtest_loop
Idempotent

Stops one of the member's backtest loops by its id: it finishes the attempt it is on, stops spending Quant usage, and keeps every strategy it found and tested. A stopped loop is not lost: the member can resume it from its Loop Report in Vela, where it picks up after its last attempt. A loop that already ended is left as it is, and the result says so. It never deletes a loop or its strategies. Requires signing in with a LuxAlgo account (OAuth).

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": {
      "loop_id": "<loop_id>",
      "context": "<context>"
    },
    "name": "quant_stop_backtest_loop"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextYesExplain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as "a user", "the customer", or "an account". Example: "Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution."
loop_idYesThe loop's id, from quant_start_backtest_loop or quant_list_backtest_loops.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

This is exactly the context the annotations cannot supply: the description says the current attempt finishes, Quant usage stops accruing, all discovered and tested strategies are retained, and the loop can later be resumed from the Loop Report in Vela. It also states an explicit non-destructive boundary ('never deletes a loop or its strategies') and an auth requirement (OAuth via a LuxAlgo account), all consistent with destructiveHint=false and idempotentHint=true.

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?

The core action and its immediate effect are front-loaded, and the remaining sentences cover consequences, resumability, edge cases, and auth in a logical order. There is mild redundancy between 'keeps every strategy it found and tested' and the later 'never deletes a loop or its strategies,' which keeps it from a 5.

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 two-parameter mutation with no output schema, the description covers what changes, what is preserved, how an already-ended loop is reported ('the result says so'), and the authentication requirement. An agent has everything it needs to call this correctly and interpret the outcome.

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

Parameters3/5

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

Schema coverage is 100%, so both parameters are already fully documented, including where the loop id comes from. The description only restates the id-based targeting ('by its id') and adds no format, ordering, or validation detail beyond the schema. Per the baseline rule for high-coverage schemas, a 3 is appropriate.

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 description opens with a specific verb and resource ('Stops one of the member's backtest loops by its id'), making the action unambiguous and immediately distinguishable from the sibling set (start, list, inspect). It also clarifies the scope of the operation, so an agent knows this is a stop request on a single identified loop, not a bulk or cleanup operation.

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?

Usage context is clear: it should be used on a specific loop id, and the description states how an already-ended loop is handled ('left as it is'), which prevents pointless calls. It does not explicitly name alternatives, such as inspecting a loop with quant_get_backtest_loop_info first or continuing a run instead of stopping it, so it stops short of a 5.

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.