Skip to main content
Glama

QuantWright

Read a result

get_result
Read-only

Reads a backtest result by its run_id (when run_backtest answered "running", call this until the run ends), or a study's runs by study_id (one of them with version). A run comes with its trades, a page at a time (trades_page).

Input Schema

NameRequiredDescriptionDefault
run_idNoA run_id run_backtest or run_held_out_test returned.
versionNo
study_idNoA study's id, for its runs (the newest 20 by default); with `version`, one of them.
trades_pageNoWith a run (run_id, or study_id with version): the page of its trade list, from 1; a page holds 100 trades. Left out: the first.
before_versionNoWith study_id: the 20 runs before this version (a list's `next` gives it).

Output Schema

NameRequiredDescriptionDefault
nextNo
runsNo
basisNo
gradeNo
linesNo
marketNo
reasonNo
run_idNo
statusYes
windowNo
messageNo
metricsNo
noticesNo
versionNo
headlineNo
held_outNo
hold_outNo
settingsNo
study_idNo
warningsNo
retryableNo
disclaimerNoThe hypothetical-performance line, on a result (a run, or a study's runs): the same text the app shows with every result.
look_aheadNo
trade_listNoThe run's trades in the order they were made, a page at a time: when each entered and left (a day on daily bars; a time on the `clock` on shorter ones; "open at the end" for a trade still open when the data ended), its side, whether it won or lost after costs, and which exit ended it (a word: stop, exit rule, target, time limit…). No prices, levels, sizes or returns.
buy_and_holdNo
replayed_fromNo
grade_withheldNo
runs_left_todayNo
hold_out_estimateNo
poll_after_secondsNo
stated_rule_breaksNo
highest_simulated_valueNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds real behavioral context on its own — polling semantics, a 100-trade page size, and that studies default to the newest 20 runs. It stops short of saying what an errored or expired run_id yields, which keeps it from a 5.

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?

A single compact sentence with the primary mode front-loaded and no wasted clauses. The stacked parentheticals make it denser than ideal to parse, but every clause adds a distinct fact.

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

Completeness4/5

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

With an output schema present, return values need no explanation, and the description still covers both modes, polling, and trade pagination. Only minor gaps remain, such as distinguishing the before_version paging path that the schema handles alone.

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 80%, so the schema already documents run_id, study_id, trades_page, and before_version. The description mostly restates those pairings ("one of them with version") rather than adding syntax or format detail, so the baseline of 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?

States a specific verb (reads) and resource (a backtest result) and enumerates both access modes: by run_id for a single run, or by study_id for a study's runs. An agent can immediately tell this is the retrieval counterpart to run_backtest/run_held_out_test.

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?

Gives explicit conditional guidance: call this when run_backtest answered "running" and keep polling until the run ends. Also distinguishes the study_id path and its version qualifier. This is genuine when-to-use instruction, not inference.

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.

Resources