# What is the Agent2Agent (A2A) protocol?

> First published 2026-12-02
> Source: https://viktor.com/learn/agent2agent-protocol

The Agent2Agent protocol, or A2A, is a set of rules that lets separate AI systems send work to one another. A2A defines how each side describes what it can do, tracks work and sends back results. A business can use the shared rules to connect systems built with different software. Each side can keep its inner workings private.

## How does one system hand work to another?

A support service needs billing to check a disputed invoice. Support must describe the work and learn whether billing can handle it. Then it needs a result it can read and use, even if the services run on different software.

The [A2A specification](https://a2a-protocol.org/v0.3.0/specification/) calls the side asking for work a client. The side doing the work is a server. Those terms describe roles in an exchange. A server is software that takes requests and sends back a response.

Version 0.3.0 defines these parts of the exchange:

1. Find the service. The client gets an Agent Card. This record lists what the service can do, its address and how to sign in.
2. Set up access. If the service requires sign-in, the client gets proof of identity through a separate process. The receiving service checks it and applies its access rules.
3. Send a message. The client sends the request and the facts needed for it. The message can hold text, files or data with named fields.
4. Track the work. If the response creates a task, the client gets its unique reference, called a task ID. The client uses that reference to ask for updates.
5. Get the result. The service can return messages and artifacts. An artifact is an output such as a report or a set of data.

A short exchange can return a message with no task. Work that needs time or more input can use a task. A reply isn't proof that the work is done. Check the type of response and what it says.

An Agent Card describes a service. It doesn't prove you should trust it. Clients can get cards from a known web address or a list of services, or have one set up in advance. A2A doesn't require a single public list.

## What happens when a task takes time?

A billing check can need a missing receipt before it can finish. A2A marks that pause through a task state, such as input required. The client can then ask for the receipt instead of telling the user the work is done.

A task can be submitted or in progress. It can finish, fail, be rejected or be canceled. A state can also signal that another identity check is needed, called authentication. The client must read the state before telling the user what happened.

For longer work, a client can ask for the task's current state. If both sides support it, the client can get a stream of updates over an open link. A service can also send updates to a web address the client supplies.

Those options describe how news of the task moves. They don't promise success. Check which methods both sides support and what happens if the link breaks before a result arrives.

## What is the difference between A2A and MCP?

A2A sets rules for separate systems to work on tasks together. Model Context Protocol, or MCP, sets rules for an AI app to access tools and context, the information the app uses.

A tool is a named action the app can request, such as looking up an invoice, then get a result back. An MCP resource is data the app can read, such as a file. A prompt is a template of messages or instructions the app can get for the model to use.

The [protocol comparison](https://a2a-protocol.org/v0.3.0/topics/a2a-and-mcp/) explains how they can work together. A system can ask another to do work through A2A while using MCP to access its own tools.

| Question | A2A | MCP |
| --- | --- | --- |
| What is the focus? | Work shared with another system | Tools and context for an app |
| How is the work described? | An Agent Card states what the service can do | Servers list tools and resources, plus prompts |
| What could happen in billing? | Request investigation of a disputed invoice | Look up an invoice through a connected tool |
| Does using it grant permission? | No, the service checks access | No, the app and service still check access |

MCP isn't limited to links that forget each exchange. The [MCP architecture](https://modelcontextprotocol.io/specification/2025-06-18/architecture) describes stateful sessions: a link can keep track of the exchange. The task-versus-tool focus is a better way to tell the protocols apart.

Choose by the kind of work to share, then check what each service offers. Another service can also offer a named action that the app can request as a tool.

## Which security decisions remain outside the protocol?

A2A uses standard web security practices. Authentication checks who is asking. Authorization decides what that user can do. The service doing the work applies its own access rules.

Use of the same protocol doesn't grant the right to send a refund or read each customer record. The service still has to enforce access rules. Ask whose identity the request uses and which records that user can reach.

Each side can keep its internal reasoning and tools private while using A2A. It still sends the contents of messages and results across the link. Check what those contain before sending private records outside the business.

## What would an invoice dispute exchange look like?

Consider a made-up support process using services that both support A2A. A customer says an invoice lists an item that never arrived.

Support checks that billing offers the right kind of work. It signs in and sends the invoice reference with the request. Billing starts a task but asks for proof of shipping. Support sends the missing record in a follow-up message.

Billing returns the finished check with reasons and source data. The task is done because the check is finished. Whether anyone can issue a refund depends on separate permissions and business rules.

Before you connect services, test that boundary. A report that suggests a refund and an action that sends money shouldn't become the same thing just because both use the same protocol.

## Common questions

### Does A2A replace the software inside each system?

No, A2A describes the exchange between systems, not a shared design inside each one. Each side can keep its own model and tools. Both sides still need to support the right protocol version and the type of content being sent.

### Is an Agent Card a security certificate?

No, an Agent Card describes the service and how to connect. The client still needs to check who is on the other end and set up access. Use the card to help make the link, not as proof that each requested action is safe.

### Does every A2A request create a task?

No, a service can send a message back without making a task. A task helps when work needs tracking over time or across messages. The client needs to handle both kinds of response, so it can't assume each reply will include a task ID.

## Related reading

[Model Context Protocol explained](/blog/what-is-model-context-protocol)

[Viktor's MCP server documentation](/docs/mcp-server)

[Viktor integration directory](/integrations)
