Skip to main content
Glama

run_hyperliquid_research_backtest

Run an out-of-sample backtest on Hyperliquid perp OHLCV stored in FortFi research Postgres (hl_research_candles). Returns IS/OOS metrics and a pass/fail verdict. Read-only; uses synced historical data, not live HL API for bars. Strategies: momentum_cross (default).

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

Input Schema

NameRequiredDescriptionDefault
coinsNoOptional fixed symbol list (e.g. BTC, ETH). Omit for volume-filtered universe
holdBarsNoHold period in bars. Default 24
intervalNoCandle interval in research DB. Default 1h
strategyNoDefault momentum_cross
legsPerSideNoLong/short leg count. Default 6
oosFractionNoOut-of-sample tail fraction. Default 0.35
lookbackBarsNoTrailing return lookback. Default 336 on 1h (~14d)
minDayVolumeUsdNoUniverse liquidity floor when coins omitted. Default 1000000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it explicitly declares the operation read-only, discloses that bars come from synced Postgres history instead of the live Hyperliquid API, and describes the return (IS/OOS metrics and a pass/fail verdict). It still omits runtime expectations, whether results are persisted anywhere, and what happens when stored data is missing or stale.

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?

Four short sentences with zero filler: purpose first, then return contract, then the read-only/data-source caveat, then the strategy note. Each sentence carries distinct information an agent needs, and nothing is repeated from the schema at length.

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?

There is no output schema, and the description compensates by naming the returned metrics and verdict, which is the key unknown for a backtest tool. With 8 optional parameters fully documented in the schema, the remaining gap is minor: it does not address data-availability preconditions or expected execution time for a potentially heavy compute call.

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%, so every parameter including defaults and enums is already documented in the schema. The description adds only a restatement that momentum_cross is the default strategy, which duplicates the schema entry; it adds no new semantics such as how oosFraction interacts with lookbackBars or how the volume floor applies when coins is omitted.

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 and resource: run an out-of-sample backtest on Hyperliquid perp OHLCV from the hl_research_candles table in FortFi research Postgres. It also names the return shape (IS/OOS metrics plus pass/fail verdict). It does not distinguish itself from the close sibling run_hyperliquid_research_backtest_spec, which an agent could easily confuse with this tool.

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 rather than stated: the description clarifies the data source is synced historical bars rather than the live HL API, which helps an agent pick it for research rather than live checks. However, it never says when to prefer this tool over run_hyperliquid_research_backtest_spec, get_hyperliquid_research_data_stats, or the live market tools, and gives no prerequisites such as requiring prior data sync.

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