Skip to content

Agentforce and MCP

Guide1 min read

Let AI agents use real Record Health Check results instead of guessing from record data. Record Health Check provides two ways: Agentforce actions that run inside Salesforce, and an Apex REST endpoint that a separately hosted Model Context Protocol (MCP) server calls. Both only read data: they never change records or publish Platform Events.

TaskGuide
Add Record Health Check actions to an Agentforce agentAgentforce actions
Host the MCP server for external AI toolsDeploy the MCP service one security gate at a time
Call the REST endpoint from a hosted serviceAgent tool REST API
Look up the request and response fieldsAgent tool contract
Review the security risks and controlsAgentforce and MCP threat model
OptionRuns asPermission set
Agentforce actionsThe signed-in user for an employee agent, or the agent user for a service agentRecord Health Check User
REST endpoint (MCP)The dedicated integration user of the OAuth connectionRecord Health Check MCP Integration