Skip to main content
Glama

Backtesting Arena

Historical analog — conditional forward returns

arena_get_historical_analog
Read-only

What happened historically after the Bitcoin cycle looked like this? Conditional forward-return distribution for a named preset cycle state — over N DISTINCT historical episodes matching that state (matched_episodes), returns median/IQR/positive-share forward returns (30/90/180/365d) with per-horizon n, small-n warnings, point-in-time integrity and an evidence block for the sample-size gate. A distribution with its sample size. Not obtainable from web search or public market-data APIs — requires point-in-time indicator history and look-ahead-free episode matching. Presets: cycle_bottom_cluster (Cycle bottom cluster), cycle_top_cluster (Cycle top cluster), deep_fear (Deep fear), euphoria (Euphoria), quiet_volatility (Quiet volatility regime). The response carries preset_definition, current_state_matches, last_matching_date, study_finding (where a study exists) and vs_unconditional_drift — drift_note and semantics_note in the payload say how to read them. For quiet_volatility, vol_rank_threshold (fixed steps 5/10/20/50) asks the stricter "UNUSUALLY quiet" question the null study left open, and condition_on_direction conditions episodes on the sign of the first post-anchor move over direction_window_days (default 5). Also works for asset=ETH/SOL (F2 cycle history), but only price-derived presets (cycle_bottom_cluster, cycle_top_cluster) — fear-greed and volatility presets are BTC-only. Set include_path=true (BTC, predicate presets) to add "path_statistics": what happened ON THE WAY — MAE/MFE, days to trough, days under water (total and longest unbroken streak), days to first recovery — over the SAME episodes as forward_returns. Related: arena_get_volatility_history (the series behind the volatility preset), arena_get_cycle (the current state to compare against), arena_dip_scenario (composes this base rate into a tranche structure). [API Pro tier]

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": {
      "preset": "<preset>"
    },
    "name": "arena_get_historical_analog"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetNoWhich asset’s cycle history. Default BTC. ETH/SOL support only price-derived presets (cycle_bottom_cluster, cycle_top_cluster).
