Skip to main content
Glama
semwalajay83-sem

salesforce-metadata-mcp

Create Apex Email Service

sf_create_apex_email_service
Idempotent

Create an Apex email service to process inbound emails with an existing Apex class, automating support cases, content parsing, and workflow triggers.

Instructions

Creates an Apex Email Service that processes inbound emails via an Apex class implementing Messaging.InboundEmailHandler. Useful for creating support cases from emails, parsing email content, or triggering workflows from inbound messages. The Apex class must exist before creating the service.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
isActiveNoWhether this email service is active
functionNameYesEmail service function name
apexClassNameYesApex class that implements Messaging.InboundEmailHandler
overLimitActionNoWhat to do when over API limitsDiscard
attachmentOptionNoWhich attachment types to processAll
errorRoutingAddressNoError routing email address
isErrorRoutingEnabledNoRoute errors to an address
functionInactiveActionNoWhat to do when function is inactiveBounce
functionExceptionActionNoWhat to do when an exception occursBounce
isAuthenticationRequiredNoRequire sender authentication
authenticationFailureActionNoWhat to do on authentication failureBounce
Behavior3/5

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

Annotations already indicate readOnlyHint=false and openWorldHint=true, and the description adds the precondition that the class must exist. But it does not disclose what happens after creation (e.g., activation, return value, or side effects), relying on the annotations for basic safety profile.

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?

Three concise sentences: one for purpose, one for use cases, and one for prerequisite. No redundant text; each sentence earns its place.

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?

Given the tool has 11 parameters, no output schema, and moderate complexity, the description provides purpose and use cases but does not explain the creation result or post-creation behavior. The schema covers parameters, but the description lacks an expected outcome or return-value discussion.

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?

The input schema covers all 11 parameters with descriptions (100% coverage), so the baseline is 3. The description does not add parameter-level detail beyond what the schema already documents.

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 the tool creates an Apex Email Service, specifying it works via an Apex class implementing Messaging.InboundEmailHandler. This distinguishes it from sibling tools like sf_create_apex_class or sf_create_apex_trigger, making the purpose 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 offers concrete use cases (support cases from emails, parsing content, triggering workflows) and a prerequisite (the Apex class must exist), which gives good context. However, it does not explicitly name alternative tools or state when not to use this tool, so just 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.

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