Skip to content
mentoor

Topic 2 of 5 · 5 min read

Choosing between A2A and MCP for an integration

Goal: For a set of integration scenarios, choose MCP, A2A or both and justify each choice by who holds the reasoning and state.

Use MCP when your agent needs a tool or a data source it controls the use of; use A2A when you need to hand a goal to another agent that does its own reasoning and keeps its own state. The two protocols are built to be used together, and the A2A project's own comparison page describes MCP as vertical (it deepens one agent) and A2A as horizontal (it connects agents).

Check yourself · 1 of 3

Your agent needs to run a read-only SQL query on your own orders database. Which protocol fits?

Choose one answer

Why it matters

A wrong choice is expensive in both directions. Wrapping a plain database query in an agent adds latency, tokens and a second place for errors. Exposing a whole workflow as one MCP tool hides a multi-step, possibly multi-day process behind a call that has no good way to say "I need your approval first".

The question to ask

Who holds the reasoning and the state?

  1. Your agent decides; the other side executes. The remote side has well-defined inputs and outputs, runs a specific function, and keeps no conversation. That is a tool or resource: MCP. Examples: a calculator, a weather lookup, a SQL query, a ticket search.
  2. The other side decides how to do the job. It plans, calls its own tools, may ask you questions and may take hours. That is an agent: A2A. Examples: a supplier's quoting agent, a billing agent that resolves a dispute, a travel agent that coordinates flights and hotels.
  3. Both, in layers. Your client agent delegates over A2A. The remote agent uses MCP servers internally to reach its own data. Neither side sees the other's tools.

Overlap to watch

Both protocols have a notion of long-running work, and a tool can be built to take minutes. The test is not duration. It is whether the remote party needs its own judgment and a conversation. A report generator that runs 10 minutes but takes fixed parameters is still a tool. A researcher agent that may come back with clarifying questions is not.

Before and after

Scenario Weak choice Better choice
Look up an order by id Ask a support agent over A2A MCP tool on the order database
Negotiate delivery dates with a carrier One MCP tool negotiate_delivery(order) A2A task with input-required turns
Our agent plus the carrier's agent, each with own data One shared MCP server holding both A2A between agents, MCP inside each

What goes wrong

  • Agent-washing a function. Putting an LLM in front of a lookup to make it "agentic" adds cost and nondeterminism.
  • Tool-washing an agent. A single opaque tool call hides states, questions and partial results from the caller.
  • Sharing internals. Exposing your tools to a partner over MCP gives them your capabilities; A2A lets them ask for outcomes while your tools stay private.

Examples

Procurement across two companies

The buyer's agent asks the supplier's agent for a quote over A2A. The supplier's agent reads its price list and stock through its own MCP servers. The buyer never sees those tools, and the supplier never sees the buyer's ERP connections.

A false agent

A team exposes "FX rate agent" over A2A. Inside, it calls one currency API with two parameters and formats the result. The task states, card and streaming add nothing; a single MCP tool get_rate(from, to) would be simpler to run and test.

Key points

  • MCP connects one agent to tools and resources; A2A connects agents to each other as peers.
  • The deciding question is who holds the reasoning and state, not how long the work takes.
  • A function with fixed inputs and outputs is a tool even if it runs for ten minutes.
  • A remote party that plans, asks questions or keeps context across turns is an agent.
  • A common layout is A2A between organizations and MCP inside each one.

Common mistakes

  • Choosing A2A because a call is slow, when the callee has no judgment of its own.
  • Exposing an internal toolset to a partner over MCP when a delegated outcome would do.
  • Treating the two protocols as competitors and standardizing on only one.
  • Hiding a multi-step workflow with human approvals behind one tool call.

Check yourself · 2 of 3

In the A2A project's comparison with MCP, how is MCP described relative to A2A?

Choose one answer

Check yourself · 3 of 3

A supplier's system may reply "which of these two SKUs do you mean?" before it can quote. Why does that point toward A2A rather than an MCP tool?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic