Skip to main content
Glama
advancedcommunities

Salesforce MCP Server

apex_log_list

Read-onlyIdempotent

Fetch Apex debug logs from a Salesforce org and return each log with its ID for troubleshooting or analysis.

Instructions

Fetch the list of apex debug logs returning the logs with their IDs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so safety and idempotency are covered. The description adds only that log IDs are returned; it says nothing about pagination, result limits, or how the default-org fallback affects scope.

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 compact sentence with the action front-loaded. The trailing clause about IDs is slightly redundant but still informative and wastes little space.

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?

For a simple read-only list tool with no output schema this is close to adequate, but it omits pagination/limits and any hint about the default-org behavior that the schema only partially documents.

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

Parameters2/5

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

There is one parameter (targetOrg) with schema-level description coverage reported at 0%, and the description adds no information about it at all. Baseline for one undocumented parameter is low, and nothing here compensates.

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: fetches the list of Apex debug logs, and notes the return includes IDs. It implicitly contrasts with the singular sibling apex_get_log, but never names it, so the differentiation is left 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?

The word 'list' implies bulk retrieval as opposed to getting one log, which is enough to separate it from apex_get_log in practice. However, there is no explicit when-to-use, no mention of prerequisites (debug logging must be enabled), and no stated alternative.

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