Skip to content
AgenticAIWiki
  1. Learn
  2. Part 7
  3. 38. Agent interoperability and A2A
  4. 38.2

Lesson 38.2 · 2 of 7 · 5 min read · Reviewed 24 Nov 2026

MCP vs A2A: tools vs peers

By the end, you can

  • Contrast MCP and A2A.
  • Decide which one a design needs.

MCP and A2AAgent-to-agent protocol (A2A): An open protocol for agents built by different vendors to discover each other and exchange tasks. are often mentioned together, but they solve different problems.

MCP A2A
Connects An agent to tools and data An agent to another agent
The other side Does what it’s told, like a function Reasons, plans, may ask questions
Typical unit A tool call that returns quickly A task that may run for minutes or days
Visibility Tool schemas are fully described The peer is opaque; you see skills and results
Example query_database, create_issue “Plan and book a 3-day trip to Lisbon”

How they fit together

A typical design uses both:

Your agent --A2A--> Hotel chain's booking agent --MCP--> its reservation system
     \--MCP--> your CRM and calendar tools

A rule of thumb

If you’d describe it as a function with inputs and outputs, use a tool (MCPModel Context Protocol (MCP): An open protocol that standardises how AI applications connect to tools, data and prompts through servers.). If you’d describe it as a colleague you hand work to, use an agentAgent: A system where a model decides its own next steps, calling tools in a loop until the task is done. protocol (A2A).

Key points

  • MCP connects an agent to tools and data: the agent stays in control and calls functions.
  • A2A connects an agent to another agent: a peer with its own reasoning takes on a task.
  • They're complementary: an agent can use MCP for its tools and A2A to work with other agents.
Hands-on labRuns in the Playground

Decide MCP or A2A for each integration

Turn the rule of thumb (function or colleague?) into a small decision function and apply it to real integration requests.

You will have: A decision table of six integrations, each labelled MCP tool or A2A peer with the reason.

Steps

  1. Read the six integrations, each described by a few yes or no traits.
  2. Write decide(traits): if the other side reasons, may ask questions, or runs for minutes or longer, it is an A2A peer.
  3. Otherwise it is an MCP tool: a function with inputs and outputs that returns quickly.
  4. Return a one-line reason with each decision.
  5. Print the table and count each kind.

Done when

  • Exchange rates and the CRM lookup come out as MCP tools.
  • Trip planning and supplier negotiation come out as A2A peers.
  • Every row has a reason, not just a label.

Open in the Playground No API key needed.

Starter code (Python)
integrations = {
    "get exchange rate":        {"reasons": False, "asks_questions": False, "long_running": False},
    "look up customer in CRM":  {"reasons": False, "asks_questions": False, "long_running": False},
    "plan a conference trip":   {"reasons": True,  "asks_questions": True,  "long_running": True},
    "negotiate supplier quote": {"reasons": True,  "asks_questions": True,  "long_running": True},
    "create calendar event":    {"reasons": False, "asks_questions": False, "long_running": False},
    "background check":         {"reasons": True,  "asks_questions": False, "long_running": True},
}

def decide(traits):
    # TODO: return ("A2A peer", reason) or ("MCP tool", reason)
    return ("MCP tool", "TODO")

for name, traits in integrations.items():
    kind, why = decide(traits)
    print(f"{name:<26} {kind:<9} {why}")
Show a solution
integrations = {
    "get exchange rate":        {"reasons": False, "asks_questions": False, "long_running": False},
    "look up customer in CRM":  {"reasons": False, "asks_questions": False, "long_running": False},
    "plan a conference trip":   {"reasons": True,  "asks_questions": True,  "long_running": True},
    "negotiate supplier quote": {"reasons": True,  "asks_questions": True,  "long_running": True},
    "create calendar event":    {"reasons": False, "asks_questions": False, "long_running": False},
    "background check":         {"reasons": True,  "asks_questions": False, "long_running": True},
}

def decide(traits):
    why = [k.replace("_", " ") for k, v in traits.items() if v]
    if why:
        return ("A2A peer", "a colleague: " + ", ".join(why))
    return ("MCP tool", "a function: quick, inputs in, output back")

counts = {}
for name, traits in integrations.items():
    kind, why = decide(traits)
    counts[kind] = counts.get(kind, 0) + 1
    print(f"{name:<26} {kind:<9} {why}")
print("totals:", counts)
Quick checkYour agent needs to look up rows in a database. Which protocol fits?
How sure are you?
Pick an answer and how sure you are