analyze_apex_log_performanceRank methods in an Apex debug log by self-execution time. Returns method names, durations (in ms), SOQL/DML counts, and optimization recommendations. Best for finding which specific methods to optimize.Input schema{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"logFilePath": {
"type": "string",
"description": "Absolute path to the Apex debug log file (.log)"
},
"topMethods": {
"description": "Number of slowest methods to return (default: 10)",
"type": "number"
},
"minDuration": {
"description": "Minimum duration in milliseconds to include a method (default: 0)",
"type": "number"
},
"namespace": {
"description": "Filter methods by namespace",
"type": "string"
}
},
"required": [
"logFilePath"
]
}Annotations{
"title": "Analyze Apex Log Performance",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
} | — | Read onlyNon-destructiveIdempotentClosed world | — |
find_performance_bottlenecksCheck whether an Apex log transaction is approaching governor limits (flags usage above 80%). Analyzes CPU time, SOQL/DML limits, query rows, and method execution patterns by namespace. Best for checking if a transaction is at risk of hitting governor limits.Input schema{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"logFilePath": {
"type": "string",
"description": "Absolute path to the Apex debug log file (.log)"
},
"analysisType": {
"description": "Type of analysis: \"cpu\" checks CPU time governor limit, \"database\" checks SOQL query/DML statement/query row limits, \"methods\" groups methods by namespace with duration totals, \"all\" runs all three (default)",
"type": "string",
"enum": [
"cpu",
"database",
"methods",
"all"
]
}
},
"required": [
"logFilePath"
]
}Annotations{
"title": "Find Performance Bottlenecks",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
} | — | Read onlyNon-destructiveIdempotentClosed world | — |
get_apex_log_summaryGet a high-level summary of an Apex debug log including total execution time (in ms), method count, SOQL/DML totals, governor limits, and active namespaces. Best for a quick overview before deeper analysis.Input schema{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"logFilePath": {
"type": "string",
"description": "Absolute path to the Apex debug log file (.log)"
}
},
"required": [
"logFilePath"
]
}Annotations{
"title": "Get Apex Log Summary",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
} | — | Read onlyNon-destructiveIdempotentClosed world | — |