Skip to main content
Glama

Backtest Equity Curve

backtest_chart
Read-only

Run a strategy backtest and render its equity curve as an interactive chart in the conversation (capital growth + drawdown, with return / win-rate / Sharpe stats). Strategies: rsi, bollinger, macd, ema_cross, supertrend, donchian, rsi_pullback, keltner_breakout, triple_ema. period: 1mo|3mo|6mo|1y|2y, interval: 1d|1h. Max drawdown is measured bar by bar, dips inside an open trade included; the bars under the curve show drawdown at trade exits, so they can be shallower. Clients without interactive app support can read the summary field.

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": {
      "symbol": "<symbol>"
    },
    "name": "backtest_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNo1y
symbolYes
intervalNo1d
strategyNoema_cross
initial_capitalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish read-only, non-destructive, open-world behavior, and the description goes further by explaining what is drawn (equity curve plus drawdown bars), the metric definitions, and the non-interactive fallback via the `summary` field. The one gap is that it doesn't say how `summary` is shaped or whether data is cached/reproducible, but for a rendering tool this is substantive extra context.

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 purpose, then enumerations, then the drawdown caveat, then the client fallback — a sensible order with no filler. The drawdown-bar explanation is dense and slightly over-detailed relative to a tool description, but it does earn its place by preventing a misread of the chart.

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?

No output schema exists, and the description compensates by describing chart contents and the `summary` escape hatch. With five parameters and zero schema coverage, the missing `symbol` and `initial_capital` semantics are the main remaining hole in an otherwise complete definition.

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 0%, so the description must carry parameter meaning; it does enumerate the nine strategy values and the period/interval options, which is real added value. It says nothing about `symbol` format (ticker? exchange-qualified?) or what `initial_capital` affects in the results, leaving two of five parameters undocumented anywhere.

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 concrete verb+resource pair ('Run a strategy backtest and render its equity curve as an interactive chart') and specifies the artifacts produced (capital growth, drawdown, return/win-rate/Sharpe stats). This clearly separates it from a plain backtest or a price chart without needing to name a sibling.

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?

Implicitly tells the agent to use this when a visual equity curve is wanted, and the fallback sentence tells it what to do when the client can't render interactive output. However, it never contrasts with backtest_strategy, compare_strategies, or walk_forward_backtest_strategy, so the choice among the backtest family is left to inference.

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.