Skip to main content
Glama

TradingView-only: strategy comparison

stock_backtest_compare

Compare every backtest strategy for a symbol under the returned execution timing to get a provider-by-provider leaderboard and the winning strategy providers agree on.

Instructions

Compare every strategy under the returned execution_model timing.

Args: symbol: Ticker. period: Lookback period. initial_capital: Starting cash.

Returns: Envelope with the strategy leaderboard per provider and the winning strategy they agree on (or a stated disagreement).

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

Input Schema

NameRequiredDescriptionDefault
periodNo1y
symbolYes
initial_capitalNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and largely drops it. It does not say whether the call is expensive or slow (backtesting every strategy), whether it requires a TradingView-linked account, how failures for unsupported symbols surface, or what "the returned execution_model timing" actually conditions on.

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 Args/Returns layout is compact and parseable with no filler, but the opening sentence is the weakest part — it is front-loaded yet circular, tying the comparison to an output the caller has not seen, so the reader gains less than the word count suggests.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the Returns paragraph is optional redundancy, and with only three simple parameters the schema covers the mechanics. What is still missing given the complexity of running every strategy is cost/latency expectations and the provider dependency, which no structured field conveys.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, but its parameter notes are pure restatements: "symbol: Ticker," "period: Lookback period," "initial_capital: Starting cash." The valid period format (e.g. "1y" from the default), currency of capital, or constraints on symbol are never explained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb "Compare" and resource "strategy" are visible, and the title adds "TradingView-only: strategy comparison" scope. However, the body says "Compare every strategy under the returned `execution_model` timing," which never states which strategy universe, what the comparison ranks on, or how it differs from the sibling `stock_backtest`. The purpose is recognizable but vague.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no mention of when a plain single-strategy backtest is preferable, and no prerequisite or provider constraint stated in the description — the TradingView-only restriction lives only in the title. An agent must guess whether to call this or `stock_backtest`.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.