MT-MCP Docs
Tool Reference

Risk Management

3 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.

calculate_lot_size

Calculates the appropriate lot size for a trade based on account equity and risk parameters. Uses live account equity and symbol contract specs from the connected terminal. Returns the recommended lot size, risk amount in account currency, and pip value. Returns LOT_TOO_SMALL if the computed lots are below the symbol minimum. Available at Free+ tier (no analytics capability required).

Parameters

NameTypeRequiredDefaultDescription
symbolstringYes
risk_percentnumberYes
stop_loss_pipsnumberYes
terminal_idstringNo

get_correlation

Returns the Pearson price correlation coefficient between two symbols over N daily bars. Ranges from -1.0 (perfect inverse) to +1.0 (perfect positive). Requires the analytics capability (Team+ tier).

Parameters

NameTypeRequiredDefaultDescription
symbol_astringYes
symbol_bstringYes
barsintegerNo20
terminal_idstringNo

get_risk_summary

Returns a portfolio risk overview: aggregate currency exposure, margin utilisation, and correlated pairs. NOTE: Currency exposure logic assumes FX symbols (e.g., EURUSD) where the base currency is the first 3 characters. Results for indices, cryptos, and stocks will be inaccurate. Requires the analytics capability (Team+ tier).

Parameters

NameTypeRequiredDefaultDescription
terminal_idstringNo

On this page