Skip to main content
Glama

Backtesting Arena

Get Regime-Aware Strategy Performance

arena_get_strategy_performance_by_regime
Read-only

In which macro regime has this strategy worked? Historical backtest performance for ONE (strategy, asset, interval) combination SPLIT BY macro market regime (sweet_spot / late_cycle_warning / crisis / recovery — classified at each trade's entry date), PLUS the CURRENT live regime so you can align the buckets yourself. You get the per-regime numbers to weigh directly (per-bucket verdicts live in the per-cell tools, where the pool is stable). Each regime bucket returns trades, trades_per_config, win_rate, avg_pnl_pct, reward_risk_ratio, share_of_time_pct (calendar-day-weighted — each regime observation counts the days until the next one, so the mixed weekly/daily cadence of the regime history does not skew the share) and a rating; meta.metric_note and benchmark.unit_note in the payload say how to read them. For a decision-grade view compose with arena_get_strategy_filter_effect and arena_is_distinguishable. [Free 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": {
      "strategy": "<strategy>",
      "asset": "<asset>"
    },
    "name": "arena_get_strategy_performance_by_regime"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetYesCrypto pair / symbol (e.g. BTCUSDT, ETHUSDT). Case-insensitive.
intervalNoDefault '1w'. Candle interval: '1d' daily, '2d'/'3d' multi-day, '1w' weekly, '1M' monthly. Multi-day candles (2d/3d) are anchored to the Unix epoch, so one of n possible alignments is used. Measured on our own corpus, the choice of alignment alone moves CAGR by 6.66 pp on average (max 12.30). Treat differences below that as not distinguishable — 1d/2d/3d behaved as one block in our tests, not a ranking.
strategyYesStrategy key (e.g. rsi_sma, golden_cross). See arena_list_strategies.
asset_typeNoOptional asset class filter to disambiguate identical pair-names.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / strategy / description
      Previous value: -"Strategy key (e.g. rsi_sma, golden_cross). See arena_get_strategies."New value: +"Strategy key (e.g. rsi_sma, golden_cross). See arena_list_strategies."
  2. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  3. 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: -[
      -  "strategy",
      -  "asset",
      -  "context"
      -]New value: +[
      +  "strategy",
      +  "asset"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / interval / description
      Previous value: -"Default '1w'."New value: +"Default '1w'. Candle interval: '1d' daily, '2d'/'3d' multi-day, '1w' weekly, '1M' monthly. Multi-day candles (2d/3d) are anchored to the Unix epoch, so one of n possible alignments is used. Measured on our own corpus, the choice of alignment alone moves CAGR by 6.66 pp on average (max 12.30). Treat differences below that as not distinguishable — 1d/2d/3d behaved as one block in our tests, not a ranking."
  5. Changed1 schema field changed
    • changedInput schema / properties / interval / enum
      Previous value: -[
      -  "1d",
      -  "1w",
      -  "1M"
      -]New value: +[
      +  "1d",
      +  "2d",
      +  "3d",
      +  "1w",
      +  "1M"
      +]
  6. Changed1 schema field changed
    • changedInput schema / properties / asset_type / enum
      Previous value: -[
      -  "crypto"
      -]New value: +[
      +  "crypto",
      +  "tokenized_equity",
      +  "tokenized_etf",
      +  "commodities"
      +]
  7. Changed2 schema fields changed
    • changedInput schema / properties / asset / description
      Previous value: -"Pair / symbol (e.g. BTCUSDT, AAPL.US). Case-insensitive."New value: +"Crypto pair / symbol (e.g. BTCUSDT, ETHUSDT). Case-insensitive."
    • changedInput schema / properties / asset_type / enum
      Previous value: -[
      -  "crypto",
      -  "stock",
      -  "etf",
      -  "commodities",
      -  "forex"
      -]New value: +[
      +  "crypto"
      +]
  8. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, and the description stays consistent while adding real context: the regime classification happens at each trade's entry date, share_of_time_pct is calendar-day-weighted with an explanation of why, and meta.metric_note / benchmark.unit_note are flagged in the payload. It omits any note on latency, pagination, or tier limits beyond the '[Free tier]' tag, so it is strong but not exhaustive.

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?

The leading question front-loads the purpose well, but the body is a dense run-on with stacked parentheticals (alignment caveats, weighting rationale, payload notes) that an agent must parse in one pass. Content is largely earning its place, yet several asides could be split or trimmed for readability.

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 carries the burden of describing the return shape, and it does so concretely by enumerating the per-bucket fields (trades, trades_per_config, win_rate, avg_pnl_pct, reward_risk_ratio, share_of_time_pct, rating). It could be more complete on error behavior or empty-bucket handling, but for a read-only analytical tool it is nearly sufficient.

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%, so the interval alignment caveat and asset_type disambiguation are already documented in the schema itself. The description adds only the 'classified at each trade's entry date' framing, which is behavioral rather than parameter-level, so the baseline 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?

Opens with a specific question and states exactly what is returned: historical backtest performance for ONE (strategy, asset, interval) split by macro regime, plus the current live regime. It explicitly scopes itself against the per-cell tools where verdicts live, so an agent can distinguish it from siblings without opening a schema.

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?

Gives clear usage context: this tool supplies per-regime numbers to weigh directly, while per-bucket verdicts belong to the per-cell tools, and it names two siblings to compose with for a decision-grade view. It stops short of stating explicit exclusions or when *not* to call it, which keeps it below a 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.