Skip to main content
Glama
julianboudara-code

mcp-server-salesforce

salesforce_read_apex_trigger

Read-only

Read Salesforce Apex triggers by exact name or pattern, returning source code, matching names, and optional metadata like API version and last modified date.

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

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

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.0.7

TDQS

A4.7/5.0
Behavior5/5

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

The readOnlyHint annotation already signals a safe read operation, but the description goes far beyond that by explaining return behavior differences: triggerName returns the full body, namePattern returns names without body, includeMetadata adds extra fields, and wildcards are supported. This is exactly the kind of behavioral context an agent needs and is not present in the annotations.

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 with a one-line summary, numbered examples, and bulleted notes. It is slightly longer than strictly necessary, but every section contributes useful context and the front-loaded summary ensures quick understanding. It earns a 4, not a 5, due to some redundancy between the examples and notes.

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

Completeness5/5

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

All relevant operational details are covered: the effect of each parameter, the default behavior when neither parameter is given, wildcard syntax, and metadata options. There is no output schema, so the description appropriately clarifies what the tool returns (full body vs. names vs. metadata). Nothing an agent needs to call this correctly is missing.

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

Parameters5/5

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

Even though schema coverage is 100%, the description enriches the parameters with relational semantics: the mutual interaction between triggerName and namePattern, the optionality of includeMetadata, and the wildcard behavior. The examples concretely map JSON inputs to outcomes, adding value beyond the plain 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 opens with a specific verb-resource pair: 'Read Apex triggers from Salesforce.' This clearly distinguishes it from siblings like salesforce_write_apex_trigger and salesforce_read_apex, and the examples reinforce the resource being acted on. The tool's purpose is 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?

The description gives clear conditional guidance for parameter combinations (when triggerName is provided, when namePattern is provided, when neither is provided), which effectively tells an agent how to invoke the tool for different intents. However, it does not explicitly mention when to choose this tool over sibling tools, so it stops short of a 5.

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

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

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