A2A agent cards
The Agent-to-Agent (A2A) protocol lets an autonomous agent find another autonomous agent and call it over JSON-RPC. Discovery hinges on a single well-known file: `/.well-known/agent-card.json`. Relevant whenever your service exposes agentic behaviour another agent might want to delegate to.
What it is
The Agent-to-Agent (A2A) protocol is an open standard for one autonomous agent to discover and call another. It was originally proposed by Google in 2025 and donated to the Linux Foundation later that year. It complements the Model Context Protocol: MCP exposes tools an LLM can call; A2A exposes a whole agent another agent can delegate to.
Discovery is deliberately small. An A2A-speaking service hosts a JSON manifest at the well-known URI /.well-known/agent-card.json. The manifest is the agent card — a self-describing document that names the agent, lists its skills, declares its capabilities, and points at one or more transport endpoints that speak the A2A wire protocol (JSON-RPC, gRPC, or HTTP+JSON).
The minimum field set is small and stable. Required fields per the spec are name, description, version, supportedInterfaces (each with url, protocolBinding, protocolVersion), capabilities, defaultInputModes, defaultOutputModes, and skills (each with id, name, description, tags). Optional fields cover provider, documentation URL, security schemes, JWS signatures, and an icon URL.
This site ships such a card as a worked example. The static manifest is at /.well-known/agent-card.json; the JSON-RPC endpoint is at mcp.specification.website/a2a/v1. It is intentionally minimal — message/send only, no streaming, no task lifecycle — and it wraps the same search and topic-fetch logic the MCP server already exposes.
Why it matters
- An agent card is the standard way for a calling agent to learn what you do, before any call is made. Without it, the calling agent has to be hard-coded against your service or guess from a UI.
- A2A is transport-agnostic: a single card can advertise JSON-RPC, gRPC, and HTTP+JSON endpoints in priority order. Clients pick the binding they support.
- It composes cleanly with MCP. An MCP server gives an LLM tools; an A2A card lets that whole LLM-plus-tools agent be reached by other agents. The two protocols are not alternatives.
- The card is a contract. Treat changes to
skills[].id,supportedInterfaces[].url, orcapabilitiesas breaking, and bumpversionaccordingly.
Adoption is early but accelerating. The protocol reached version 1.0 in March 2026. Treat A2A as optional for now — useful if your product is itself an agent or wraps one, overkill if it is a static brochure.
How to implement
- Build the card. Author a JSON document with
protocolVersion,name,description,version,provider,supportedInterfaces,capabilities,defaultInputModes,defaultOutputModes, andskills. Use the A2A specification as the field reference. Use camelCase keys throughout. - Pick a transport. JSON-RPC over HTTPS is the lowest-friction option and is what we ship here. gRPC is appropriate when you already speak gRPC; HTTP+JSON when you have an existing REST surface to wrap.
- Serve it at the canonical URI. Per RFC 8615, publish at
/.well-known/agent-card.jsonwithContent-Type: application/jsonand a sensibleCache-Control(an hour is fine; ETag is better). - Advertise it. Add a
Link: </.well-known/agent-card.json>; rel="service-desc"; type="application/json"response header so clients can discover the card without guessing the path. Add the same link to your/.well-known/api-catalogLinkset entry. See HTTP Link headers. - Ship the endpoint behind it. Do not publish a card that points at a non-existent URL. The first call most validators make is to the endpoint; a 404 there is worse than no card at all. At minimum, implement the
message/sendJSON-RPC method and return method-not-found for the rest. - Be honest about capabilities. If you do not support streaming, set
capabilities.streamingtofalse. The same goes forpushNotificationsandextendedAgentCard. Lying here breaks clients that probe before they call. - Sign the card if you care about provenance. A2A allows JWS signatures (
signatures[]); useful in curated registries, optional for direct discovery.
Common mistakes
- Publishing a card that points at a URL that 404s. Discovery validators check the URI; runtime agents check the endpoint. Both matter.
- Mixing up
agent-card.jsonwithagent.json. The canonical filename isagent-card.json— pick it, do not invent a redirect. - Claiming capabilities you do not implement. Setting
streaming: truewithout a workingmessage/streammethod is a contract violation, not a polite overstatement. - Treating the card as static when the agent evolves. Every change to skills or transports needs a
versionbump. - Forgetting the
Content-Type. A card served astext/plainwill be rejected by stricter clients. Serve it asapplication/json.
Verification
curl https://your-site.example/.well-known/agent-card.jsonreturns 200 withContent-Type: application/jsonand parses as JSON.- The JSON validates against the A2A schema for your
protocolVersion. Required fields are present;supportedInterfaces[0].urlresolves;skillsare non-empty. curl -X POSTagainstsupportedInterfaces[0].urlwith a minimalmessage/sendJSON-RPC body returns a JSON-RPC response (not an HTML error page).- The card appears in your
/.well-known/api-catalogLinkset and in theLinkresponse header on/. - A live test: connect the agent from a second A2A-speaking client and confirm at least one skill round-trips end-to-end.
Related topics
Sources & further reading
- A2A Protocol — Specification — A2A Project (Linux Foundation)
- A2A Protocol — Agent Discovery — A2A Project (Linux Foundation)
- a2aproject/A2A on GitHub — A2A Project
- RFC 8615 — Well-Known URIs — IETF