Skip to main content
Glama
certinia

Apex Log MCP Server

Official
by certinia

List Apex Log Limit Risks

apexlog_list_limit_risks
Read-only

Lists governor limits an Apex log transaction has nearly exhausted, ranked by highest usage with used percentages, helping you identify performance risks before limits are hit.

Instructions

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

Input Schema

NameRequiredDescriptionDefault
thresholdNoMinimum usedPercentage to report (default: 80)
logFilePathYesAbsolute path

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.2
    • changedInput schema / properties / threshold / description
      Previous value: -"Report a limit once it is this percentage consumed (default: 80)"New value: +"Minimum usedPercentage to report (default: 80)"
  2. Addedv2.0.1

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds genuine behavioral context beyond that: results are ordered 'worst first' and each entry reports how much of the limit was used, which tells the agent what the output looks like without an output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler. The long limit enumeration is slightly run-on but earns its place by clarifying the scope of 'every other limit' and the 'worst first' ordering.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read-only analysis tool with full schema coverage and no output schema, the description supplies the key missing piece: what the results contain and their ordering. Minor gaps remain around error behavior for an unparseable or missing log file, but nothing blocks correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both parameters are already documented (threshold default 80, absolute logFilePath path). The description's 'nearly used up' framing loosely reinforces the threshold concept but adds no new format or semantics; baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('List the governor limits an Apex log transaction has nearly used up') and enumerates the covered limits, so an agent knows exactly what analysis it performs. It does not explicitly name how it differs from siblings like apexlog_get_summary or apexlog_list_slow_operations, leaving that differentiation to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the phrase 'nearly used up' and the threshold parameter; there is no explicit statement of when to reach for this tool versus apexlog_get_summary or apexlog_list_slow_operations. No exclusions or prerequisites (e.g., that the log must be retrieved first) are given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.