Agent-to-Agent Protocols › Why agents need a protocol at all
Language AI HandbookAll chapters Before the mechanics, it is worth being precise about what breaks without a protocol. Suppose agent A wants agent B to do some work. The naive approach is for A to call B's HTTP endpoint with a natural-language instruction and get natural-language text back. This works in a demo. In production it produces a specific and predictable set of failures. Naming those failures precisely matters, because each one is the direct motivation for a specific piece of the protocol. When you see the discovery document later, or the task identifier, or the terminal-state model, you should recognize it as the remedy for one of these four diseases.
The first failure is capability ambiguity. A does not know what B is good at, what its limits are, or what input formats it accepts. Without a description, A must either be hand-wired to B (defeating the point of interoperability) or guess by probing B with sample requests (wasteful and error-prone). A protocol that mandates a discovery document lets A decide, programmatically, whether B is the right agent for a job before sending it work. In a world of two agents, hand-wiring is fine. In a world where an orchestrator has dozens of potential delegates from many vendors, guessing is untenable: every probe costs a network round trip and a possibly expensive model invocation, and every wrong guess wastes work on the wrong agent.
The second failure is task identity and correlation. If A sends B ten instructions in rapid succession, or retries a request that timed out, or B replies asynchronously an hour later, there is no reliable way to match responses to requests. A protocol assigns each task a stable identifier and requires responses to reference it. This is what makes retries, streaming, and long-horizon work possible at all. Without a correlation key, a retried request can silently duplicate work: B receives what it believes are two independent instructions and executes both, and A has no way to tell that the two results descend from a single intent.
The third failure is result structure. A natural-language reply must be parsed, and parsing free text is exactly the fragile operation that motivated structured tool calls in Function Calling. A2A artifacts carry typed parts such as text, a file, or structured data. The wire format defines those part types. The calling application still checks whether a result has the expected media type and content, including any schema it requires.
The fourth and most serious failure is disagreement about outcome. Did the task succeed? Is it still running? Was it canceled before it produced anything, or canceled after producing a partial result that is now stale? Without a shared lifecycle model, agent A and agent B can hold inconsistent beliefs about a single task indefinitely. Think about how costly that is: a caller waiting forever on a task it believes is still running while the agent has long since discarded it, or a caller treating a partial artifact as final because it never received a clean completion signal. The A2A lifecycle exists precisely to make "what state is this task in" a question with one answer that both sides agree on.
These four failures (capability, identity, structure, and outcome) map directly onto the four pillars of any serious A2A protocol: discovery, task references, artifacts, and lifecycle with terminal states. Everything else is elaboration. Keeping this mapping in mind is useful throughout the chapter: every section that follows is, in effect, the detailed answer to one of these four questions.
The mapping between the four failures and the four pillars is worth seeing at a glance, because the rest of the chapter elaborates one pillar at a time.
VisualizationOut [4]Expand

Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!