MCP server for Apex debug log analysis with Claude, Cursor, and other AI tools. Exposes the Apex debug log parser as an MCP server so AI tools can analyze Salesforce Apex logs.
Six tools with clear verb-noun naming (parse_, analyze_, summarize_, compare_) and domain-specific descriptions (100-180 chars). All tools are READ_ONLY and focused on Apex log analysis. However, input schemas are minimal, only logText and sourceType parameters visible, lacking type constraints, enums, or validation rules. No output schemas documented. Parameter descriptions are present but generic ('The raw Apex debug log text'). No error handling guidance, recovery paths, or examples of what structured output looks like. Tools follow single-responsibility principle but lack the depth needed for production LLM integration.
Analyze governor limit usage in an Apex debug log including CPU time, heap size, DML operations, SOQL queries, and identify limits approaching their thresholds.
Analyze performance characteristics of an Apex debug log including execution time, CPU usage, database operations, and identify performance bottlenecks.
Analyze SOQL queries in an Apex debug log including query execution counts, row counts, and identify potential query optimization opportunities.
Compare two Apex debug logs to identify differences in execution patterns, performance metrics, governor limit usage, and other characteristics.
Parse a Salesforce Apex debug log and return structured analysis including execution timeline, governor limits, SOQL queries, DML operations, and performance metrics.
Generate a concise summary of an Apex debug log including execution type, key operations, errors, and overall health assessment.
No output schemas documented. LLMs cannot plan downstream operations or extract structured data without knowing what fields each tool returns (e.g., does parse_apex_log return execution_timeline, governor_limits, soql_queries as separate objects or nested?). This forces LLMs to guess and wastes tokens on unstructured parsing.
Input parameter descriptions are generic and lack constraints. 'The raw Apex debug log text' does not specify format (plain text, JSON, XML?), size limits, required sections, or what happens if malformed. LLMs cannot validate inputs before calling.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 49 | 2026-07-28+ | v2 |
No error handling guidance. If a log is malformed, truncated, or in an unsupported format, what does the tool return? Does it fail hard, return partial results, or suggest recovery steps? LLMs need actionable error messages to self-correct.
sourceType parameter in parse_apex_log is underdocumented. What are valid values? ('raw', 'clipboard', 'file', 'url'?) Should this be an enum? Current description does not clarify.
No pagination or result-limiting guidance. If parse_apex_log returns hundreds of SOQL queries or DML operations, how are they structured? Are results capped? Can the agent request a subset?