Skip to main content
Glama

Replay a Price-Level Hypothesis

replay_candle_hypothesis
Read-onlyIdempotent

Replay one already stated price hypothesis as round trips. Entry is the level, and only after a candle opens on the near side and trades through it. A candle that opens through the level is an unfilled gap. Exit is the target, the invalidation, or the final close if the horizon ends. Both prices in one candle stay unknown and are left out of the sum. feePctPerSide defaults to 0.1 percent and is charged on entry and exit. The clock still starts at the anchor. Under 10 touches the verdict is INSUFFICIENT_DATA. Returns NO_TRADE. This is not a win rate, a search over stops, or a replacement for RLXBT.

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": {
      "levelPrice": "<levelPrice>",
      "targetPrice": "<targetPrice>",
      "invalidationPrice": "<invalidationPrice>"
    },
    "name": "replay_candle_hypothesis"
  }
}

Input Schema

NameRequiredDescriptionDefault
fNoHorizon in bars, counted from the anchor. Default 10
qNoPattern length preset. Default 5
symbolNoBTCUSDT, ETHUSDT, SOLUSDT or ZECUSDT. Default BTCUSDT
anchorTsNoOptional historical snapshot time in Unix milliseconds
intervalNoChart timeframe. Default 1h
levelPriceYesEntry level the caller named. Required. Do not invent it from a band.
targetPriceYesPrice beyond the level that closes the round trip as a target
feePctPerSideNoPercent of notional charged on entry and again on exit. Default 0.1
invalidationPriceYesPrice on the other side of the level that closes the round trip as an invalidation

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / symbol / description
      Previous value: -"BTCUSDT, ETHUSDT or SOLUSDT. Default BTCUSDT"New value: +"BTCUSDT, ETHUSDT, SOLUSDT or ZECUSDT. Default BTCUSDT"
    • changedInput schema / properties / symbol / enum
      Previous value: -[
      -  "BTCUSDT",
      -  "ETHUSDT",
      -  "SOLUSDT"
      -]New value: +[
      +  "BTCUSDT",
      +  "ETHUSDT",
      +  "SOLUSDT",
      +  "ZECUSDT"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / levelPrice / description
      Previous value: -"Entry level. The trade exists only after price trades through this level. Default is the neighbour P90 above the close"New value: +"Entry level the caller named. Required. Do not invent it from a band."
    • changedInput schema / required
      Previous value: -[
      -  "targetPrice",
      -  "invalidationPrice"
      -]New value: +[
      +  "levelPrice",
      +  "targetPrice",
      +  "invalidationPrice"
      +]
  3. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare read-only, idempotent, closed-world; the description adds the substantive behavior: near-side entry after a candle trades through the level, gap candles that open through it, exit at target/invalidation/horizon close, exclusion of candles where both prices occur, per-side fees, anchor-based clock, and the under-10-touch INSUFFICIENT_DATA verdict. This is exactly the extra context annotations cannot provide for a simulation tool.

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?

Purpose is front-loaded first, then mechanics, then caveats, and no sentence is filler. The telegraphic fragments ("Returns NO_TRADE.", "Under 10 touches the verdict is INSUFFICIENT_DATA.") are terse to the point of slightly blurring which condition produces which verdict.

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 no output schema the description must sketch returns, and it does name verdicts (INSUFFICIENT_DATA, NO_TRADE) and the round-trip framing. It never says what a successful result contains, so an agent knows the rules of the simulation but not the shape or fields of a filled round-trip response.

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%, and the schema already documents defaults, enums, and the fee being charged on entry and again on exit, so the description's fee sentence largely restates it. The only added meaning is that the clock starts at the anchor and that the level must be caller-named, both minor against a fully documented schema.

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?

"Replay one already stated price hypothesis as round trips" gives a specific verb (replay/simulate) and resource, and the phrase "already stated" signals the hypothesis must be supplied rather than discovered. It does not name the sibling it contrasts with (presumably evaluate_candle_hypothesis), so the differentiation is implied rather than explicit.

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 establishes a clear precondition (one caller-named level, not invented from a band) and rules out misuse with "not a win rate, a search over stops, or a replacement for RLXBT." No concrete alternative tool is named for the cases this tool does not cover, so the agent must infer where to go instead.

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