MT-MCP Docs
Tool Reference

Analytics

5 tools — auto-generated from the MCP server's tool schemas.

Generated

This page is generated from packages/server/mcp/src/tools/*.ts by pnpm docs:generate-tools. Do not edit it by hand — edit the tool's description/schema in source and regenerate.

check_order

Checks whether an order can be placed without sending it. Supports both market and pending order types. Returns { feasible, required_margin, free_margin, estimated_cost, reason? }.

Parameters

NameTypeRequiredDefaultDescription
symbolstringYes
order_typestringYes(one of: BUY, SELL, BUY_LIMIT, BUY_STOP, SELL_LIMIT, SELL_STOP)
volumenumberYes
pricenumberNo
terminal_idstringNo

get_pnl_by_symbol

Returns P&L broken down per trading symbol. Result: { items: [{ symbol, pnl, trades }] } sorted by |pnl| descending.

Parameters

NameTypeRequiredDefaultDescription
from_datestringNo
to_dateanyNo
terminal_idstringNo

get_pnl_by_time

Returns P&L bucketed into time intervals. Result: { items: [{ period_start, pnl, trades }] } sorted chronologically.

Parameters

NameTypeRequiredDefaultDescription
periodstringNo"DAY"(one of: DAY, WEEK, MONTH)
from_datestringNo
to_dateanyNo
terminal_idstringNo

get_tick_history

Returns a sequence of raw ticks for a symbol. Result: { ticks: [{ time, bid, ask, last, volume }] }.

Parameters

NameTypeRequiredDefaultDescription
symbolstringYes
countintegerNo100
from_datestringNo
terminal_idstringNo

get_trade_stats

Returns aggregate statistics over closed trades: total_trades, win/loss counts, win_rate, avg_profit, avg_loss, profit_factor, total_pnl.

Parameters

NameTypeRequiredDefaultDescription
symbolstringNo
from_datestringNo
to_dateanyNo
terminal_idstringNo

On this page