Skip to main content
Glama

Get a backtest loop's status and strategies

quant_get_backtest_loop_info
Read-only

Where one of the member's backtest loops stands, by its id: its status and whether it is still active, why it stopped when it did, Quant's closing summary once it ended, its markets, how many strategies it found against how many the plan asked for, its attempts and the time it has used against its limit, its report_url, and what it found so far: strategies, its best ones (10 at most) with each one's id, attempt number, whether it meets every criterion, its in-sample score (0 to 100) and a line on what it does, and best_strategy_id, the first of them. Best means the ones that meet every criterion on every market, held-out data included, then the highest score; while nothing passes, it is the closest attempt, so say so. Read one with quant_get_backtest_loop_strategy. The member puts a strategy on a chart, compares them and resumes a loop in Vela, in the loop's Loop Report (report_url). While a loop is running, ask again no more than about once a minute. 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_get_backtest_loop_info"
  }
}

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.1/5.0
Behavior4/5

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

Annotations already cover read-only and closed-world safety; beyond that the description adds an OAuth/LuxAlgo sign-in requirement, a polling-rate constraint, and the tie-break rule for best_strategy_id (all criteria on every market including held-out, else closest attempt). It does not describe error behavior for an invalid or expired loop_id, which keeps it below 5.

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?

The description is a single long run-on sentence dense with field enumerations, so the scoping and the 'when to use' guidance are buried mid-paragraph rather than front-loaded as separate lines. Little content is filler, but the presentation makes the agent parse a wall of text to extract the polling and auth constraints.

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?

There is no output schema, and the description compensates by enumerating the returned fields (status, active flag, stop reason, closing summary, markets, strategy counts, attempts, elapsed vs limit, report_url, strategies list and best_strategy_id) plus the cap of 10 best strategies and each one's fields. For a rich read tool this is complete enough to call and interpret correctly.

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 description coverage is 100%, with loop_id documented as coming from quant_start_backtest_loop or quant_list_backtest_loops and context carrying a detailed self-describing contract. The description adds no parameter-level detail beyond what the schema already states, so the baseline 3 applies.

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 opening clause names a specific verb and resource ('Where one of the member's backtest loops stands, by its id') and immediately scopes the payload (status, active flag, markets, strategy counts, report_url). It explicitly routes per-strategy detail to quant_get_backtest_loop_strategy, so an agent can separate it from the sibling without opening either schema.

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?

It gives concrete usage context: read individual strategies via quant_get_backtest_loop_strategy, the human-facing surfacing happens in Vela's Loop Report, and re-polling should be no more frequent than about once a minute while running. It stops short of stating hard exclusions (e.g. don't call for a loop you just started in the same turn), so it is not a full 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.