Back to blog

Agent-to-Agent (A2A) Protocol Architecture Diagrams (2026)

How to diagram Agent-to-Agent (A2A) protocol architectures. Covers A2A vs MCP, Agent Cards, Task units, HTTP/SSE transport, and how A2A combines with MCP in production multi-agent systems — with prompt templates.

R
Ryan·Senior AI Engineer
·

The Agent-to-Agent (A2A) protocol, introduced by Google in 2025 and now adopted by 150+ organizations, is the emerging standard for structured communication between AI agents. Where MCP (Model Context Protocol) standardizes how agents call tools, A2A standardizes how agents delegate work to other agents — defining the message format, transport layer, capability discovery, and task lifecycle for agent-to-agent interactions. Together, MCP and A2A form the two-protocol backbone of the modern agentic stack in 2026.

As multi-agent systems move to production, clear architecture diagrams that show A2A communication patterns have become essential for design reviews, security audits, and cross-team alignment. This guide explains the A2A protocol components, contrasts them with MCP, and provides prompt templates for diagramming your A2A-based system.

A2A vs. MCP: two halves of the agentic stack

DimensionMCP (Model Context Protocol)A2A (Agent-to-Agent Protocol)
What it standardizesAgent ↔ tool communicationAgent ↔ agent delegation
RelationshipClient calls tool (synchronous RPC)Caller delegates task to remote agent
DiscoveryServer manifest lists available toolsAgent Card advertises agent capabilities
Transportstdio or SSEHTTPS + SSE (streaming) or WebSocket
Task lifecycleRequest/responseSubmit → Working → Completed/Failed
Originated byAnthropic (2024)Google (2025)
Typical useCalling web search, DB, file systemDelegating a research subtask to a remote agent

Core A2A protocol concepts

Agent Card

Every A2A-compatible agent publishes an Agent Card — a JSON document served at a well-known URL (typically/.well-known/agent.json) that describes: the agent's name and description, its input/output modalities (text, images, files, structured data), the tasks it can perform, its authentication requirements, and the endpoint URL for task submission. Agent Cards enable discovery: an orchestrator can fetch a remote agent's card to understand what it can do before delegating a task. Show Agent Cards in your diagram as a discovery side-channel separate from the main task submission flow.

Task unit

A2A tasks have a defined lifecycle: the caller submits a Task (with a unique ID, input message, and context), the remote agent transitions the task through states — submitted working completed or failed — and the caller can poll for status or stream progress via SSE. Long-running tasks can be paused (input-required) when the remote agent needs more information. Draw task state transitions explicitly in your diagram.

Transport: HTTPS + SSE

A2A tasks are submitted via HTTPS POST. Status updates and streamed partial results flow back to the caller over Server-Sent Events (SSE). Unlike MCP's stdio transport (suitable for local tool servers), A2A is designed for network-separated, independently deployed agents — the remote agent may be deployed by a different team, in a different cloud region, or by a third-party vendor.

The MCP + A2A combined stack

In production 2026 architectures, MCP and A2A serve complementary roles:

  • Orchestrator agent uses MCP to call local tools (file system, database, code execution) and uses A2A to delegate complex subtasks to remote specialist agents
  • Specialist agents expose their capabilities via Agent Cards over A2A, and internally use MCP to call their own tools
  • An Agent Registry (optional) maintains a catalog of available agents and their Agent Cards, similar to a service registry in microservices

Prompt templates for A2A architecture diagrams

Orchestrator with A2A specialist delegation

"Multi-agent system using A2A protocol for cross-agent delegation. A user sends a research request to a React frontend, which calls an Orchestrator Agent (Claude claude-opus-4-8) via REST API. The Orchestrator consults an Agent Registry to discover available specialist agents, then delegates three parallel subtasks via A2A protocol (HTTPS + SSE): (1) a Web Research Agent (fetches and summarizes web sources, deployed on Cloud Run), (2) a Data Analysis Agent (runs Python data analysis on uploaded CSVs, deployed on Modal), and (3) a Citation Agent (formats academic references, deployed on AWS Lambda). Each specialist publishes an Agent Card at /.well-known/agent.json describing its input/output schema. Task state transitions (submitted → working → completed) stream back to the Orchestrator via SSE. The Orchestrator also uses MCP to call local tools: filesystem MCP for reading uploaded files, and a database MCP for retrieving cached prior research. The Orchestrator synthesizes all results and streams the final response to the frontend via SSE. Show A2A connections with a distinct arrow style from MCP tool calls, and label the Agent Card discovery side-channel."

Cross-organization A2A federation

"Cross-organization A2A agent federation. Company A deploys an HR Agent (handles policy questions, vacation requests, and onboarding workflows). Company B is a payroll vendor that exposes a Payroll Agent via A2A — capable of salary lookup, benefits changes, and tax document generation. Company C is a benefits vendor exposing a Benefits Agent via A2A. When an employee asks the HR Agent about benefits or payroll, it discovers the relevant vendor agents via their published Agent Cards, delegates the specific subtask using A2A task submission, and synthesizes the response. Authentication: each vendor requires a signed JWT in the A2A task request; the HR Agent retrieves vendor tokens from a secrets manager. All A2A communications go over mTLS. Show the three organizations as separate bounded contexts, with A2A connections crossing organizational boundaries, and label the auth mechanism on each cross-org arrow."

What to show in your A2A diagram

  • Agent boundaries: Each agent as a distinct box — label its model, deployment platform, and role
  • Agent Card discovery: A dashed arrow from the orchestrator to each remote agent's /.well-known/agent.json endpoint
  • A2A task submission: HTTPS POST arrows from orchestrator to remote agents, labeled with task type
  • SSE streams: Return arrows showing streamed task state updates and partial results
  • MCP tool calls: Distinguished from A2A connections (different arrow style or color)
  • Trust boundaries: Organizational or trust-tier boundaries drawn with dashed boxes
  • Authentication mechanism: JWT, OAuth2, or mTLS annotated on cross-boundary connections

Related guides: MCP architecture diagram, AI agent architecture diagrams, AI agent orchestration use cases, and securing agentic AI systems.

Ready to try it yourself?

Start Creating - Free