analyze_mql
Perform static checks on MQL4/5 source to detect structural lint issues, deprecated API usage, and complexity metrics without compiling.
Instructions
Static checks on MQL source without compiling: structural lint (missing OnInit/OnTick, unused inputs, hardcoded magic/symbol), MT4-style deprecated API calls with MT5 replacements, and size/nesting metrics.
Replaces lint_basic / check_deprecated / code_metrics. Use compile(syntax_only=true) for real compiler diagnostics.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "analyze_mql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Absolute folder to aggregate metrics over every MQL file (metrics check only). | |
| checks | No | Which checks to run; default all. | |
| source | No | Absolute path to one .mq4/.mq5/.mqh file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||