A2A protocol: how agents call agents, and where MCP stops
The A2A protocol lets one AI agent discover another, hand it a task, and follow the result. How agent cards and tasks work, and when MCP is enough.
- Published
- Reading time
- 14 min read
In short
- The A2A (Agent2Agent) protocol is an open standard for one agent to discover another, send it work as a task, and receive status updates and artifacts, without seeing the other agent's tools, memory, or prompts.
- As of November 2026 the current release of the specification is version 1.0, published in March 2026, and the project sits under the Agentic AI Foundation at the Linux Foundation, alongside MCP.
- MCP connects an agent to tools whose calls the caller's model plans. A2A connects it to a remote agent that plans its own work. Use A2A when another team or vendor owns the other side, and a tool call or an MCP server otherwise.
- A remote agent's card and output are untrusted text. Keep an allowlist of approved agents, send the minimum data, and require human approval before acting on what a remote agent returns.
The A2A protocol (Agent2Agent) is an open standard for one AI agent to call another. The calling agent reads a published description of the remote agent, sends it a message, and follows the resulting task until an output comes back. The remote agent stays opaque, so the caller never sees its tools, memory, or prompts.
That opacity is what separates A2A from MCP. MCP connects an agent to tools and data, and the caller's model reads each tool's schema and plans every call. A2A connects an agent to another agent that plans its own work. Most teams need MCP first. A2A earns its complexity at an ownership boundary, where the agent on the other side belongs to a different team or vendor.
Who governs A2A, and which version is current
As of November 2026, the current release of the specification is version 1.0, and the project is hosted by the Agentic AI Foundation (AAIF), which sits under the Linux Foundation and also hosts MCP.
Google launched A2A in April 2025 and moved it to the Linux Foundation that June. IBM's Agent Communication Protocol merged into it in August 2025. Version 1.0, the first stable release, was tagged on March 12, 2026, with a 1.0.1 patch in May. On August 17, 2026, A2A became a hosted AAIF project, so both agent protocols now share a foundation. A v1.1.0-rc tag in the repository points to a minor release in preparation.
A technical steering committee of nine companies directs the project: Google, Microsoft, Cisco, Amazon Web Services, Salesforce, ServiceNow, SAP, IBM, and Bloomberg. The specification is licensed under Apache 2.0, and the project publishes SDKs for Python, Go, JavaScript, Java, .NET, and Rust.
A client sends the major and minor version on every request in the A2A-Version header, and a server treats a request with no version as 0.3, the last release before 1.0. Version 1.0 renamed fields and changed enum formats, so both sides need to speak it.
How an A2A call works
An A2A call runs in five steps: discover, authenticate, send, follow, and collect. The client is any application or agent that starts the request. The server, also called the remote agent, is an agent that exposes an A2A endpoint.
Take a support agent that needs a refund decision from a billing agent owned by the finance team.
- Discover. The support agent fetches the billing agent's agent card, which lists its skills, endpoints, and authentication requirements.
- Authenticate. It obtains a credential for a scheme the card declares, outside the protocol, and sends it in HTTP headers on every request.
- Send. It sends a message, such as "Is order A-1001 eligible for a refund?"
- Follow. The billing agent answers with a task. The support agent tracks it by polling, over a stream, or through a webhook.
- Collect. When the task completes, its artifacts hold the result.
The billing agent may query a ledger and a payment processor through its own MCP servers. None of that crosses the boundary. The specification calls this opaque execution: agents collaborate "without needing to share their internal thoughts, plans, or tool implementations."
What an agent card declares
An agent card is a JSON document that says who an agent is, where to reach it, what it can do, and how to authenticate. Every A2A server must publish one.
{
"name": "Billing Agent",
"description": "Answers refund and invoice questions for existing orders.",
"version": "1.2.0",
"supportedInterfaces": [
{ "url": "https://billing.example.com/a2a/v1", "protocolBinding": "JSONRPC", "protocolVersion": "1.0" },
{ "url": "https://billing.example.com/a2a/json", "protocolBinding": "HTTP+JSON", "protocolVersion": "1.0" }
],
"capabilities": { "streaming": true, "pushNotifications": true },
"securitySchemes": {
"sso": {
"openIdConnectSecurityScheme": {
"openIdConnectUrl": "https://login.example.com/.well-known/openid-configuration"
}
}
},
"defaultInputModes": ["text/plain", "application/json"],
"defaultOutputModes": ["text/plain", "application/json"],
"skills": [
{
"id": "refund-eligibility",
"name": "Refund eligibility",
"description": "Checks whether an order can be refunded and explains why.",
"tags": ["billing", "refunds"],
"examples": ["Is order A-1001 eligible for a refund?"]
}
]
}A client acts on four of those fields:
supportedInterfaceslists each endpoint with its protocol binding and version, in the server's order of preference.capabilitiessays whether the agent supports streaming and push notifications.securitySchemesdeclares how callers authenticate.skillsdescribes what the agent does, in prose, with tags and examples.
An MCP tool definition carries a JSON Schema for its input. A skill has no input schema. It has a description, tags, and examples, because its input is a message that another model will interpret.
The specification names three ways to find a card. A server can host it at https://{domain}/.well-known/agent-card.json. A registry can hold many cards, though the discovery guide notes that the specification defines no registry API. Or the client can be configured with the card's URL. Inside one company, a configured URL or a private catalog is the right default.
Two optional features harden a card. An agent can serve an extended card, with more skills or detail, to authenticated callers only. A card can also carry JSON Web Signatures, and the specification says clients should verify at least one before trusting it.
Tasks, messages, parts, and artifacts
A message is one turn of communication, a task is the stateful unit of work the remote agent creates, parts are the content inside both, and artifacts are the outputs of a task.
For a quick question, the remote agent can reply with a plain message and track nothing. For real work, it returns a task with a server-generated ID, which moves through a fixed set of states.
| State | Kind | Meaning |
|---|---|---|
TASK_STATE_SUBMITTED | In progress | The agent has acknowledged the task |
TASK_STATE_WORKING | In progress | The agent is processing it |
TASK_STATE_INPUT_REQUIRED | Interrupted | The agent needs more input from the client |
TASK_STATE_AUTH_REQUIRED | Interrupted | The agent needs an authorization to continue |
TASK_STATE_COMPLETED | Terminal | The task finished successfully |
TASK_STATE_FAILED | Terminal | The task ended with an error |
TASK_STATE_CANCELED | Terminal | The task was canceled before completion |
TASK_STATE_REJECTED | Terminal | The agent declined to perform the task |
The interrupted states are where A2A differs most from a function call. A billing agent that needs the purchase date moves the task to input-required, and the client answers with another message that carries the same task ID. A terminal task accepts no further messages, so a follow-up starts a new task under the same contextId, which groups related tasks into one conversation.
The simplest exchange is one request and one completed task, shown in the HTTP+JSON binding.
POST /message:send HTTP/1.1
Host: billing.example.com
Content-Type: application/a2a+json
A2A-Version: 1.0
Authorization: Bearer <token>
{
"message": {
"role": "ROLE_USER",
"parts": [{ "text": "Is order A-1001 eligible for a refund?" }],
"messageId": "msg-7f3a"
}
}
HTTP/1.1 200 OK
Content-Type: application/a2a+json
{
"task": {
"id": "task-91c2",
"contextId": "ctx-55d0",
"status": { "state": "TASK_STATE_COMPLETED" },
"artifacts": [{
"artifactId": "art-01",
"name": "Refund decision",
"parts": [{ "text": "Eligible. Delivered 12 days ago, inside the 30-day window." }]
}]
}
}A part holds one kind of content: text, raw bytes, a URL that points to a file, or structured JSON data. Messages carry the conversation and artifacts carry the results, and the specification says messages are not a reliable channel for anything critical.
Transports, streaming, and push notifications
The specification defines three protocol bindings and three ways to receive task updates. The bindings are JSON-RPC 2.0 over HTTP, gRPC, and HTTP+JSON (REST). An agent that offers several must keep them functionally equivalent, and the client picks the first one in the card's list that it supports. How updates arrive is a separate choice.
| Mechanism | How it works | Needs | Fits |
|---|---|---|---|
| Polling | The client calls Get Task until the state is terminal | Nothing extra | Simple integrations and restrictive firewalls |
| Streaming | The server sends the task, then status and artifact events, over one open response | capabilities.streaming | Interactive use and live progress |
| Push notifications | The server POSTs updates to a webhook the client registered for the task | capabilities.pushNotifications, and a client reachable over HTTP | Long-running work and server-to-server integrations |
In the JSON-RPC and REST bindings, streaming uses Server-Sent Events. A stream starts with the task, delivers events in order, and closes when the task reaches a terminal state. A client that loses its connection can open a new stream with Subscribe to Task.
Push notifications exist for work that outlives any connection. The client registers a webhook URL and the credentials the agent should present, and the agent sends the same event objects a stream would carry. Agents should validate webhook URLs and reject private address ranges, because a caller-supplied URL is an opening for server-side request forgery. Clients must check each notification's credentials and should expect duplicates.
How authentication is declared
Authentication is declared in the agent card and carried in HTTP headers, outside the A2A payload. The card's securitySchemes field names the schemes the server accepts, modeled on OpenAPI: API key, HTTP authentication such as Bearer, OAuth 2.0, OpenID Connect, and mutual TLS. A securityRequirements list says which schemes and scopes a caller must satisfy.
The client obtains credentials out of band, through an OAuth flow or key distribution that A2A does not define. The server must authenticate every request and then apply its own authorization, which can vary by skill or OAuth scope. Production deployments must use TLS.
A2A also covers credentials that come up mid-task. If the billing agent needs consent to touch a payment account, it moves the task to TASK_STATE_AUTH_REQUIRED and the client resolves the request. The specification says such credentials should reach the agent out of band, because passing them in band exposes them to every agent in a chain.
The protocol leaves identity to you. The enterprise guide states that A2A payloads carry no user or client identity, so identity lives at the HTTP layer. Whether the billing agent sees the support agent's service account or the person behind the request depends on the token you issue. A remote agent that sees only a shared service token cannot authorize or audit per user.
A2A vs MCP: where each one stops
MCP stops at the tool boundary, and A2A starts at the agent boundary. With MCP, the caller's model sees each tool's name, description, and input schema, and plans every call itself. With A2A, the caller hands over a goal in a message, and the remote agent works out how to reach it.
| Inline tool call | MCP server | A2A agent | |
|---|---|---|---|
| What the caller sees | A function schema in its own code | Tool definitions with JSON Schema, listed by the server | An agent card with skills described in prose |
| Who plans the steps | The caller's model | The caller's model | The remote agent |
| State between calls | None | None in the core protocol, or a task handle with the Tasks extension | A task with a lifecycle, and a context across tasks |
| Best fit | One application with a few tools it owns | The same tools in several hosts | An agent that another team or vendor operates |
The two protocols stack. In the A2A project's own comparison, an application uses A2A to talk to other agents, and each agent uses MCP internally to reach its tools.
Long-running work used to be a clean dividing line, and it no longer is. MCP's current revision, 2026-07-28, moved tasks into an official Tasks extension: a server returns a durable handle, and the client polls for the result. Duration alone does not call for A2A. The line that holds is who does the planning and who owns the internals.
When a tool call or an MCP server is enough
A tool call or an MCP server is enough whenever your team owns both sides, or the capability has a fixed input and output.
- If one application owns the capability, define it as a tool. Tool calling covers that loop.
- If several hosts need the same capability, wrap it in an MCP server.
- If you want a subagent with its own prompt and context, call it in process. An agent loop can run another loop as a function, with no network protocol between them.
A2A earns its complexity under different conditions:
- The other agent belongs to another team or vendor, which will not or should not expose its tools and prompts.
- The work needs negotiation: clarifying questions, approvals, or an authorization in the middle.
- Agents built on different frameworks must interoperate without a custom adapter for each pair.
Each A2A hop has costs. It puts a second agent loop behind a network request, with model calls, latency, and token spend that the caller cannot see or cap. The interface is prose in both directions, so results vary more than a typed tool result and are harder to test. A task that sits in working may be slow, stuck, or waiting on a tool the caller does not know exists. And a trace ends at the boundary unless both sides propagate trace context, which agent observability depends on.
Start with the cheapest option that fits. Move a capability behind A2A when its ownership changes.
What trusting a remote agent means
Trusting a remote agent means letting text produced by someone else's model into your agent's context. It arrives through the card and through the output.
Skill descriptions are written by the remote party, and the calling model reads them to choose an agent. A card that overstates its skills can win work it should not get, and a description can carry instructions as easily as a tool description can. TLS proves which domain served the card, and a signature proves who published it. Neither proves that the agent behaves as described.
The output is the larger exposure. Status messages and artifacts are model output, and the remote agent may have read web pages, tickets, or documents that an attacker controls. To the calling model, that is indirect prompt injection with one more hop.
A hostile agent is worse than a hostile document, because it can adapt over several turns. Palo Alto Networks' Unit 42 demonstrated this in October 2025 as agent session smuggling: a rogue remote agent slips extra instructions into a multi-turn session, between a legitimate request and its response. The researchers state that this is not a vulnerability in A2A. It follows from any stateful protocol in which one agent trusts another by default.
The defenses are the ones that work for tool results, applied one level up.
- Keep an allowlist of approved agents, and review a changed card the way you would review a changed dependency.
- Treat everything a remote agent returns as data. It must not change the calling agent's instructions or tool permissions.
- Require human approval before the calling agent writes, sends, or pays on the strength of a remote agent's answer.
- Send the minimum. Whatever goes into a message leaves your boundary, so strip personal data and secrets the task does not need.
Where an agent gateway fits
An agent gateway is a proxy between callers and A2A agents. It holds the list of registered agents, decides which callers may reach each one, and logs every operation, which is what an MCP gateway does for tool calls. The A2A project's enterprise guide recommends API management in front of A2A servers that cross organizational boundaries.
Bifrost, an open-source AI gateway by Maxim AI, is one implementation. As an agent gateway, it supports A2A and does four jobs:
- Registration. You register an existing agent by its agent card URL. Callers then fetch the card from the gateway, which rewrites the endpoints and authentication requirements so that discovery leads back through the gateway.
- Access control. Grants decide which virtual keys may call each agent, and an agent grant does not authorize that agent's later model or tool calls. Bifrost Enterprise adds grants through access profiles and projects.
- Routing. It accepts JSON-RPC, REST, and gRPC, and the client-facing and agent-facing transports can differ.
- Logs. Agent Logs group operations into sessions by A2A context ID and show each task's stream events and artifacts, next to the model and tool calls from the same session.
That last join works only if the agent sends its own model and tool calls through Bifrost with correlation headers. agentgateway, one of AAIF's own projects, routes A2A traffic as well.
A gateway narrows who can call whom and records what was said. It does not change what a remote agent's output is worth.
Frequently asked questions
What is the A2A protocol?
The A2A protocol, short for Agent2Agent, is an open standard that lets one AI agent discover another agent, send it work, and receive the result without seeing its tools, memory, or prompts. An agent publishes an agent card that describes its skills, and callers send messages that the agent turns into trackable tasks. As of November 2026 the current release is version 1.0.
What is the difference between A2A and MCP?
MCP connects an agent to tools and data: the caller's model reads each tool's schema and plans every call. A2A connects an agent to another agent: the caller sends a goal as a message, and the remote agent plans the work and reports back through a task. Neither replaces the other, because an agent reached over A2A typically uses MCP for its own tools.
What is an agent card in A2A?
An agent card is a JSON document that an A2A server publishes to describe itself. It lists the agent's name, skills, endpoints, optional capabilities such as streaming and push notifications, and the authentication schemes it accepts. The standard location is /.well-known/agent-card.json on the agent's domain.
Is A2A owned by Google?
No. Google launched A2A in April 2025 and moved it to the Linux Foundation in June 2025. Since August 2026 it has been a hosted project of the Agentic AI Foundation, directed by a technical steering committee of nine companies. The specification is open source under the Apache 2.0 license.
Is the A2A protocol secure?
A2A specifies transport and identity controls: TLS in production, authentication on every request, and optional signed agent cards. It does not make a remote agent's output trustworthy. Text returned by another agent can carry injected instructions, so the calling side still needs an allowlist of approved agents and human approval for consequential actions.
Sources
- 01Agent2Agent (A2A) Protocol SpecificationA2A Protocol
- 02A2A and MCP: detailed comparisonA2A Protocol
- 03Agent discovery in A2AA2A Protocol
- 04Enterprise implementation of A2AA2A Protocol
- 05a2aproject/A2A releasesGitHub
- 06Agent2Agent (A2A) governanceGitHub
- 07A2A joins AAIF's open agentic stackAgentic AI Foundation
- 08Linux Foundation launches the Agent2Agent Protocol ProjectLinux Foundation
- 09When AI agents go rogue: agent session smuggling attack in A2A systemsPalo Alto Networks Unit 42
- 10Changelog, revision 2026-07-28Model Context Protocol
- 11Tasks extensionModel Context Protocol
- 12Agent GatewayBifrost docs