Help / AI
MCP tool reference
Every tool an AI app gets when it’s connected to OpenTapefolio’s MCP server (see Connect Claude or ChatGPT). You don’t call these yourself: ask your AI app in plain words and it picks the tools. The names help when you want to know what it can do, or to read what it did.
Market data and analysis#
Symbols can be given as BTC/USDT, BTCUSDT or binance:BTCUSDT; when a name trades on several venues, the tool asks which. Times are UTC.
| Tool | What it does | Access |
|---|---|---|
list_symbols | The symbols there’s data for, optionally filtered (“BTC”); a search also finds your own stocks and forex | Look only |
get_quote | A symbol’s latest price, 24-hour change, high, low and volume | Look only |
get_bars | Candles (time, open, high, low, close, volume), oldest first, up to 500, at any timeframe: the latest, a date range, or around a moment | Look only |
list_indicators | The built-in indicators get_indicator can work out, with their inputs | Look only |
get_indicator | An indicator’s recent values on a symbol and timeframe (RSI, MACD, Bollinger Bands…), with your own inputs | Look only |
get_technical_rating | The buy/sell summary of 15 moving averages and 11 oscillators, with each reading | Look only |
run_screener | Symbols filtered by 24-hour change and volume, and optionally RSI and trend on a timeframe, as the app’s screener works them out; it says how many it scanned and which it couldn’t read | Look only |
get_chart_snapshot | A chart in words and numbers: price, change, range, rating, the patterns, divergences and trend lines the app finds, and your drawings on it | Look only |
get_news | Recent news headlines and summaries for a symbol | Look only |
get_fundamentals | A US stock’s figures from its SEC filings: revenue, earnings, margins, valuation | Look only |
get_economic_calendar | The economic calendar: releases such as CPI, jobs and rates, with their figures | Look only |
get_corporate_events | A stock’s earnings dates, dividends and splits | Look only |
get_order_flow | The order book now, a perpetual’s funding and open interest, recent liquidations, or large trades | Look only |
ask_chart | Asks the app’s own chart assistant about a chart (spends your daily assistant tokens); a long answer comes back as an id for get_answer | Look only |
get_answer | An answer ask_chart was still working on, once it’s ready (kept ten minutes) | Look only |
parse_alert | Reads a sentence as an alert, checked but not created, for you to confirm | Look only |
parse_screen | Reads a sentence as the screener’s settings | Look only |
list_strategies | The built-in strategies run_backtest tests, with their inputs | Look only |
run_backtest | Backtests a built-in strategy on a symbol, with your inputs (checked: a misspelt or out-of-range one is refused, not ignored) | Look only |
backtest_script | Backtests a strategy script it wrote on the symbol’s stored history, in the server’s sandbox (counts against your deep backtests) | Look only |
get_backtest | A deep backtest’s results, once it’s done (backtest_script answers with its id after 40 seconds) | Look only |
AAPL, EUR/USD or oanda:EUR_USD. They’re read with your keys and only for apps you connected. list_symbols finds yours when given a search (“AAPL”), marked as your own; they can’t be listed all at once.Your watchlists, alerts, account and scripts#
| Tool | What it does | Access |
|---|---|---|
list_watchlists | Your watchlists, with each symbol’s last price and 24-hour change | Look only |
list_alerts | Your alerts and whether each is active | Look only |
get_alert_history | The alerts that fired lately: when, at what price, and their message | Look only |
get_paper_account | Your paper account: balance, open positions and open orders | Look only |
list_scripts | Your scripts in the Script editor, by name | Look only |
get_script | One of your scripts, with its source | Look only |
get_script_reference | How to write a script: the rules, the full API and examples (an app reads this before save_script) | Look only |
Tools that change things#
| Tool | What it does | Access |
|---|---|---|
create_price_alert | An alert for when price crosses a fixed level (either way, up or down), with a message. It fires with the app closed | Look and change things |
create_alert | An alert between the price, a level and built-in indicators: price crossing its 50-day average, RSI under 30 | Look and change things |
pause_alert | Pauses one of your alerts, or resumes it | Look and change things |
delete_alert | Deletes one of your alerts | Look and change things |
place_paper_order | A paper (simulated) market, limit or stop order, with an optional take profit and stop loss. No real money | Look and change things |
cancel_paper_order | Cancels an open paper order | Look and change things |
get_usage | What this API key may do and how much of its plan is used | Look and change things |
modify_paper_order | Moves an open paper order to a new price | Look and change things |
close_paper_position | Closes a paper position at market | Look and change things |
add_to_watchlist | Adds symbols to one of your watchlists. It only adds: nothing on the list is removed or moved | Look and change things |
add_drawing | Draws a horizontal or vertical line, a trend line or ray, a zone or a text note on your chart of a symbol. It only adds: your own drawings are never changed | Look and change things |
save_script | Saves a new indicator or strategy to your Script editor (checked to parse, not run). It appears when the app next loads | Look and change things |
Each counts against your plan’s changes by AI apps and API keys an hour (see limits), and each is listed on the Account page under What AI apps and API keys changed.
Strategy Lab#
The first three read your own portfolios. The rest read ai-algo’s strategies, which only accounts given ai-algo access can see (the admin’s, unless the server opens them to everyone); for other accounts they return nothing.
| Tool | What it does | Access |
|---|---|---|
lab_list_portfolios | Your Strategy Lab portfolios: name, swing or day trades, strategies, start | Look only |
lab_portfolio_performance | How a portfolio is doing: value, time-weighted return, drawdown, model against actual, money in and out, fees, each strategy’s P&L | Look only |
lab_combined_performance | Portfolios side by side and together, with returns, drawdown, trades and fees | Look only |
lab_list_strategies | ai-algo’s strategies: each algo and its strategies, when they went live, trade counts | Look only |
lab_get_strategy | One strategy’s settings, latest signals, recent trades and win rates | Look only |
lab_open_positions | Open positions: side, entry, latest close, open return, distance to stop | Look only |
lab_run_portfolio | Runs a portfolio of strategies with equal weights and rebalancing, against buy and hold and an ETF | Look only |
lab_compare | Every swing or day-trade strategy over one window, the best and worst against buy and hold, with how far to trust each | Look only |
lab_suggest_portfolio | Suggests a portfolio: the best Sharpe first, then each next best that doesn’t move with those already picked | Look only |
ai-algo’s signals#
These read ai-algo’s signals API, which takes a key of its own: an ai-algo signals key from the Account page, offered to accounts with ai-algo. Connected with that key, an AI app gets these two tools and nothing else; with any other key it doesn’t get them.
| Tool | What it does | Access |
|---|---|---|
ai_algo_today | ai-algo’s day as its emails tell it: each folder’s runs, what opens, what closes at the close, what closed and why, what’s near its stop | Look only |
ai_algo_signals | The pre-open swing signals that act (or all of them), and the day trades with how they went | Look only |
Text people typed is data#
Tools whose results include text someone typed (watchlist, script and portfolio names, a script’s source, investors’ names, drawings’ text, news, alert messages) mark it as data, never instructions, so a sentence hidden in a script’s comments can’t steer the app. In the Strategy Lab, investors appear as “Investor 1”, “Investor 2” to AI apps; their names stay on the site.
TradingView and Pine Script are trademarks of TradingView, Inc. OpenTapefolio is not affiliated with or endorsed by TradingView.