Skip to main content
Glama

Show Backtest Chart (equity + trades)

get_model_chart
Read-onlyIdempotent

A trained model's backtest: trades, stats and the data for a cumulative-return chart.

Takes a model's `stem` (from `get_deploy_result`, `one_shot` or `list_models`)
and returns how it traded. In clients that render the openai/outputTemplate
widget (ChatGPT) it shows an interactive chart; elsewhere the structured
output carries the trades and stats a client can draw as a line chart of
the cumulative return and a trade table.

Args:
  stem: The model stem (e.g. "14_EURUSD_15min_Model_24") from `list_models` / `one_shot`.

Returns:
  dict with: ok, stem, symbol, timeframe, stats {ret, wr, pf, n, mdd, sharpe},
  and trades [{type, entry_time, exit_time, entry_price, exit_price, pnl,
  pnl_pct, exit_reason, period}] (most recent ~200). exit_reason is one of
  TP / SL / close_only / signal / end. ret/mdd/wr are fractions; pnl_pct is percent.

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": {
      "stem": "<stem>"
    },
    "name": "get_model_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
stemYesA model's stem from list_models, one_shot or get_deploy_result, e.g. 14_EURUSD_15min_Model_24.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / stem / description
      Added value: +"A model's stem from list_models, one_shot or get_deploy_result, e.g. 14_EURUSD_15min_Model_24."
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, and open-world traits, so the description's added value is in disclosure of result shape: roughly the most recent 200 trades, the meaning of exit_reason values, and unit conventions (ret/mdd/wr as fractions, pnl_pct as percent). It does not state whether the full history is retrievable or whether any errors/limits apply, which keeps it from a 5.

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?

The description is front-loaded with purpose and then uses structured Args/Returns sections, which is easy to scan. The Returns block is somewhat long and partly duplicates what an output schema already conveys, but the unit and exit_reason explanations earn most of that space.

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?

For a single-parameter read tool with an output schema and full annotation coverage, the definition supplies the key context an agent needs: where the stem comes from, what the response contains, rendering differences between clients, and the ~200-trade cap. Only error/edge-case behavior is unaddressed.

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 single `stem` parameter already documents its source tools and example format. The Args section in the description repeats essentially the same information, adding no new syntax, validation, or fallback semantics, so the baseline of 3 applies.

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?

The first line names a specific resource and scope: a trained model's backtest, covering trades, stats, and chart data. It distinguishes itself from sibling tools by naming where the `stem` comes from (get_deploy_result, one_shot, list_models), though it doesn't explicitly contrast with get_training_result, which an agent could plausibly confuse it with.

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 description establishes the prerequisite chain clearly: obtain a stem from list_models, one_shot, or get_deploy_result, then call this tool to see how the model traded. It also explains the client-dependent behavior (widget vs structured fallback), but gives no explicit when-not-to-use guidance or alternatives for inspecting performance.

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