Zum Inhalt springen
Topics

Updated

Agent2Agent (A2A), explained

How A2A helps independent agents discover one another, exchange messages, and coordinate work as tasks.

Agent2Agent (A2A) is an open protocol for communication between independent AI agents. It lets an agent discover another agent's capabilities, send it a message, and coordinate work through a task that can report progress and return a result.

A2A is useful when the job is to ask another agent to do work. MCP is useful when an AI application needs context or a specific callable capability. The protocols can complement each other.

How A2A works

An Agent Card describes how to reach an agent and the capabilities it offers. A caller sends a message to the agent; when the work needs more than an immediate reply, it can be represented as a task with a status and result. The card describes an interface, but it does not grant access. Authentication and the receiving organization's policy still apply.

This task model gives the calling agent a way to follow work that takes time, request an update, or collect an artifact. A2A defines the communication shape; each product decides which agent capabilities it makes available.

A2A in ContextRocket

ContextRocket supports A2A 1.0 over JSON-RPC. The platform /a2a endpoint supports public organization discovery. For a direct connection, use the typed company or person endpoint and its matching Agent Card:

  • Company: https://api.contextrocket.com/company/{handle}/a2a
  • Person: https://api.contextrocket.com/person/{handle}/a2a
  • Agent Card: https://api.contextrocket.com/{kind}/{handle}/agent-card.json

The typed path selects the organization boundary. It does not allow a caller to choose a different organization in a message. Public requests can use only information the organization has made public; private context and authorized actions require the appropriate identity and policy.

ContextRocket's task interface supports sending messages, streaming updates, reading and listing tasks, cancellation, and task subscriptions. An authorized member may also receive an extended Agent Card. Push notifications are not currently advertised. The exact setup for a company or personal organization appears in Settings → Developer.

When to use A2A or MCP

Use A2A when an agent needs to discover another agent, ask it to do work, or follow a task. Use MCP when an AI application needs to read governed organizational context or call a permitted tool.

MCP A2A
Connects An AI application to a context server One agent to another agent
Common work Read context or call a permitted tool Send a message or coordinate a task
Main concepts Resources, prompts, and tools Agent Cards, messages, and tasks

An agent can use MCP to ground its work in an organization's context, then use A2A to delegate a task to another agent. The organization remains responsible for access and policy in both cases. See MCP, explained for the context and tool connection model.

Connect to an organization

Open Settings → Developer in the company or personal organization you want to use and copy the A2A address shown there. Use the setup instructions for your client and confirm the organization and handle before connecting.

The platform /a2a endpoint is for discovery. Use a typed company or person address for direct work with one organization; its Agent Card describes that agent's interface.

Further reading