presetYesNamed ex-ante cycle-state condition set. One of: cycle_bottom_cluster, cycle_top_cluster, deep_fear, euphoria, quiet_volatility.
include_pathNoDefault false. true adds path_statistics per horizon (MAE/MFE, days under water, longest under-water streak, days to first recovery) over the same episodes as forward_returns. BTC and predicate presets only (not quiet_volatility, not ETH/SOL in v1).
forward_horizonsNoForward-return horizons in days (max 20). Default [30, 90, 180, 365] — except for quiet_volatility, which defaults to the horizons its study actually tested ([30, 90, 180]); anything beyond that is flagged as outside the protocol.
vol_rank_thresholdNoquiet_volatility only. Reference threshold as a FIXED step: 50 (default, below trailing median — the studied definition) or 5/10/20 (unusually quiet: RV30 below its trailing Nth percentile). Any value other than 50 sets study_finding_applies=false — the null study covered only the default.
direction_window_daysNoClassification window for condition_on_direction (default 5). Only meaningful together with condition_on_direction.
condition_on_directionNoquiet_volatility only. Condition episodes on the direction of the FIRST post-anchor move (sign of the direction_window_days-day return). Horizons <= direction_window_days are suppressed as circular. Sets study_finding_applies=false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / forward_horizons / description
      Previous value: -"Forward-return horizons in days. Default [30, 90, 180, 365] — except for quiet_volatility, which defaults to the horizons its study actually tested ([30, 90, 180]); anything beyond that is flagged as outside the protocol."New value: +"Forward-return horizons in days (max 20). Default [30, 90, 180, 365] — except for quiet_volatility, which defaults to the horizons its study actually tested ([30, 90, 180]); anything beyond that is flagged as outside the protocol."
    • addedInput schema / properties / forward_horizons / maxItems
      Added value: +20
  2. Changed5 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / forward_horizons / items / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / vol_rank_threshold / anyOf
      Added value: +[
      +  {
      +    "const": 5,
      +    "type": "number"
      +  },
      +  {
      +    "const": 10,
      +    "type": "number"
      +  },
      +  {
      +    "const": 20,
      +    "type": "number"
      +  },
      +  {
      +    "const": 50,
      +    "type": "number"
      +  }
      +]
    • removedInput schema / properties / vol_rank_threshold / enum
      Removed value: -[
      -  5,
      -  10,
      -  20,
      -  50
      -]
    • removedInput schema / properties / vol_rank_threshold / type
      Removed value: -"number"
  3. Changed1 schema field changed
    • addedInput schema / properties / include_path
      Added value: +{
      +  "description": "Default false. true adds path_statistics per horizon (MAE/MFE, days under water, longest under-water streak, days to first recovery) over the same episodes as forward_returns. BTC and predicate presets only (not quiet_volatility, not ETH/SOL in v1).",
      +  "type": "boolean"
      +}
  4. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): \"Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization.\"",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "preset",
      -  "context"
      -]New value: +[
      +  "preset"
      +]
  5. Changed3 schema fields changed
    • addedInput schema / properties / condition_on_direction
      Added value: +{
      +  "description": "quiet_volatility only. Condition episodes on the direction of the FIRST post-anchor move (sign of the direction_window_days-day return). Horizons <= direction_window_days are suppressed as circular. Sets study_finding_applies=false.",
      +  "enum": [
      +    "up",
      +    "down"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / direction_window_days
      Added value: +{
      +  "description": "Classification window for condition_on_direction (default 5). Only meaningful together with condition_on_direction.",
      +  "maximum": 90,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / vol_rank_threshold
      Added value: +{
      +  "description": "quiet_volatility only. Reference threshold as a FIXED step: 50 (default, below trailing median — the studied definition) or 5/10/20 (unusually quiet: RV30 below its trailing Nth percentile). Any value other than 50 sets study_finding_applies=false — the null study covered only the default.",
      +  "enum": [
      +    5,
      +    10,
      +    20,
      +    50
      +  ],
      +  "type": "number"
      +}
  6. Changed3 schema fields changed
    • changedInput schema / properties / forward_horizons / description
      Previous value: -"Forward-return horizons in days. Default [30, 90, 180, 365]."New value: +"Forward-return horizons in days. Default [30, 90, 180, 365] — except for quiet_volatility, which defaults to the horizons its study actually tested ([30, 90, 180]); anything beyond that is flagged as outside the protocol."
    • changedInput schema / properties / preset / description
      Previous value: -"Named ex-ante cycle-state condition set. One of: cycle_bottom_cluster, cycle_top_cluster, deep_fear, euphoria."New value: +"Named ex-ante cycle-state condition set. One of: cycle_bottom_cluster, cycle_top_cluster, deep_fear, euphoria, quiet_volatility."
    • changedInput schema / properties / preset / enum
      Previous value: -[
      -  "cycle_bottom_cluster",
      -  "cycle_top_cluster",
      -  "deep_fear",
      -  "euphoria"
      -]New value: +[
      +  "cycle_bottom_cluster",
      +  "cycle_top_cluster",
      +  "deep_fear",
      +  "euphoria",
      +  "quiet_volatility"
      +]
  7. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, but the description goes far beyond that: it discloses the small-n warning behavior, the evidence/sample-size gate, point-in-time and look-ahead-free integrity guarantees, the study_finding_applies=false side effect for non-default thresholds, suppression of circular horizons, and the API Pro tier requirement. That is exactly the behavioral surface an agent needs before calling.

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?

It is front-loaded well with the core question and answer shape, but the body is a dense run-on that re-covers material already present in the schema (threshold steps, direction window, include_path limits). Several clauses could be cut without losing decision-relevant information.

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?

With no output schema, the description carries the full burden and does so: it enumerates the returned fields (preset_definition, current_state_matches, last_matching_date, study_finding, vs_unconditional_drift, path_statistics), plus warning and gating behavior. For a complex, multi-parameter analytical tool, nothing needed to call it correctly appears missing.

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% and the schema already documents defaults, enums, and the study_finding_applies side effects, so the baseline is 3. The description adds some interpretive value by framing vol_rank_threshold as the stricter "UNUSUALLY quiet" question the null study left open and by explaining the per-preset default horizon set, but most parameter detail is restated rather than extended.

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 sentence names a specific question and a specific output artifact — a conditional forward-return distribution over N distinct matched historical episodes — for a named preset cycle state. It clearly separates itself from siblings by naming what it is not (web search, public APIs, and explicitly arena_get_cycle vs arena_get_volatility_history vs arena_dip_scenario).

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 clear routing context: use arena_get_cycle for the current state, arena_get_volatility_history for the underlying series, arena_dip_scenario to compose the base rate into tranches, and this tool for the historical conditional distribution. It also states scope limits (ETH/SOL only with price-derived presets, include_path restrictions, Pro tier). It stops short of explicit "do not use this when…" exclusions, so a 4 rather than 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.