Live data from Hacker News

The Agent2Agent Protocol (A2A)

developers.googleblog.com

51–60 of 293 posts

Re: The Agent2Agent Protocol (A2A)

#51
To put it simple:

A2A is for communication between the agents. MCP is how agent communicate with its tools.

Important aspect of A2A, is that it has a notion of tasks, task rediness, and etc. E.g. you can give it a task and expect completely in few days, and get notified via webhook or polling it.

For the end users for sure A2A will cause a big confusing, and can replace a lot of current MCP usage.

Re: The Agent2Agent Protocol (A2A)

#52
post #3

It’s frustratingly difficult to see what these (A2A and MCP) protocols actually look like. All I want is a simple example conversation that includes the actual LLM outputs used to trigger a call and the JSON that goes over the wire… maybe I’ll take some time and make a cheat-sheet. I have to say, the endorsements at the end somehow made this seem worse…

Agreed. At the end of the day we are talking about RPC. A named method, with known arguments, over the wire. A simple HTTP request comes to mind. But that would just be too easy. Oh wait, that is what all of these are under the hood. We are so cooked.

    from fastmcp import FastMCP

    mcp = FastMCP("Demo ")

    @mcp.tool()
    def add(a: int, b: int) -> int:
        """Add two numbers"""
        return a + b
This is an example of fastmcp. Notice anything? Replace 2-3 lines of code and this is a Flask or FastAPI application. Why are we not just going all-in on REST/HATEOAS for these things? My only hunch is that either 1. the people designing/proselytizing these "cutting edge" solutions are simply ignorant to how systems communicate and all the existing methods that exist, or 2. they know full well that this is just existing concepts with a new shiny name but don't care because they want to ride the hype train and take advantage of it.

Re: The Agent2Agent Protocol (A2A)

#53
post #20

Do you know real use cases of agents? Actually used and that have been using for a while. Not just for curiosity. I read about them only for hypothetical scenarios. Is it a real thing?

That depends very much on which of the dozen+ definitions of "agent" you are using.

I think Anthropic does a good job of nailing it down to two definitions, one of which is very commonly referred to as agents but more appropriately called _workflows_, and this is the vast majority of what you'll see in the wild.

https://www.anthropic.com/engineering/building-effective-age...

Re: The Agent2Agent Protocol (A2A)

#54
post #36

With all this agents talks, maybe I should dust off my old Tcl books on Agent Tcl. https://digitalcommons.dartmouth.edu/dissertations/62/

That looks interesting from abstract. Can you please explain how these two can be interconnected ?

Back in the late 90's, during one of the previous AI waves, there was this idea of autonomous agents, where one would communicate by sending code snippets or bytecode if using something like Java, which would trigger tasks on remote agents that would process those requests on their own somehow, and the transmited code snippets would be extensible logic.

As far as I can remember, never really left the research lab, with a few books and papers published on the matter.

Everything old is new again.

Re: The Agent2Agent Protocol (A2A)

#55
My current understanding:

MCP - exposes prompts, resources and tools to a host, who can do whatever they like

A2A - exposes capability discovery, tasks, collaboration?/chat?, user experience discussions (can we embed an image or or a website?).

High-level it makes sense to agree on these concepts. I just wonder if we really need a fully specified protocol? Can't we just have a set of best practices around API endpoints/functions? Like, imo we could just keep using Rest APIs and have a convention that an agent exposes endpoints like /capabilities, /task_status ...

I have similar thoughts around MCP. We could just have the convention to have an API endpoint called /prompts and keep using rest apis?

Not sure what I am missing.

Re: The Agent2Agent Protocol (A2A)

#56
post #19

I just published some notes on MCP security and prompt injection. MCP doesn't have security flaws in the protocol itself, but the patterns it encourage (providing LLMs with access to tools that can act on the user's behalf while they also may be exposed to text from untrusted sources) are rife for prompt injection attacks: https://simonwillison.net/2025/Apr/9/mcp-prompt-injection/

> the patterns it encourage

Let's start with fixing the examples...

https://github.com/modelcontextprotocol/servers/issues/866

Re: The Agent2Agent Protocol (A2A)

#57

This doesn't say anything about the protocol other than what would be obvious (a JSON card describing the agent's schema) and that it will use http (such a safe, but low-effort bet). I was hoping for more, but with so many cooks in the kitchen, I guess I'm not surprised.

The way they're framing this attempts to stave off disintermediation, which is the real threat.

What do you mean? Who is the intermediary in this context? Google? The threat that people will use LLMs to get their fake information without needing to use google to find sites with fake reviews?

Re: The Agent2Agent Protocol (A2A)

#58

Do you know real use cases of agents? Actually used and that have been using for a while. Not just for curiosity. I read about them only for hypothetical scenarios. Is it a real thing?

agents are just the rebranded version of automated workflows and sometimes its an LLM doing the validation

Re: The Agent2Agent Protocol (A2A)

#59
From the blog post it’s hard to tell in which areas it’s better or worse than MCP.

The one that will win — will be the one that gives devs the confidence to run in full “yolo/autonomous” mode. That’s the future.

Re: The Agent2Agent Protocol (A2A)

#60
post #32

on it's face this kind of seems dumb. aren't agents supposed to be adaptable enough to handle any protocol?

1. Agents don't know the APIs. This is a way for you to declare them. 2. You get to decide what functionality you want to expose agents to. 3. An API enables reliable tool use.

The APIs have docs. The agent can go read them and build against them.
Post reply on HN