İçeriğe geç

Call a Tool or Ask an Agent?

Bu içerik henüz dilinizde mevcut değil.

Module 1 of 4 in the chapter Agent-to-Agent Integration, chapter 23 of the Integration Architect course. Each module stands on its own. Previous chapter: MCP, Headless Systems, and Agent Tools · Next: Start Inside One Org

The question this module answers: When an agent needs help, when should it call a tool, and when should it hand part of the job to another agent?

At Dreamforce 2026 I gave the room three ways to get work done. Deterministic: use rules when the answer must be consistent and repeatable. Agentic: use AI when interpretation, adaptation or multi-step reasoning adds value. Human: keep people in the loop when judgment, accountability or consequence is high. And I said the best architect doesn’t ask “Can AI do this?” They ask “Should AI do this?”

Chapter 22 asked that question once: does this job need an agent at all? This chapter asks it again, one level up. You have an agent. Does it need another agent, or just a tool?

Here’s Salesforce’s rule, from its Agentforce Interoperability Guide: “The key distinction isn’t whether AI exists on both sides. The key distinction is how the remote capability is modeled: If it is modeled as a tool, use MCP. If it is modeled as a collaborating agent, use A2A” (Agentforce Interoperability Guide (opens in a new tab), Salesforce, checked 2026-11-20).

Read that first sentence again, because it’s the one people get wrong. There may be AI on the other side either way. What matters is the relationship.

  • A tool does one job you described. You call it, it answers, and your agent keeps all the thinking. That’s chapter 22: MCP, a contract, an allowlist.
  • A colleague owns part of the thinking. You hand it a goal, and it plans, decides and acts on its own part. Salesforce’s words: use A2A when “one agent needs to delegate work to another agent that owns part of the reasoning, planning, or execution.”

The A2A project puts the same idea as a direction. MCP “serves as the vertical integration layer connecting agents to internal tools and databases,” and A2A “acts as the horizontal protocol enabling peer-to-peer collaboration” (A New Chapter for A2A: Joining the Agentic AI Foundation (opens in a new tab), A2A Protocol, 2026-08-27, checked 2026-11-20). Down to tools, across to colleagues.

Salesforce gives an example of the difference that’s worth remembering. When an outside AI calls an Agentforce agent through Salesforce’s MCP server, that agent is “agentic internally,” but “the interoperability pattern is still MCP because the external relationship is tool invocation rather than peer-agent delegation.” The agent behind the door can be as smart as you like. If the caller treats it as a tool, it’s a tool.

And the guide warns about forcing it the other way: “If the remote capability is better modeled as a specialist agent that should own part of the reasoning or workflow, forcing it into MCP can be unnatural.”

So why would you have more than one agent? Salesforce’s guide names three walls a single agent hits as it grows (same guide). An agent is built from subagents, which Salesforce used to call topics, each scoped to one area with its own actions.

  1. Data boundary limits. The data, workflows and permissions live in another org or another system. “This is an architectural wall a single-agent design cannot cross.”
  2. Context overload. The agent’s working memory fills with instructions, action results and conversation “until it starts ignoring core rules or conflating topics.”
  3. Domain specialization collapse. An agent trying to be an expert in everything starts applying the wrong logic. “The larger the instruction block, the worse the precision.”

How big is too big? In April 2026, when its multi-agent features were still in beta, Salesforce gave a rule of thumb: “To preserve the agent’s reasoning ability, limit the number of topics to fewer than 10. If an agent exceeds this limit, it should be segmented into specialized agents, with the main agent delegating tasks to other agents” (Choose the Right Agentforce Integration Pattern: API, MCP, or A2A (opens in a new tab), Salesforce, 2026-04-01, checked 2026-11-20). Its example: instead of one customer service agent that does everything, a specialized returns agent that the main agent hands returns to.

Treat that number the way you treat any number in this course: it’s Salesforce’s guidance on a date, not a law. The walls are what last. And the guide’s advice for when not to split is just as clear: “Use single agents when your business process is relatively straightforward, operates within a single domain, and requires a unified set of data access across its Subagents.” Start with one. Split when you hit a wall.

Salesforce’s guide lays out seven patterns in one matrix. Here’s my short version of it, with each pattern’s biggest limitation and default recommendation in Salesforce’s own words.

PatternWhat it’s forBiggest limitationSalesforce’s default recommendation
Single agentOne agent, its own subagents“Hits boundaries fast”“Start here if scope is narrow”
Multi-agent, one orgOne front door for several agents in one org (module 2)“Cannot cross org/system boundaries”“Use when problem is multi-domain but same org”
Multi-agent, many orgsAgents across several Salesforce orgs (module 2)“Identity/ context complexity across orgs”“Use only when multi-org is a real requirement”
Agentforce as MCP clientAgentforce uses outside tools (chapter 22 module 4)“MCP Tools explosion”“Default when remote thing is a capability/ tool”
Outbound A2AAgentforce hands work to an outside agent (module 3)“Trust, privacy, capability registration overhead”“Use when remote thing is truly an agent partner”
Inbound A2AAn outside agent hands work to Agentforce (module 3)“External system must manage handoff/ orchestration”“Use when external app is the main front door and needs Agentforce expertise”
Agentforce as MCP serverOutside AI calls Agentforce as a tool (chapter 22 module 3)“Ensuring a consistent Agentic behavior across multiple Subagents within Agentforce”“Use when external platforms should consume Agentforce in a standardized way”

Notice the setup effort climbs as you go down the list from a single agent: Salesforce rates multi-org and outbound A2A “High.” Each step down buys reach and costs trust, identity and coordination work. That’s why the order of this chapter is the order of the table: one org first, then other vendors.

Here’s why this is an integration architect’s chapter, and not only an AI chapter.

“Before A2A, handing off work between agents built on different frameworks required writing custom integration code from scratch for every new pairing” (A2A Protocol). That’s chapter 5’s web again, with agents as the boxes. A2A is the standard that lets a new pair talk without new custom code, the way REST and its contracts did for systems.

But a handoff between agents is still an arrow on the landscape. It has a contract: what the other agent says it can do. It has an identity: who the work is done as, at every hop, which the Identity course takes apart in Across the Hops. And it has a failure plan, which is harder than a tool’s, because a colleague can say no, ask a question back, or take its time. That’s module 4.

Beyond the exam. The Integration Architect exam’s objectives don’t name agents, MCP or A2A. What carries over is the exam’s oldest question: which mechanism fits the requirement? A tool for a described capability; another agent when it should own part of the reasoning.

  • Whether the job needs AI at all, and then whether one agent is enough.
  • For each capability an agent needs: tool or colleague, from the relationship, not from whether there’s AI on the other side.
  • When to split an agent, from the three walls, with Salesforce’s dated rule of thumb as a check.
  • Which of the seven patterns fits, starting from the simplest that works.