Multi-Agent Orchestration, MCP, and A2A
Agentforce Specialist · Lesson 14 of 14 · 1:53:11
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the Salesforce Agentforce Specialist exam. In this lesson: when one agent is enough and when to go multi-agent, orchestrators and connected agents, working across orgs, MCP servers whose tools become agent actions, the A2A protocol and Agent Cards, and Agent Gateway. Includes three original practice questions, with Sunmeadow Solar, a fictional solar installer, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of December 2026.
An agent that keeps growing
Sunmeadow's portal agent keeps growing: warranty, billing, installation, financing, recycling, and more, a dozen subagents in all. It has started to mix up requests. And the battery maker, a partner, runs its own agent on another platform, which Sunmeadow's agent must work with.
The limit of one agent
One agent has a limited capacity. Beyond about eight to ten well defined subagents, too many intents compete, and the agent starts to drift, to confuse requests, or to hallucinate. Hybrid reasoning adds deterministic control, but it does not remove this limit.
When to go multi-agent
A multi-agent design fits three situations. The first is too many subagents for one agent to handle well. The second is a boundary between orgs, and the third is a single entry point, like a concierge, in front of several areas. With only a few related areas, one agent is enough, and simpler to build, test, and run.
Orchestrator and specialized agents
In one org, an orchestrator agent keeps the conversation, and delegates each request to a specialized agent. You create the orchestrator, then connect one or more agents to it as its subagents. By default, a connected agent replies to the user directly, or the orchestrator can summarize its answer instead. Variables are mapped between agents, escalation to a person works from anywhere, and the Testing Center can check each hand off.
Across several orgs
The same pattern can span several Salesforce orgs, through relationships that you declare. Security stays strict across the boundary: no agent goes beyond the permissions of the user who started the request. So a request that starts in one org cannot reach data that this user could not see.
MCP: agents and tools
The Model Context Protocol, or MCP, is an open standard for connecting AI to tools and data. It is client and server: an MCP server exposes tools, resources, and prompts, and the MCP client in Agentforce connects to it. When you register a server, its tools become actions in Agentforce Builder, with no custom integration code. The model then chooses those tools, like any other action.
A2A: agents and agents
The Agent to Agent protocol, or A2A, is an open protocol for agents from different vendors to work together. Each agent publishes an Agent Card, a machine readable description of what it can do. Messages travel over HTTP and JSON, secured with OAuth 2.0, inbound when an outside agent hands a task to an Agentforce agent, and outbound the other way round. In short, MCP connects an agent to tools, and A2A connects an agent to other agents.
Agent Gateway
Agent Gateway, in Agentforce Studio, governs both protocols. It keeps a registry of MCP servers, with policies for each agent, authentication, rate limits, and quotas. Traces land in Data 360, and it detects a server that changes its tool descriptions after registration. And the Trust Layer scans the traffic for prompt injection.
Recap
Let's recap. One agent works best with up to about eight to ten well defined subagents. Go multi-agent for too many subagents, a boundary between orgs, or a concierge entry point, and stay with one agent otherwise. An orchestrator delegates to specialized agents, and across orgs, nobody exceeds the starting user's permissions. MCP turns the tools of a registered server into agent actions, and A2A lets agents talk through Agent Cards. Agent Gateway governs both, with policies, limits, and traces.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
The employee agent has four related subagents, and works well. A manager suggests four agents with an orchestrator. What is the BEST response?
- Split it, since several agents are always more accurate
- Split it, since each subagent needs its own agent
- Keep one agent, well within its capacity
- Replace the subagents with prompt templates
Show the answer
Keep one agent, well within its capacity
Four related subagents are well within one agent's capacity, so splitting adds complexity without a benefit. “Split it, since several agents are always more accurate” is wrong, because a multi-agent design is not more accurate by itself, and it adds moving parts. “Split it, since each subagent needs its own agent” is wrong, since a subagent does not need an agent of its own. And “Replace the subagents with prompt templates” is wrong, because prompt templates generate text, and cannot replace subagents that route and act.
Sunmeadow’s inventory system offers an MCP server, with tools to check stock and reserve parts. How can the agent use those tools?
- Publish an Agent Card for the inventory system
- Write a custom Apex action for each tool
- Add the server address to the instructions
- Register the server: its tools become actions
Show the answer
Register the server: its tools become actions
Once the MCP server is registered, its tools become agent actions, with no custom code. “Publish an Agent Card for the inventory system” is wrong, because an Agent Card describes an agent for the A2A protocol, not a set of tools. “Write a custom Apex action for each tool” is wrong, since writing Apex for each tool is the custom work that MCP avoids. And “Add the server address to the instructions” is wrong, because an address in the instructions does not give the agent any action to call.
The battery maker’s agent runs on another platform, and Sunmeadow’s agent must hand it warranty claims. Which approach fits BEST?
- MCP, registering the partner’s agent as a tool server
- A2A, using the partner’s Agent Card
- Enhanced Chat between the two agents
- A data library shared with the partner
Show the answer
A2A, using the partner’s Agent Card
A2A connects agents from different vendors, and the partner's Agent Card tells Sunmeadow's agent what it can do. “MCP, registering the partner’s agent as a tool server” is wrong, because MCP connects an agent to tools and data, not to another agent. “Enhanced Chat between the two agents” is wrong, since Enhanced Chat is a chat window for people on a website. And “A data library shared with the partner” is wrong, because a data library holds documents, and cannot hand a task to another agent.