Skip to main content
Glama

Salesforce MCP Server

salesforce_read_apex_trigger

Extract Apex triggers from Salesforce by name, pattern, or metadata. Retrieve trigger details, list matching triggers, or fetch full configurations to manage and analyze Salesforce automation efficiently.

Instructions

Read Apex triggers from Salesforce.

Examples:

  1. Read a specific Apex trigger by name: { "triggerName": "AccountTrigger" }
  2. List all Apex triggers with an optional name pattern: { "namePattern": "Account" }
  3. Get metadata about Apex triggers: { "includeMetadata": true, "namePattern": "Contact" }
  4. Use wildcards in name patterns: { "namePattern": "Account*" }

Notes:

  • When triggerName is provided, the full body of that specific trigger is returned
  • When namePattern is provided, all matching trigger names are returned (without body)
  • Use includeMetadata to get additional information like API version, object type, and last modified date
  • If neither triggerName nor namePattern is provided, all Apex trigger names will be listed
  • Wildcards are supported in namePattern: * (matches any characters) and ? (matches a single character)

Input Schema

NameRequiredDescriptionDefault
includeMetadataNoWhether to include metadata about the Apex triggers
namePatternNoPattern to match Apex trigger names (supports wildcards * and ?)
triggerNameNoName of a specific Apex trigger to read

Input Schema (JSON Schema)

{ "properties": { "includeMetadata": { "description": "Whether to include metadata about the Apex triggers", "type": "boolean" }, "namePattern": { "description": "Pattern to match Apex trigger names (supports wildcards * and ?)", "type": "string" }, "triggerName": { "description": "Name of a specific Apex trigger to read", "type": "string" } }, "type": "object" }

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/tsmztech/mcp-server-salesforce'

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