Skip to main content
Glama

Backtesting Arena

Get Strategy Insights Matrix or Detail

arena_get_strategy_insights
Read-only

Which strategy and interval combinations actually performed? Aggregated backtest performance per (strategy × interval) cell. If strategy AND interval provided, returns detail with per-asset breakdown + param variants. Otherwise returns the matrix. Free tier is limited to the same strategies that are free in the backtester itself (rsi_sma, golden_cross, rsi_ob_os, bnh_fixed, dca_reference, dca_reference_v2); the response then carries plan_capped: true. Detail mode on a Pro-only strategy returns 403 rather than a silently empty answer. API Pro and Power receive every cell. The envelope defines its own counts and averages (counts_definition, win_rate_definition, benchmark_definition, bhAssetCoverage_definition) — read them before quoting runCount, avgWinRate or beatsBuyhold. Matrix mode also carries summary counted over the cells actually returned — quote those instead of counting cells yourself. [Free: 6 strategies / Pro+: full]

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

Input Schema

NameRequiredDescriptionDefault
detailNoMatrix mode: 'compact' = every cell, core fields only (~40 % size). Default 'full'.
intervalNoDetail mode: interval. 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.
min_runsNoMatrix mode: minimum runs per cell. Default 5.
strategyNoDetail mode: strategy key (used together with `interval`).
asset_typeNoRestrict to one asset class.
assets_modeNo'top10' restricts to top-10 pairs by run-count.
ref_strategyNoBenchmark reference. Default 'bh'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / detail
      Added value: +{
      +  "description": "Matrix mode: 'compact' = every cell, core fields only (~40 % size). Default 'full'.",
      +  "enum": [
      +    "compact",
      +    "full"
      +  ],
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / min_runs / maximum
      Added value: +9007199254740991
  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"
      -}
    • removedInput schema / required
      Removed value: -[
      -  "context"
      -]
  4. Changed1 schema field changed
    • changedInput schema / properties / interval / description
      Previous value: -"Detail mode: interval."New value: +"Detail mode: interval. 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. Changed1 schema field changed
    • changedInput schema / properties / asset_type / enum
      Previous value: -[
      -  "crypto",
      -  "stock",
      -  "etf",
      -  "commodities",
      -  "forex"
      -]New value: +[
      +  "crypto"
      +]
  8. First observed

TDQS

A4.1/5.0
Behavior5/5

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

With only readOnlyHint supplied, the description carries substantial behavioral weight: free-tier strategy list, the `plan_capped: true` marker, the 403 failure mode in detail mode, and the fact that matrix `summary` is computed over the cells actually returned rather than the full universe. The instruction to read the envelope's *_definition fields before quoting runCount/avgWinRate/beatsBuyhold is exactly the kind of context annotations cannot convey.

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?

Front-loaded with the question and the matrix/detail split, then layered caveats, which fits the complexity. Most sentences earn their place, but the trailing '[Free: 6 strategies / Pro+: full]' restates the free-tier sentence above it and the envelope-definition list is dense enough to slow scanning.

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, so the description must describe return shape, and it does: per-asset breakdown plus param variants in detail mode, a matrix with `summary` otherwise, `plan_capped`, and self-defining envelope fields. It leaves the concrete field names of matrix cells and the detail payload structure unstated, a minor gap given seven optional parameters and two return modes.

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 every parameter is already documented at the schema level, which sets the baseline at 3. The description adds real value only for the `strategy` + `interval` pairing that switches modes (including the 403 consequence); the remaining parameters (detail, min_runs, asset_type, assets_mode, ref_strategy) are left entirely to the 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?

Opens with a specific question ('Which strategy and interval combinations actually performed?') and names the resource precisely: aggregated backtest performance per (strategy × interval) cell. It also states the two operating modes (matrix vs detail). It never names a sibling tool to contrast against, so differentiation is implied by the resource shape rather than stated.

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?

The mode-selection rule is explicit: pass both `strategy` and `interval` for detail, otherwise you get the matrix. It also states the free-tier boundary and that detail on a Pro-only strategy yields a 403 rather than an empty answer. It stops short of pointing at alternative tools for adjacent questions (e.g. regime or robustness breakdowns).

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.