Apex Log MCP Server
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| apexlog_list_slow_operationsA | Rank what an Apex debug log spent its time on by self-execution time, or on the heap it retains - code units, methods, queries, searches, DML, callouts, flows and workflows in one table, each row with its calls, durations, database counts and rows, so the caller can see what to optimize and why, beside the query optimizer's plan for the queries among them. |
| apexlog_get_summaryA | Get a high-level summary of an Apex debug log: how long the transaction ran, where the time went by debug log category and the level each was logged at, every governor limit it and each namespace consumed, whether the log is complete, the exceptions and flow errors it raised, and what ended the transaction if it failed. Best for a quick overview. |
| apexlog_list_limit_risksA | List the governor limits an Apex log transaction has nearly used up - CPU time, heap, SOQL queries and rows, SOSL queries, DML statements and rows, callouts and every other limit - worst first, with how much of each was used |
| apexlog_search_eventsA | Search the events of an Apex debug log in log order: what the code printed (USER_DEBUG), validation rules, statements, or every event under one method. For plain text in the saved .log, grep is cheaper; use this for event types, nesting, or without a shell. Text past 400 characters is elided; ask for one event by eventId to read up to 30,000. |
| apexlog_list_org_logsA | List the debug logs stored in a Salesforce org, with how many match. Pass ids to apexlog_get_org_logs to download them. |
| apexlog_get_org_logsA | Download debug logs from a Salesforce org, by id or the newest N, and return each saved file's path, which the analysis tools accept. |
| apexlog_create_trace_flagA | Trace a user, class or trigger in a Salesforce org until the trace flag expires. A user's flag stores each transaction they run as a debug log, which can fill log storage; a class or trigger flag only sets that code's levels. Refused if a flag of its log type overlaps the new one. Leaves a debug level in the org. |
| apexlog_execute_anonymousA | Execute anonymous Apex in a Salesforce org as the targetOrg user; DML commits unless the run fails. Saves the debug log and returns its path for the analysis tools. With no active trace flag, adds one for the run, deleted after, and a debug level, left in the org. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 8 tools
Most tools have clearly distinct purposes, and the list/get log pair is explicitly linked in the descriptions (list ids, then download with get_org_logs). The only real overlap is between get_summary and list_limit_risks, since the summary already reports consumed governor limits while list_limit_risks reports the same limits worst-first; the boundary is workable but not crisp.
All eight tools use the same apexlog_ prefix followed by a verb_noun snake_case form (create_trace_flag, search_events, list_org_logs, get_summary, list_limit_risks). Verbs (create, search, list, execute, get) are used consistently with their meaning.
Eight tools is well within the ideal 3-15 range for a focused log-analysis server. Each tool maps to a distinct step in the workflow: capture a log, fetch it, then analyze it from four different angles.
The read/analysis side is thorough (list, download, summary, events, limits, slow operations), but the write side is one-directional: there is create_trace_flag with no delete, list, or update counterpart, and the server explicitly leaves debug levels in the org with no tool to manage or remove them. Log deletion is also absent, leaving lifecycle cleanup as a dead end.