Skip to main content
Glama

Get a backtest result

get_backtest
Read-onlyIdempotent

Retrieve a previous backtest by run_id — the full record, including why it was rejected.

    Only runs in YOUR namespace are visible; a run_id belonging to someone else is simply not
    found. Args: run_id (the `twmd_bt_…` handle returned by run_backtest).
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
cagrNo
hintNo
as_ofNo
errorNo
periodNo
reasonNo
run_idNo
sharpeNo
statusNo
blockedNo
acceptedNo
turnoverNo
warningsNo
citationsNo
query_idsNo
gate_passedNo
max_drawdownNo
anti_overfittingNo
known_strategiesNo
rejection_reasonsNo
survivorship_safeNo
not_investment_adviceNo

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent behavior, so the bar is lower. The description adds valuable behavioral context beyond annotations: it reveals that rejected backtests are retrievable and that out-of-namespace run_ids return 'not found' rather than an error. No contradiction with annotations.

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?

Three concise sentences with the core purpose front-loaded, followed by the namespace caveat and parameter guidance. Every sentence adds useful information with no redundancy or 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?

For a simple single-parameter retrieval tool with an output schema present, the description covers everything an agent needs: how to identify the run, where the handle comes from, and the namespace visibility behavior. No critical gaps.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden for the single parameter. It compensates well by explaining the format (`twmd_bt_…` handle) and provenance (returned by run_backtest), adding meaning far beyond the bare schema property.

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 ('Retrieve'), resource ('previous backtest'), and key ('run_id'), and clarifies it returns the full record including rejection reasons. This clearly distinguishes it from siblings like run_backtest, replay_backtest, and list_backtests.

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?

Provides clear context for when to use the tool—retrieving a prior backtest by run_id—and adds an important namespace exclusion (others' run_ids are simply not found). It does not explicitly name alternative tools, but the usage context is strong and unambiguous.

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.

TDQS

A4/5.0
Disambiguation4/5

The tools are largely distinct: querying, searching, backtesting, risk reads, alerts, memory, and audit functions each have clear homes. A few adjacent pairs (risk_read vs risk_assess, company_health_check vs positioning_read) could be confused, but the descriptions draw explicit boundaries.

Naming Consistency3/5

There are strong consistent clusters like list_*, get_*, run_*, and memory_*, but the *_read suffix alternates with noun-first names like company_health_check, and bare-verb tools like ask, calendar, chart, and screen break the pattern. The naming is readable but not uniform.

Tool Count2/5

Forty tools is well past the 25+ threshold and makes the surface heavy for an agent to navigate, even though the breadth reflects a genuinely wide platform. Several clusters could plausibly be consolidated without losing capability.

Completeness4/5

The tool surface covers the main lifecycle well: discovery, point-in-time querying, filings search and full text, backtesting, research, risk assessment, alerts, memory, approvals, and provenance verification. Minor gaps exist—no strategy management tools, no memory deletion, no bulk export—but agents can work around them.

Resources