MTContext Docs
Tool Reference

Terminal

4 tools in this category.

Overview

Terminal includes 4 tools for this workflow area.

Available tools: get_terminal_info, get_terminal_journal_log, list_experts, read_ea_logs.

Use the parameter tables and examples below as the canonical request contract.

get_terminal_info

Returns MT5 terminal metadata: name, company, path, build, max_bars.

Parameters

No parameters.

Example Request

{
  "tool": "get_terminal_info",
  "arguments": {}
}

get_terminal_journal_log

Returns recent lines from the MT5 terminal's built-in Journal log (the terminal's own system/connection log — NOT the trade journal; for trade rationale/notes see query_journal). available=false when the log cannot be read.

Parameters

NameTypeRequiredDefaultDescription
countintegerNo100
datestringNo

Example Request

{
  "tool": "get_terminal_journal_log",
  "arguments": {
    "count": 100
  }
}

Usage Notes

  • Start with a smaller count/bars value while iterating, then increase once the workflow is stable.

list_experts

Returns all Expert Advisors currently attached to open charts.

Parameters

No parameters.

Example Request

{
  "tool": "list_experts",
  "arguments": {}
}

read_ea_logs

Returns recent lines from the EA log file. available=false when the log cannot be read (MQL5 sandbox).

Parameters

NameTypeRequiredDefaultDescription
countintegerNo100
datestringNo

Example Request

{
  "tool": "read_ea_logs",
  "arguments": {
    "count": 100
  }
}

Usage Notes

  • Start with a smaller count/bars value while iterating, then increase once the workflow is stable.

On this page