detect_performance_issues
Profile an X++ object for N+1 queries, queries in loops, missing field lists, row-by-row inserts/updates, missing firstOnly. Returns compact issue table with line + fix. Only call when performance is explicitly the concern — for general quality use validate_best_practices. [!] Auto-fixing requires D365_CUSTOM_MODEL_PATH (custom code only).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"objectName": "<objectName>"
},
"name": "detect_performance_issues"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| methodName | No | Optional: specific method to analyze. Analyzes all methods if not provided. | |
| objectName | Yes | Object name to analyze, e.g. 'SalesTable', 'CustInvoiceJour' |