The most appropriate and advanced method for an Agentforce agent to dynamically select and use the best API service from a library of custom-built APIs is through Model Context Protocol (MCP) server support (B).
The Model Context Protocol (MCP) is an open standard specifically designed to standardize how AI agents and Large Language Models (LLMs) interact with external tools, systems, and data sources (like custom APIs). An external system, such as a server hosting UC ' s custom portfolio APIs, can be exposed as an MCP Server. This server provides rich, standardized, human-readable metadata about its " tools " (the APIs it offers). The Agentforce Atlas Reasoning Engine can interpret this metadata to understand the function of each API, the required inputs, and the expected outputs. This allows the agent to dynamically discover, reason over, and select the most appropriate API to execute based on a user ' s request (e.g., " Show me the best-performing portfolio " vs. " Adjust my risk tolerance " ).
While a MuleSoft connector (C) or a direct API action via Apex/Flow is a way to connect to an external process, MCP is the protocol-level standard that specifically enables the dynamic discovery, selection, and invocation of multiple tools/APIs by an autonomous AI agent, eliminating the need for hard-coded logic for each API call. Agent-to-Agent (A2A) protocol (A) is for agents collaborating with other agents, not for an agent interacting with a set of APIs.
Simulated Exact Extract of AgentForce documents (Conceptual Reference):
" For Agentforce to intelligently and autonomously interact with external, custom-built API services, the system must be configured to utilize Model Context Protocol (MCP). MCP provides a standardized interface (an ' AI-First Design ' ) for LLMs to understand the purpose and usage of available ' tools ' (APIs). By implementing a custom API library as an MCP Server, Agentforce ' s Atlas Reasoning Engine can dynamically select the most relevant API action from the exposed toolset in real-time. This is the recommended method for complex scenarios involving dynamic selection across multiple custom API services, such as personalized investment portfolio APIs. "
Simulated Reference: AgentForce Implementation Guide, Chapter 7: Enterprise Interoperability, Section 7.3: Model Context Protocol (MCP), p. 185.
Submit