Skip to main content

MCP Tool Reference Index

This is the master index of CrossTrade MCP tools. Each row links to the dedicated tool page with parameters, response shapes, examples, common errors, and safe placement in an agent loop.

Permission legend:

  • 📖 mcp:read
  • 📝 mcp:trade

For deeper grouping with prose, see Core Tools, NinjaScript and Strategies, Backtesting and Optimization, Platform Tools, and Journal and Diagnostics.

Discovery and capability

ToolScopeUse case
GetMcpCapabilities📖First call. Confirms add-on version, backtest engine, and features.
McpSelfTest📖Verifies transport and tool categories.

Accounts and connections

ToolScopeUse case
ListAccounts📖Enumerate accounts visible to the user.
GetConnections📖Connection state per account.
GetAccountSummary📖Realized and unrealized P&L summary.
GetWatermarks📖Daily highs and lows used by drawdown rules.
GetAccount📖Single-account read by id.

Positions and orders

ToolScopeUse case
ListPositions📖Current positions per account.
GetAllPositions📖Same shape, includes all accounts.
GetPosition📖Single-instrument read.
ListOrders📖Current working and historical orders.
GetAllOrders📖All accounts.
GetOrder📖Single order by id.
GetOrderStatus📖Quick state probe.
ListExecutions📖Fill history.
GetExecutionsByOrderId📖Fills for a specific order.
PlaceOrder📝Place a market, limit, stop, or stop-limit.
CancelOrder📝Cancel one order by id.
Cancel📝Cancel a single order (alias of CancelOrder shape in some clients).
CancelOrders📝Cancel a list of orders.
CancelAllOrders📝Cancel everything for an account.
CancelAndBracket📝Cancel and re-issue with bracket.
CancelReplace📝Cancel a working order and place a replacement.
Change📝Modify an open order.
FlatPlace📝Flatten then place.
FlattenEverything📝Closes all positions in the named account.
Flatten📝Flatten a specific position.
ClosePosition📝Same shape as Flatten per instrument.
Reverse / ReversePosition📝Reverse the current direction.

Market data

ToolScopeUse case
GetQuote📖Bid, ask, last, time.
GetBars📖OHLC bars by instrument and resolution.
MarketInfo📖Static instrument metadata.
GetVolumeProfile📖TPO or volume profile.
GetOrderFlow📖Footprint / order flow.
GetIndicatorValue📖Resolves an indicator value from the running NT8 instance.

Journal and diagnostics

ToolScopeUse case
GetWebhookSignals📖Webhook signal history.
GetAddonActivity📖CrossTrade Add-On activity log.
GetJournal📖Matched-trade journal.
GetJournalTrades📖Lower-level journal accessor.
GetActivityLog📖Add-on activity entries (alias).
GetSignalHistory📖TradingView webhook signal alias.

NinjaScript

ToolScopeUse case
GetNinjaScriptHelp📖Help text for an NT8 symbol or topic.
SearchNinjaScriptSymbols📖Search NT8 type and member names.
LookupNinjaScriptSymbol📖Resolve a single symbol.
ListNinjaScriptFiles📖List files in the NT8 user directory.
ReadNinjaScriptFile📖Read a NinjaScript file.
ListCompiledSnippets📖Inspect compiled snippets in memory.
CompileNinjaScript📝Compile NinjaScript in memory or against disk.
WriteNinjaScriptFile📝Write a NinjaScript file.
DeleteCompiledSnippet📝Remove an in-memory compiled snippet.

Backtesting and optimization

ToolScopeUse case
RunStrategyBacktest📝Drive NT8 Strategy Analyzer.
RunBacktest📝Lower-level backtest entry point.
GetBacktestResult📖Read a completed backtest.
GetCompileResult📖Read a compile job result.
GetMcpJob📖Job status for async work.
ListMcpJobs📖Recent jobs.
CancelMcpJob📝Cancel a running job.

Deployment and strategy lifecycle

ToolScopeUse case
DeployStrategy📝Deploy a compiled strategy.
ListDeployedStrategies📖Enumerate deployed strategies.
GetDeployedStrategyState📖Live strategy state.
StopStrategy📝Stop a deployed strategy.
CloseStrategy📝Close a strategy (alias for stop in some contexts).
StartStrategy📝Start a previously stopped strategy.
EnableStrategy / DisableStrategy📝Toggle strategy enablement. Do not use on chart-attached strategies.
GetStrategy / GetStrategyState / ListStrategies / ListAllStrategies📖Read NT8 strategy state.

Alerts

ToolScopeUse case
EmitMcpAlert📝Relay an alert through the user's channels.
CreateAlert / RemoveAlert📝Manage configured alerts.
ListAlerts📖List configured alerts.

Charts and drawings

ToolScopeUse case
OpenChart📝Open or reopen a chart.
AddDrawing / RemoveDrawing📝Drawing CRUD.
ListDrawings📖List drawings on a chart.
SaveWorkspace / LoadWorkspace📝Workspace persistence.
ListWorkspaces📖Workspace inventory.

Connection control

ToolScopeUse case
Connect / Disconnect📝Manage NT8 connections programmatically. Use sparingly.
EnsureReplayConnection📝Ensure replay is up before a replay-only task.

Reflection and reporting

ToolScopeUse case
McpReflect📖 (admin gated)Reflective inspection. Admin only; not part of the standard agent loop.
SessionPerformance📖Session-level performance summary.

Common safe-placement patterns

  • Discovery first: always call GetMcpCapabilities and McpSelfTest before anything else in a new session.
  • State before action: ListAccounts, GetConnections, ListPositions, ListOrders, GetAccountSummary, GetWatermarks before any write.
  • Compile before write: CompileNinjaScript(in_memory: true) before WriteNinjaScriptFile.
  • Backtest before deploy: RunStrategyBacktest before DeployStrategy.
  • Verify after deploy: GetDeployedStrategyState after DeployStrategy.
  • Confirm before order: explicit user confirmation before PlaceOrder, Cancel*, Flatten*, Reverse*.