Connecting the Kitchen: MCP & A2A, How AI Agents Communicate and Collaborate
Part 6 of The Culinary Architecture of Agentic AI

An AI agent can reason, plan, and make decisions. It can even execute tools and coordinate complex workflows.
But there is a bigger challenge.
How does an agent access capabilities that live outside its own environment? And how does it collaborate with another agent without needing to understand how that agent is built internally?
Imagine a professional kitchen.
A chef doesn't grow every ingredient, manufacture every utensil, or personally perform every specialised task. The chef works with suppliers, equipment, and other specialists. Each has a defined responsibility and a way of communicating.
Agentic AI faces a similar challenge.
An agent might need to query a database, retrieve monitoring data, create a deployment request, or ask another specialised agent to investigate an issue.
Connecting all these capabilities through custom integrations can become difficult to maintain. Allowing independent agents to collaborate introduces another layer of complexity.
This is where two important protocols enter the picture:
- Model Context Protocol (MCP): standardises how AI applications connect to external tools and context.
- Agent2Agent (A2A): standardises how independent agents communicate and collaborate.
They solve different problems, but together they help create more interoperable agentic systems.
Let's understand what happens under the hood.
1. The Problem: An Agent Cannot Work in Isolation
Let's start with a practical example.
Imagine you're building an AI-powered cloud operations assistant.
A monitoring alert reports increased response times across an application. The agent receives the alert and needs to investigate.
What does it need?
- Monitoring data from Azure Monitor or Prometheus.
- Application logs from a logging platform.
- Infrastructure information from a cloud environment.
- A deployment history to identify recent changes.
- Possibly, help from another agent specialising in application performance.
The agent's reasoning model may be capable of deciding what to investigate, but that doesn't automatically give it access to these systems.
It needs connections.
One approach would be to build a custom integration for every external service and a custom communication mechanism for every other agent.
That creates a problem as the system grows.
AI AGENT
|
+------------+------------+
| | |
Custom API Custom API Custom API
| | |
Monitoring Database Logging
Now imagine adding ten more services.
Each integration might have different authentication requirements, request formats, response structures, error handling, and maintenance needs.
The problem isn't that integrations are impossible.
The problem is that every new integration introduces another contract that developers must understand, implement, and maintain.
The same issue appears when agents need to communicate with one another.
If every agent uses a different interaction model, connecting them becomes another custom engineering exercise.
We need common communication standards.
That's the motivation behind MCP and A2A.
2. Understanding MCP: Giving the Agent Access to Its Environment
Let's return to our kitchen.
A chef needs access to ingredients, cooking equipment, recipes, and information about available supplies.
Instead of building a completely different communication mechanism for every supplier and piece of equipment, imagine having a standard way to discover and interact with them.
That's the basic idea behind MCP.
The Model Context Protocol is an open protocol that standardises how AI applications connect to external context and capabilities.
It provides a common communication structure between an AI application and external services.
Rather than writing a completely different integration interface for every MCP-compatible service, an application can communicate through a shared protocol.
The three main components of MCP
MCP follows a host-client-server architecture.
+--------------------------------+
| MCP HOST |
| |
| AI Application / Assistant |
| |
| +--------------------+ |
| | MCP CLIENT | |
| +--------------------+ |
+---------------|----------------+
|
MCP Protocol
|
+---------------v----------------+
| MCP SERVER |
| |
| Tools | Resources | Prompts |
| |
+---------------|----------------+
|
External Systems
|
Database / APIs / Files
Let's understand each component.
1. Host
The host is the AI application itself.
It is responsible for managing the overall experience, integrating the language model, coordinating MCP clients, and enforcing application-level permissions and consent.
Examples include an AI assistant, an AI-powered IDE, or a custom agent application.
2. Client
The MCP client is the component inside the host that communicates with an MCP server.
A host can manage multiple clients, with each client maintaining a connection to a particular server.
For example:
- One client connects to a database MCP server.
- Another connects to a filesystem MCP server.
- Another connects to a monitoring MCP server.
The host coordinates these connections and controls what information and capabilities are made available to the model.
3. Server
The MCP server exposes capabilities and contextual information through the protocol.
It acts as the interface between the AI application and an external system.
For example, a monitoring MCP server might expose tools to query metrics and retrieve alerts.
A database MCP server might expose resources containing schema information and tools for executing approved queries.
One important distinction:
An MCP server does not need to contain an AI agent.
It can simply be a service that exposes well-defined capabilities to an AI application.
That distinction becomes particularly important when we compare MCP with A2A later.
3. What Exactly Does an MCP Server Expose?
MCP defines three core server-side primitives:
- Tools
- Resources
- Prompts
They may appear similar at first, but they serve different purposes.
3.1 Tools, Actions the Agent Can Request
Think of tools as the equipment available to a chef.
A chef might use a thermometer to check temperature or a mixer to prepare ingredients.
Similarly, an AI application can discover and invoke tools exposed by an MCP server.
Examples:
- Query application logs.
- Retrieve CPU utilization.
- Search a database.
- Create an incident ticket.
- Retrieve deployment information.
A tool represents an executable capability.
A simplified tool definition might look like this:
{
"name": "query_application_logs",
"description": "Retrieve application logs for a specified time range",
"inputSchema": {
"type": "object",
"properties": {
"service": {
"type": "string"
},
"start_time": {
"type": "string"
},
"end_time": {
"type": "string"
}
},
"required": [
"service",
"start_time",
"end_time"
]
}
}
This tells the client:
- What the tool is called.
- What it is intended to do.
- What inputs it expects.
- What structure those inputs must follow.
The model can use this information to decide whether the tool is relevant and construct an appropriate request.
However, the model does not directly execute the external system's operation.
The host and client manage the protocol interaction, while the server handles the requested capability.
3.2 Resources, Information the Agent Can Read
Tools perform actions. Resources provide information.
Think of a chef consulting an inventory sheet before deciding what to prepare.
An MCP resource can expose contextual data such as:
- Database schemas.
- Configuration information.
- Documentation.
- Service metadata.
- Application information.
A resource is identified through a URI.
For example:
monitoring://services/payment-api/overview
The client can discover available resources and request their contents.
This is useful when an agent needs information to make a decision without necessarily performing an action.
A simple distinction:
| Primitive | Main purpose | Example |
|---|---|---|
| Tool | Perform an action | Query application logs |
| Resource | Provide context | Read service configuration |
| Prompt | Provide a reusable template | Incident investigation instructions |
3.3 Prompts, Reusable Interaction Templates
Imagine a kitchen having standard recipes for recurring dishes.
Instead of explaining the entire preparation process every time, a chef can refer to a reusable recipe.
MCP prompts serve a similar purpose.
They are reusable templates that can help structure interactions with a model.
For example, a monitoring MCP server might expose a prompt named:
investigate_service_incident
It could guide an investigation by asking the model to:
- Identify the affected service.
- Examine the relevant monitoring data.
- Retrieve related logs.
- Compare the findings.
- Summarise the available evidence.
Prompts help standardise recurring interactions.
They do not automatically execute the workflow or guarantee that the model will follow every instruction.
The host and application remain responsible for the broader orchestration.
A quick mental model
MCP SERVER
|
+---------+---------+
| | |
TOOLS RESOURCES PROMPTS
| | |
Actions Context Templates
| | |
+---------+---------+
|
MCP CLIENT
|
MCP HOST
|
AI MODEL
The three primitives give an AI application different ways to discover and use external capabilities.
They are not interchangeable.
4. MCP Under the Hood: What Actually Happens?
Understanding the components is useful.
But the more interesting question is:
What happens when an agent actually needs to use an MCP tool?
Let's follow the interaction.
Step 1: Establishing communication
The host creates an MCP client and connects it to an MCP server.
MCP supports different transport mechanisms, including:
- stdio: communication through standard input and output streams, commonly used for local process communication.
- Streamable HTTP: communication with a server over HTTP, with optional Server-Sent Events for streaming.
The transport determines how messages travel.
It does not change the fundamental meaning of the MCP operations.
Step 2: Protocol and capability discovery
Before using a server, the client needs to understand what the server supports.
The participants establish the protocol version and exchange capability information.
This helps the client understand which features and operations are available.
For example, a server might expose tools and resources but not support a particular optional extension.
The client should not assume that every MCP server implements every available feature.
Step 3: Discovering available tools
The client requests the available tools through:
tools/list
The server responds with tool definitions, including their names, descriptions, and input schemas.
The host can make appropriate tool definitions available to the model.
Step 4: The model decides what to use
Suppose the agent receives an alert about increased latency.
After examining the available tool definitions, it decides that retrieving application logs is the next useful step.
The model produces a tool call with the required inputs.
The host handles the tool invocation through its MCP client.
Step 5: Invoking the tool
The client sends a request using:
tools/call
A simplified conceptual request:
{
"method": "tools/call",
"params": {
"name": "query_application_logs",
"arguments": {
"service": "payment-api",
"start_time": "10:00",
"end_time": "10:30"
}
}
}
The MCP server receives the request, validates the input, and performs the operation according to its implementation and permissions.
Step 6: Returning the result
The server returns a structured result to the client.
The host then makes the result available to the model so it can continue reasoning.
The model might decide to query another tool, ask for clarification, or prepare a response.
USER REQUEST
|
v
MCP HOST
|
v
MCP CLIENT
|
|---- Discover capabilities
|---- List available tools
|
v
AI MODEL
|
|---- Selects a relevant tool
|
v
MCP CLIENT
|
|---- tools/call
|
v
MCP SERVER
|
|---- Executes operation
|
v
STRUCTURED RESULT
|
v
MCP CLIENT
|
v
AI MODEL
|
v
NEXT DECISION
Notice something important.
MCP standardises the communication between the application and the server.
It does not decide what the agent should do next.
That responsibility belongs to the model and the surrounding orchestration system.
The distinction matters because a protocol should not be confused with an agent's reasoning or workflow engine.
5. Understanding A2A: When One Agent Needs Another Agent
Now let's introduce a different situation.
Our cloud operations assistant has retrieved monitoring metrics and application logs.
But the issue appears to be related to application-level performance.
The cloud operations agent can investigate infrastructure, but it is not necessarily specialised in analysing application traces or identifying inefficient application code paths.
It could try to handle everything itself.
But what if another agent already specialises in application performance?
This is where A2A becomes useful.
Agent2Agent (A2A) is an open protocol designed to enable independent AI agents to communicate, delegate tasks, and exchange results.
The important word here is independent.
The agents might be built using different frameworks, models, programming languages, or infrastructure.
One could use LangGraph. Another could use a custom orchestration loop. A third could run on a different cloud environment.
A2A provides a common interaction model so they can collaborate without requiring the calling agent to understand the internal implementation of the remote agent.
The kitchen analogy
Imagine a head chef who needs a specialised pastry preparation.
Instead of learning every detail of pastry production, the head chef delegates the work to a pastry chef.
The pastry chef receives the request, performs the work, and returns the completed result.
The head chef doesn't need to know every internal step used by the pastry chef.
The same principle applies to independent agents.
6. The Core Concepts of A2A
A2A introduces several concepts that are important to understand.
Let's break them down.
6.1 Agent Card, Discovering What Another Agent Can Do
Before delegating work, an agent needs to know whether another agent is suitable for the task.
Imagine a restaurant having a directory of specialists and their responsibilities.
An Agent Card serves a similar purpose.
It is a structured JSON document describing an agent's identity, capabilities, skills, endpoint, and authentication requirements.
A simplified conceptual example:
{
"name": "Application Performance Agent",
"description": "Investigates application performance issues",
"supportedInterfaces": [
{
"url": "https://agents.example.com/performance",
"protocolBinding": "JSONRPC",
"protocolVersion": "1.0"
}
],
"capabilities": {
"streaming": true,
"pushNotifications": true
},
"skills": [
{
"id": "trace-analysis",
"name": "Distributed Trace Analysis",
"description": "Analyses traces to identify performance bottlenecks"
},
{
"id": "latency-investigation",
"name": "Latency Investigation",
"description": "Investigates application latency patterns"
}
]
}
This is an illustrative example, not a complete production Agent Card.
The client can inspect the Agent Card to understand:
- What the agent does.
- Which skills it offers.
- Where its endpoint is located.
- Which protocol interfaces it supports.
- What capabilities are available.
- What authentication is required.
Agent Cards can be discovered through well-known URLs, registries, or direct configuration.
A common well-known location is:
https://example.com/.well-known/agent-card.json
The important point is that an agent can advertise its capabilities without exposing its internal implementation.
6.2 Messages, Communicating With Another Agent
Once the client identifies a suitable agent, it can send a message.
An A2A message represents a communication turn between a client and an agent.
It can contain one or more parts.
Those parts can carry:
- Text.
- Structured data.
- File content.
- References to external files.
For example, the cloud operations agent might send:
{
"message": {
"role": "user",
"parts": [
{
"type": "text",
"text": "Investigate the latency increase in payment-api."
},
{
"type": "data",
"data": {
"service": "payment-api",
"average_latency_ms": 1850,
"baseline_latency_ms": 320,
"time_window": "10:00-10:30"
}
}
]
}
}
This is a conceptual illustration of the message content.
The receiving agent can interpret the request according to its own capabilities and implementation.
6.3 Tasks, Tracking Work That Takes Time
Here is where A2A becomes particularly interesting.
Not every request can be completed immediately.
Imagine asking another agent to analyse thousands of traces, correlate deployment events, and identify a likely bottleneck.
That work may take several minutes.
Returning a simple response and leaving the caller uncertain about progress would not be ideal.
A2A introduces the concept of a Task.
A task represents a unit of work with its own identifier and lifecycle.
The agent can return a task so the client can track its progress.
A task can move through states such as:
| State | Meaning |
|---|---|
submitted |
Request has been received |
working |
Agent is processing the task |
input-required |
Additional information is needed |
completed |
Task has finished successfully |
failed |
Task could not be completed |
canceled |
Task was canceled |
rejected |
Agent declined the request |
The task lifecycle makes asynchronous collaboration possible.
The calling agent does not have to wait for every operation to finish before receiving an acknowledgement.
Depending on the remote agent's capabilities and the interaction mode, the client can receive updates through polling, streaming, or push notifications.
6.4 Artifacts, Returning the Actual Result
A task's status tells us what happened to the work.
But where does the actual result go?
That's the role of an Artifact.
An artifact represents a concrete output generated by an agent.
For example, the application performance agent might return:
- A performance investigation report.
- A trace-analysis summary.
- Structured bottleneck information.
- A file containing relevant diagnostic results.
An artifact can contain one or more parts.
This gives us an important distinction:
Messages communicate. Tasks track work. Artifacts carry deliverables.
They are related, but they are not the same thing.
7. A2A Under the Hood: How Agent Collaboration Works
Let's follow our cloud operations example again.
The cloud operations agent has identified that application performance analysis is needed.
It discovers the Application Performance Agent through its Agent Card.
Now what happens?
Step 1: Discover the remote agent
The client retrieves and examines the Agent Card.
It verifies whether the agent has the required skill, supported interface, and authentication requirements.
Step 2: Send a message
The client sends a message describing the investigation request.
The message may contain text, structured data, or file references.
Step 3: Receive a response
The remote agent may return:
- A direct Message for a simple interaction.
- A Task when the request needs tracked processing.
This distinction matters.
Not every A2A interaction requires a long-running task.
Step 4: Track task progress
If the remote agent returns a Task, the client can follow its progress.
For example:
submitted
|
v
working
|
v
working
|
v
completed
The client may receive status updates and artifact updates through supported streaming mechanisms.
If the task requires additional information, it can enter the input-required state.
The client can then provide the requested information using the existing task context.
Step 5: Receive the artifact
Once the task completes, the remote agent provides its output through an artifact.
The calling agent can inspect the result and decide what to do next.
CLOUD OPERATIONS AGENT
|
|
Discover Agent Card
|
v
APPLICATION PERFORMANCE AGENT
|
|
Send Message
|
v
Create Task
|
v
+---------------+
| Task: Working |
+---------------+
|
v
Analyse Traces
|
v
Update Task Status
|
v
+----------------+
| Task: Completed|
+----------------+
|
v
Return Artifact
|
v
CLOUD OPERATIONS AGENT
|
v
Continue Investigation
The calling agent does not need to know how the remote agent performed its analysis.
It only needs to understand the agreed communication contract and the result it receives.
That's the real value of interoperability between independent agents.
8. MCP vs A2A: Understanding the Difference
Now that we've explored both protocols, let's put them side by side.
| Dimension | MCP | A2A |
|---|---|---|
| Primary purpose | Connect AI applications to external capabilities and context | Enable communication between independent agents |
| Main interaction | Client and server | A2A client and remote agent |
| Discovery | Server capabilities and primitives | Agent Cards and skills |
| Main building blocks | Tools, resources, prompts | Messages, tasks, artifacts |
| Typical use | Query a database or retrieve monitoring data | Delegate an investigation to another agent |
| Main abstraction | Capability access | Agent collaboration |
A simple way to remember:
MCP connects an agent to what it can use. A2A connects an agent to who it can collaborate with.
Neither replaces the other.
They solve different interoperability problems.
What MCP is not
MCP does not automatically:
- Turn an external service into an autonomous agent.
- Decide which tool should be invoked.
- Manage an entire multi-agent workflow.
- Guarantee that a tool result is correct or complete.
What A2A is not
A2A does not automatically:
- Give an agent access to every external tool.
- Guarantee that a remote agent is trustworthy.
- Decide how tasks should be divided.
- Guarantee that two agents will agree.
- Replace the orchestration layer.
These distinctions are important because protocols define communication contracts, not the intelligence or reliability of the entire system.
9. Bringing MCP and A2A Together
So far, we've treated the protocols separately.
But their real value becomes clearer when they work together.
Let's return to our cloud incident.
An alert reports that the payment API is experiencing increased latency.
Our cloud operations agent needs to investigate.
It has access to an MCP server exposing:
- Monitoring metrics.
- Application logs.
- Deployment history.
- Infrastructure metadata.
It also has access to an A2A-compatible application performance agent.
Here's how the complete interaction might look.
The investigation
Step 1, Receive the alert
The cloud operations agent receives an alert indicating that the payment API's response time has increased.
Step 2, Retrieve monitoring data through MCP
The agent uses an MCP tool to retrieve CPU utilization, memory usage, request latency, and error rates.
Step 3, Retrieve application logs through MCP
It queries the relevant application logs for the affected time window.
Step 4, Identify the need for specialised analysis
The monitoring data does not fully explain the latency increase.
The agent decides that distributed trace analysis would provide additional evidence.
Step 5, Delegate through A2A
It discovers the application performance agent and sends an investigation request.
Step 6, Track the remote task
The remote agent analyses the traces and reports its progress through the A2A task lifecycle.
Step 7, Receive the artifact
The performance agent returns a structured report identifying a possible bottleneck in a downstream service.
Step 8, Continue the investigation
The cloud operations agent uses MCP again to retrieve deployment information and correlate the reported bottleneck with recent changes.
Step 9, Produce a conclusion
The agent combines the available evidence and prepares an incident summary.
The overall flow looks like this:
ALERT
|
v
CLOUD OPERATIONS AGENT
|
+---------+---------+
| |
v v
MCP CLIENT A2A CLIENT
| |
v v
MCP SERVER REMOTE AGENT
| |
+-----+------+ Task Lifecycle
| | | |
Metrics Logs Deploy Analysis
| | | |
+-----+------+ |
| |
| Artifact Result
| |
+---------+---------+
|
v
CORRELATE EVIDENCE
|
v
INCIDENT SUMMARY
This is the architecture we wanted to understand.
MCP provides access to external capabilities.
A2A enables collaboration with independent agents.
The orchestration layer decides when to use each one, how to interpret the results, and what should happen next.
The protocols connect the pieces. The application still owns the workflow.
10. The Part That Often Gets Overlooked: Security and Trust
Interoperability is powerful.
But every new connection introduces a trust boundary.
An agent that can query monitoring data, access databases, create tickets, or communicate with external agents needs more than a working protocol implementation.
It needs carefully designed security controls.
Let's examine some important considerations.
10.1 Authentication Is Not Authorization
Authentication answers:
Who or what is making this request?
Authorization answers:
What is this requester allowed to do?
An authenticated MCP client should not automatically receive unrestricted access to every tool exposed by a server.
Similarly, discovering an A2A agent does not mean that the calling agent should trust it with every piece of available information.
Permissions should be scoped to the actual requirement.
For example:
- A monitoring agent might need read-only access to metrics.
- An incident-management tool might need permission to create tickets but not delete them.
- An application performance agent might only need the relevant trace data, not the entire production environment.
Use least privilege as the default.
10.2 Tool Descriptions and Agent Responses Are Not Automatically Trustworthy
A tool description may contain inaccurate or misleading information.
A remote agent may return incomplete, outdated, or incorrect findings.
The calling application must not blindly treat everything it receives as trusted instructions.
This is especially important when results contain natural-language content.
A remote agent should be treated as an external system with its own trust boundary.
Validate structured outputs, check their origin, and distinguish data from instructions.
10.3 Human Approval for Sensitive Actions
Consider an agent that identifies a possible infrastructure issue and wants to restart a production service.
The fact that it can discover and invoke a tool does not mean it should be allowed to execute every operation automatically.
Sensitive operations may require explicit approval.
For example:
Agent identifies an action
|
v
Check action risk
|
+----+----+
| |
Low risk High risk
| |
v v
Continue Request approval
|
+----+----+
| |
Approve Reject
| |
v v
Execute Stop
The approval policy belongs to the application and its security architecture.
A protocol can provide interaction mechanisms, but it does not replace the application's responsibility to enforce policy.
10.4 Protect Credentials and Sensitive Data
Never assume that connecting to a server makes credential handling safe.
Applications should:
- Use appropriate authentication mechanisms.
- Avoid exposing secrets in prompts or tool outputs.
- Scope access tokens to the required resources.
- Protect credentials in transit and at rest.
- Validate remote endpoints and their identity.
- Avoid forwarding unnecessary user or production data.
For remote MCP servers, the transport and authorization model must be configured carefully.
For A2A, the calling system must establish trust in the remote agent and enforce appropriate access controls.
10.5 Validate the Result, Not Just the Response Status
This is another important lesson from production agent design.
A successful protocol response does not necessarily mean the requested investigation is complete.
An MCP tool may return a successful result containing only the first page of logs.
An A2A task may complete while producing an artifact that lacks the evidence required to support a conclusion.
The application should consider:
- Was the requested operation actually performed?
- Is the returned data complete?
- Were any records truncated?
- Does the result cover the requested time window?
- Are there warnings or partial failures?
- Does the artifact contain the expected fields?
- Is there enough evidence to support the conclusion?
Execution success and evidence completeness are two different things.
A reliable agent must understand that difference.
11. What Happens When Things Fail?
A protocol interaction should not be designed around the assumption that everything works perfectly.
Let's look at a few realistic scenarios.
| Scenario | What could go wrong | What the application should do |
|---|---|---|
| MCP server unavailable | A required tool cannot be reached | Apply bounded retries where appropriate, report the dependency failure, and avoid inventing results |
| Tool returns partial data | The query succeeds but not all records are returned | Check pagination, truncation, and completeness indicators |
| A2A agent is unavailable | Delegated work cannot start | Use an approved alternative or report that delegation failed |
| A2A task fails | Remote processing ends unsuccessfully | Inspect the task state and failure information before deciding whether to retry |
| Remote agent requests more input | Task enters input-required |
Supply only the necessary information or escalate |
| Duplicate request | A retry may cause the same action to happen twice | Use application-level idempotency and duplicate-handling controls |
Let's explore three of these more closely.
Scenario A: MCP tool returns incomplete information
Suppose our monitoring agent queries application logs.
The server returns:
{
"status": "success",
"returned_count": 100,
"has_more": true,
"truncated": false
}
The request succeeded.
But the result is not complete.
If the agent concludes that no other errors exist based only on these 100 records, it may produce an incorrect investigation.
The application should recognise that more evidence is available and retrieve the remaining pages when appropriate.
If the next page cannot be retrieved, the conclusion should remain limited to the evidence actually inspected.
It should not silently convert an incomplete investigation into a complete one.
Scenario B: A2A task fails after processing begins
Imagine the application performance agent accepts a task and begins analysing traces.
After several minutes, it reports a failed state.
The calling agent should not interpret the absence of an artifact as proof that no performance issue exists.
It should inspect the failure information, determine whether a retry is appropriate, and preserve the fact that the analysis was not completed.
If an alternative investigation path exists, the orchestration layer can consider it.
Scenario C: A retry creates duplicate work
Suppose the cloud operations agent sends an A2A request to create an incident ticket through another agent.
The remote agent creates the ticket, but the network connection drops before the response reaches the caller.
The caller cannot immediately know whether the operation succeeded.
If it blindly retries, it may create a second ticket.
This is a classic distributed-systems problem.
A robust application needs an appropriate idempotency strategy, request correlation, and a way to reconcile the outcome before repeating a potentially non-idempotent operation.
The lesson is simple:
A communication failure does not necessarily mean the operation failed.
The application must distinguish between a failed request, a failed operation, and an unknown outcome.
12. What MCP and A2A Still Leave to the Developer
At this point, it may seem that these protocols provide everything needed to build a connected agentic system.
They don't.
And that's not a weakness.
They are designed to solve specific interoperability problems.
There are still important responsibilities outside their scope.
| Responsibility | Who owns it? |
|---|---|
| Deciding what the agent should do | Model and orchestration layer |
| Choosing when to call an MCP tool | Agent application |
| Choosing which remote agent to delegate to | Discovery and orchestration logic |
| Managing workflow state | Agent application and runtime |
| Enforcing business rules | Application |
| Defining authorization policies | Application and infrastructure |
| Validating results | Application |
| Handling retries and duplicate actions | Application and integration design |
| Monitoring the complete workflow | Observability and operations layer |
Think about our kitchen again.
MCP gives the chef access to equipment and supplies.
A2A lets the chef collaborate with specialists.
But neither one decides what should be cooked, how the kitchen should be organised, or whether the final dish meets the required standard.
Those responsibilities still belong to the people and systems operating the kitchen.
13. When Should You Use MCP, A2A, or Both?
Let's make the decision practical.
Use MCP when:
- An agent needs to access an external tool.
- An application needs a standard way to retrieve contextual data.
- You want to expose reusable capabilities to compatible AI applications.
- You want to separate the implementation of an integration from the AI application's internal logic.
Use A2A when:
- An independent agent needs to delegate work to another agent.
- Different teams own different specialised agents.
- Agents are built using different frameworks or technology stacks.
- A task needs asynchronous progress tracking and deliverable exchange.
- You want agent-to-agent communication without tightly coupling their internal implementations.
Use both when:
- An agent needs external capabilities and specialised agent collaboration.
- A workflow involves multiple systems and independent agents.
- You want a modular architecture where integrations and agent responsibilities can evolve separately.
A practical architecture might look like this:
USER
|
v
ORCHESTRATOR
|
+---------+---------+
| |
v v
MCP CLIENT A2A CLIENT
| |
v v
MCP SERVER REMOTE AGENT
| |
External APIs Its Own Runtime
Databases Its Own Tools
Monitoring Its Own Workflow
There is no requirement that every agent use both protocols.
Choose the communication model based on the actual responsibility you need to support.
14. The Bigger Picture: Where Do MCP and A2A Fit?
Let's take a step back and look at the architecture we've been building throughout this series.
We've explored:
- Foundation models, the reasoning engine.
- Tools and execution, how agents interact with their environment.
- Orchestration, how decisions and actions are coordinated.
- Frameworks and runtimes, how the agent system is structured and operated.
- MCP and A2A, how capabilities and independent agents communicate.
These are not isolated building blocks.
They work together.
AGENTIC AI SYSTEM
|
+-------------+-------------+
| |
v v
FOUNDATION MODEL ORCHESTRATION
| |
+-------------+-------------+
|
FRAMEWORK / RUNTIME
|
+----------+----------+
| |
v v
MCP A2A
| |
External Tools Independent Agents
Data & Context Delegation & Results
| |
+----------+----------+
|
EXECUTION LAYER
|
OBSERVABILITY
|
EVALUATION
The model provides reasoning capabilities.
The orchestration layer manages decisions and workflow.
The framework and runtime provide the structure and execution environment.
MCP and A2A provide standardised ways to communicate with external capabilities and other agents.
And the surrounding security, observability, and evaluation layers help make the complete system dependable.
A connected agent is not automatically a reliable agent.
Interoperability makes it easier to connect components. Engineering discipline makes those connections safe, predictable, and useful.
15. The Mental Model to Remember
If there is one thing I want you to take away from this article, it is this:
MCP and A2A are not two competing ways to build agents.
They solve two different communication problems.
Think of the kitchen one last time:
- MCP: The standard way the chef accesses equipment, ingredients, and information.
- A2A: The standard way the chef communicates and collaborates with other specialists.
- Orchestration: The process that decides what needs to happen, in what order, and why.
- Runtime: The environment that keeps the overall operation running.
When these responsibilities are understood separately, the architecture becomes much easier to reason about.
And that's the larger lesson of agentic AI engineering:
Don't just build agents that can communicate. Build systems where every connection has a clear responsibility, a defined contract, and a reliable way to handle failure.
What's Next?
We've now explored how agents reason, execute tools, coordinate workflows, operate within frameworks, and communicate with external systems and independent agents.
But connecting components is only part of the challenge.
How do we ensure that an agent behaves correctly, respects boundaries, and produces reliable results over time?
In the next part of The Culinary Architecture of Agentic AI, we'll move toward one of the most important concerns in production systems:
Security, Guardrails, and Human Oversight, Making Autonomous Systems Accountable.
Because giving a chef access to the kitchen is one thing.
Making sure the kitchen operates safely is another.
Further Reading
The following official documentation is worth exploring if you want to understand the protocol specifications beyond this conceptual explanation.
Model Context Protocol (MCP)
Agent2Agent (A2A)
Note: Protocols evolve. When implementing either protocol, always verify the specification version, supported features, and compatibility of the SDKs and servers you choose.
About the author
- I’m an engineer who enjoys turning messy engineering problems into simple, practical solutions. My work sits across AI automation, DevOps, SRE, cloud infrastructure, and developer experience. I like understanding why something is painful, finding ways to make it better, and building tools or workflows that reduce repetitive work and improve how developers operate. I write about the problems I encounter, the things I build, what I learn, and the ideas shaping modern engineering - from AI-assisted development and agentic systems to cloud automation, reliability, and developer tooling. I’m especially interested in the space where engineering, automation, and people meet - building useful technology and communicating it clearly.
Comments
Join the discussionNo comments yet. Be the first to comment.
The Culinary Architecture of Agentic AI
A layered guide to understanding how modern agentic AI systems are built—from foundation models and tools to orchestration, RAG, memory, agent communication, security, and observability. Using a culinary architecture metaphor, this series breaks down the components that turn an LLM into a reliable autonomous system.




