Skip to main content
Glama
certinia

Apex Log MCP Server

Official
by certinia

List Org Debug Logs

apexlog_list_org_logs
Read-only

List debug logs stored in a Salesforce org with match counts and filters. Pass returned IDs to download the logs for Apex performance analysis.

Instructions

List the debug logs stored in a Salesforce org, with how many match. Pass ids to apexlog_get_org_logs to download them.

Input Schema

NameRequiredDescriptionDefault
userNoUsername whose activity was logged
limitNoPage size (default: 20)
cursorNonextCursor from the previous page
sortByNoDescending (default: startTime)
requestNoe.g. "Api" or "Application"
operationNoPart of the operation, any case, e.g. "aura" for /aura
succeededNofalse for failed logs only
targetOrgNoAlias or username of the target Salesforce org. Uses the project default if not specified.
startTimeToNo
startTimeFromNoISO 8601 with a zone, e.g. 2026-10-09T09:00:00Z
minFileSizeBytesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.2

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds that results include a match count, but says nothing about pagination behavior, default page size, or how the cursor interacts with the 200 cap — gaps that matter for an 11-parameter listing tool.

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

Conciseness5/5

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

Two short sentences with zero filler; the enumeration purpose comes first and the follow-up download step second, matching the natural call order.

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

Completeness3/5

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

With 11 optional filter parameters and no output schema, the description covers the core intent and the downstream handoff but omits what the returned entries look like, how the count is expressed, and any pagination semantics an agent needs to page correctly.

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 82%, so the schema already documents nearly every parameter including enums and time formats. The description adds no filtering syntax, default, or interaction guidance beyond the schema, which is the expected baseline when coverage is this high.

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

Purpose5/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 debug logs stored in a Salesforce org") plus an output trait ("with how many match"), and explicitly names the sibling apexlog_get_org_logs as the download step, so the agent can distinguish the two without opening either schema.

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

Usage Guidelines4/5

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

Gives a clear workflow cue: use this to enumerate and then pass ids to apexlog_get_org_logs to download. It does not, however, mention when to prefer the other list/search siblings (apexlog_list_slow_operations, apexlog_list_limit_risks, apexlog_search_events), leaving that routing to inference.

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