Skip to main content
Glama

AlgoVesta MCP Trading

backtest_my_signals

Read-onlyIdempotent

Answers "what would have happened to MY OWN past signals with different settings?" - for example "5x instead of 10x" or "a 2% stop instead of 1%".

It replays the signals YOU actually received (your Telegram channels and your
TradingView webhooks) against real historical 1-minute price data, twice: once with
each signal's original stop-loss, take-profit and leverage, and once with the
settings you asked for. The difference is reported under `comparison`.

This runs in the background because a full replay can take several minutes. The call
returns a `job_ref` immediately; the result is available from `get_job_status(job_ref)`.

What the result always reports:
- `coverage`: how many of their signals could actually be simulated. If some had no
  historical price data or no stop-loss, the numbers describe only the subset.
- `assumptions`: fees, slippage, partial-take-profit behaviour and what is NOT
  modelled (funding fees). Never present the PnL without these.
- Past performance does not guarantee future results. This is not investment advice.

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

Input Schema

NameRequiredDescriptionDefault
daysNoLook-back window in days (1-90). Only your own signals received inside this window are replayed.
sl_pctNoOverride the stop-loss distance, in percent from entry (e.g. 2 means 2%). Leave empty to use each signal's own stop-loss.
sourceNoWhich of your signal sources to replay: 'all' (default), 'telegram' for your connected Telegram channels, or 'tradingview' for your webhook strategies.all
tp_pctNoOverride the take-profit distance, in percent from entry. Leave empty to use each signal's own take-profit.
symbolsNoOptional list of symbols to restrict the run to, e.g. ['BTCUSDT','SOLUSDT']. If omitted, every symbol in your signal history is included.
leverageNoOverride the leverage for every signal (1-125). Leave empty to use whatever leverage each signal originally carried. The exchange's own limit still applies to real orders.
margin_usdNoMargin in USD to assume per trade (default 100). This is the collateral, not the position size: position size = margin x leverage.
partial_tpNoIf true, model AlgoVesta's partial take-profit behaviour: close half the position at half the take-profit distance and move the stop to break-even. Default false (plain stop-loss / take-profit).
taker_fee_bpsNoTaker fee in basis points applied on entry AND exit (default 5 = 0.05%, the public Binance futures taker tier). Your own VIP tier is usually lower.
max_hold_minutesNoMaximum time to hold a position, in minutes, before it is closed at market (default 1440 = 24 hours).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses that the run happens in the background and can take several minutes, that the call returns a `job_ref` immediately, and that results always include `coverage` and `assumptions`. It also flags what is NOT modelled (funding fees) and warns never to present PnL without the assumptions — exactly the kind of behavioral context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the user-facing question, then moves through mechanics, job handling, and always-reported fields in scannable chunks. Every block carries information an agent needs to call the tool and report results honestly; the compliance sentence is short and functional.

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

Completeness5/5

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

With no output schema present, the description compensates by enumerating the guaranteed result fields (`coverage`, `assumptions`) and their meaning. Combined with the async job contract and the follow-up tool reference, an agent has everything needed to invoke and report correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description adds modest extra meaning by illustrating override semantics ("5x instead of 10x", "a 2% stop instead of 1%") rather than restating field docs. It stops short of explaining how the override interacts with signals that lack a stop-loss, which the `coverage` note only hints at.

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?

States a specific verb and resource in the user's own framing ("replays the signals YOU actually received ... against real historical 1-minute price data") and scopes it to the caller's own Telegram/TradingView signals, which separates it from generic replay or import tools. The dual-replay mechanics with `comparison` output makes the operation concrete rather than tautological.

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 concrete trigger examples ("5x instead of 10x", "a 2% stop instead of 1%") and states the follow-up path explicitly via `get_job_status(job_ref)`. It does not name when a caller should prefer a sibling such as `replay_channel` or `import_tradingview_backtest`, so the when-not guidance is incomplete.

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.