Skip to main content
Glama
semwalajay83-sem

salesforce-metadata-mcp

Get Event Log Files

sf_get_event_logs
Read-onlyIdempotent

Queries Salesforce EventLogFile to fetch activity logs for security monitoring and performance analysis.

Instructions

Queries EventLogFile for detailed activity logs. Event logs capture granular org activity for security monitoring and performance analysis.

Common eventType values:

  • Login — login attempts and results

  • API — SOAP/REST API calls

  • Report — report executions

  • Flow — Flow runs and executions

  • ApexExecution — Apex code executions

  • LightningPageView — Lightning page views

  • RestApi — REST API requests

  • VisualforceRequest — Visualforce page requests

  • URI — general HTTP requests

  • LightningError — Lightning component errors

Returns parsed CSV log entries (up to 20 rows per log file, up to 3 files per call).

Requires Event Monitoring add-on OR Agentforce debug logs to be enabled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum log files to fetch
endDateNoEnd date in ISO format, e.g. '2025-12-31'
eventTypeYesEvent type, e.g. 'Login', 'API', 'Report', 'Flow', 'ApexExecution', 'LightningPageView', 'RestApi'
startDateNoStart date in ISO format, e.g. '2025-01-01'
Behavior4/5

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

Annotations already indicate read-only and idempotent. The description adds useful behavioral details like return limits (20 rows per file, 3 files per call) and the requirement for Event Monitoring add-on or Agentforce debug logs, which go beyond annotation info.

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?

The description is well-structured: purpose sentence, event type list, return behavior, and requirements. The list is a bit long but each item is useful, and the text stays focused without fluff.

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?

Given no output schema, the description covers return format and limits, plus prerequisites. It could mention how to handle more than 3 files or pagination, but the core needs are met.

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

Parameters4/5

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

Schema covers all parameters, but the description enriches eventType by listing common values and clarifies the effect of limit (rows per file and files per call). This adds meaningful context beyond the schema descriptions.

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?

The description clearly states it queries EventLogFile for detailed activity logs, listing common event types and distinguishing it from other logging tools. The verb 'queries' and resource 'EventLogFile' are specific and unambiguous.

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?

It provides usage context for security monitoring and performance analysis, and lists event type examples that help the agent decide when to use it. It doesn't explicitly exclude alternatives but clearly implies the intended use case.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/semwalajay83-sem/salesforce-metadata-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server