Skip to main content
Glama

AlgoVesta MCP Trading

import_tradingview_backtest

Read-onlyIdempotent

Answers "TradingView says my strategy made X - what would it have made through AlgoVesta?".

You export the strategy's trade list from TradingView and this recomputes it with
real trading costs: taker fees on entry and exit, and the slippage we actually
measure on fills. TradingView's default backtest applies neither unless the strategy
author configured them, which is why exported results are usually optimistic.

Runs in the background: the call returns a `job_ref`; read the result with
`get_job_status(job_ref)`.

Deliberate limits, always repeated in the result:
- Pine Script is NOT executed or interpreted. Only the trade list you exported is
  recomputed. Entry and exit prices stay exactly as TradingView reported them.
- Funding fees are not modelled.
- Rows without a quantity column cannot have fees applied, so their figures stay
  optimistic; the count of such rows is reported.

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": {
      "csv_text": "<csv_text>"
    },
    "name": "import_tradingview_backtest"
  }
}

Input Schema

NameRequiredDescriptionDefault
csv_textYesThe contents of the CSV you exported from TradingView: Strategy Tester -> List of Trades -> Export. Paste the file unchanged, including its header row. The 'Performance Summary' tab is NOT accepted - it has no per-trade rows.
leverageNoLeverage to record with the run (1-125). It is metadata: the profit figures come from your export, so changing it does not rescale them.
slippage_bpsNoSlippage in basis points to apply on entry AND exit (default 3 = 0.03%, the value measured on our own fills).
taker_fee_bpsNoTaker fee in basis points to apply on entry AND exit (default 5 = 0.05%).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/openWorld annotations, it discloses the asynchronous execution model (returns job_ref, read via get_job_status) and explicit limits: Pine Script is not executed, prices are taken verbatim from the export, funding is unmodelled, and quantity-less rows remain optimistic and are counted. That is substantial behavioral context the 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 motivating question, then the mechanism, then the async contract, then limits as a bulleted list. A few lines restate schema-level detail, but nothing is padded or circular.

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, the description fully carries the return contract: a job_ref to poll via get_job_status, plus the caveats that reappear in the result. An agent can call this correctly and interpret the outcome without further information.

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; the description still adds why fees and slippage are applied (TradingView defaults omit them unless the author configured them), which explains the purpose of slippage_bps/taker_fee_bps. It adds little on csv_text or leverage beyond what the schema already says.

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 user question and answers it with a specific verb+resource: re-exported TradingView trade lists are recomputed with real trading costs. The input source (TradingView List of Trades export) and the transformation distinguish it from a signal-based backtest tool.

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 a clear triggering scenario ("TradingView says my strategy made X") and states what input form is required, with the schema adding the exclusion of the Performance Summary tab. It does not name a sibling tool for an alternative approach (e.g., backtest_my_signals), so exclusion guidance is only partial.

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.