> Site index: https://usehardal.com/llms.txt
> Every content route also serves markdown at <url>.md

# Agentic Commerce Protocols: MCP, ACP, UCP and AP2 Explained

Agentic commerce protocols explained for marketers: what MCP, ACP, UCP and AP2 each do, which fields carry attribution, and what to log for measurement.

Source: https://usehardal.com/blog/agentic-commerce-protocols-mcp-acp-ucp-ap2
Published: 2026-11-23T09:00:00
Updated: 2026-11-23T09:00:00
Author: Hardal
Category: Agentic Commerce

---

**Agentic commerce protocols** are the open specifications that let an AI agent discover products, check out and pay for a person. MCP connects agents to tools, ACP and UCP define the agent to merchant checkout, and AP2 proves the person authorized the payment. For marketers, the useful question is which of them carries source and campaign data into the order.

Most explainers stop at what each acronym stands for. This guide adds the measurement view: what each protocol leaves behind in your systems, which fields you can store, and where attribution is simply not defined. If you are new to the topic, start with our overview of [agentic commerce and the orders AI agents place](https://usehardal.com/blog/agentic-commerce).

## The four layers in one table

Think of an agent purchase as four questions. How does the agent reach tools and data? How does it build a cart and check out? How does the merchant know the agent is trusted? How is the payment authorized? Each protocol answers one of them.

| Protocol | Maintainer | Layer | What it leaves for measurement |
| --- | --- | --- | --- |
| MCP (Model Context Protocol) | Open specification, created by Anthropic | Agent to tools and data | Tool calls in the server's own logs. No session, no page view. |
| A2A (Agent2Agent) | Open specification, introduced by Google | Agent to agent | Task messages between agents. Nothing reaches your analytics by default. |
| ACP (Agentic Commerce Protocol) | OpenAI and Stripe | Agent to merchant checkout | A checkout session and order, with optional `affiliate_attribution`. |
| UCP (Universal Commerce Protocol) | Google with retail partners | Discovery, cart, checkout and order lifecycle | An order with an optional `attribution` snapshot and the calling platform in the `UCP-Agent` header. |
| AP2 (Agent Payments Protocol) | Google, now with the FIDO Alliance | Payment authorization | Signed mandates that prove intent. Useful for fraud and disputes, not for channel credit. |

The specifications change often. The table reflects the [MCP specification dated 2026-07-28](https://modelcontextprotocol.io/specification/2026-07-28), the [UCP reference dated 2026-08-25](https://ucp.dev/2026-08-25/specification/reference/), the [ACP repository](https://github.com/agentic-commerce-protocol/agentic-commerce-protocol), which still labels the spec as beta, and the [AP2 project site](https://ap2-protocol.org/). Check the version you integrate against before you build reports on it.

## MCP: how agents reach your tools

MCP is a JSON-RPC protocol between hosts (AI applications), clients (connectors inside the host) and servers (services that expose tools and data). A merchant can expose inventory lookups or order status through an MCP server, and an analytics vendor can expose reports the same way.

MCP does not buy anything. When an agent calls a tool on your MCP server, the only record is the call in that server's logs. No browser loads, so no tag fires. If you run an MCP server for customers, log each tool call with the client name, the tool, the arguments that are safe to keep, and a timestamp. That log is your only view of agent demand at this layer.

A2A is MCP's sibling for agent to agent work. The [A2A project](https://a2a-protocol.org/latest/) describes it this way: MCP connects an agent to tools and data, while A2A connects it to other agents. For a marketer, A2A matters when a shopping agent hands a task to a merchant's own agent. That handoff is also invisible to a client side tag.

## ACP: the OpenAI and Stripe checkout

ACP defines how a business receives a purchase request from an agent and how a payment credential is passed without exposing the card. The [ACP site](https://www.agenticcommerce.dev/) says the merchant stays merchant of record, and that businesses can publish their checkout through a traditional API or MCP. Stripe was the first compatible payment provider, with its Shared Payment Token.

For measurement, the important field is `affiliate_attribution`. The agent can attach it when it creates or completes a checkout, with a provider, publisher ID, campaign ID and token. It was designed to credit affiliate publishers, so do not expect UTM style source and medium values. Store whatever arrives on the order record as raw fields.

Remember that ChatGPT stopped offering in-chat Instant Checkout in March 2026 and now sends shoppers to the merchant to pay. ACP product feeds still decide what ChatGPT shows. Those orders reach you as referred visits, which is a different measurement problem covered in our guide to [ChatGPT referral tracking](https://usehardal.com/use-cases/chatgpt-referral-tracking).

## UCP: discovery, cart and order lifecycle

UCP covers more ground than ACP: product discovery, cart, checkout and post-purchase updates. Merchants publish a business profile that agents read, and the platform identifies itself in a `UCP-Agent` header that points to its profile.

UCP is the protocol that thinks most clearly about marketing attribution. In the 2026-08-25 reference, the checkout accepts an optional `attribution` object for campaign identifiers, click IDs and source or medium markers, described as the same parameters platforms pass in URL query strings in browser flows. On the order, `attribution` is a read-only snapshot of the originating checkout. The order also carries `adjustments` for refunds, returns and cancellations, which you need for net revenue.

Optional is the key word. If the platform does not send attribution, nothing in UCP will reconstruct it.

## AP2: proof that a person authorized the agent

AP2 answers a payments question, not a marketing one. It uses verifiable digital credentials called mandates. A checkout mandate records the items and terms negotiated between agent and merchant. A payment mandate authorizes payment against a specific instrument and is shared with the credential provider and the payment networks. The [AP2 site](https://ap2-protocol.org/) describes it as an extension for A2A and UCP, with work on other integrations in progress.

Mandates give you a cryptographic audit trail for disputes. They do not tell you which campaign created the demand. Treat a mandate ID as a join key between the order and the payment record, not as a channel.

## What to log, protocol by protocol

You do not need to pick a winning protocol to measure agent orders. You need a record that survives whichever protocol delivered the order. Here is the minimum we recommend storing on every agent originated order event:

1. **Order ID and created timestamp** from your backend, not from a browser tag.
2. **Protocol and version**, for example `ucp/2026-08-25` or `acp/beta`, so you can re-map history when a spec changes.
3. **Calling platform**, from the `UCP-Agent` profile URL or the ACP integration that created the session.
4. **Raw attribution payload**, the UCP `attribution` object or the ACP `affiliate_attribution` fields, stored unmodified.
5. **Payment references**, such as the AP2 mandate ID or the payment token type, for joins with finance data.
6. **Post-order adjustments**, so refunds and cancellations reduce the revenue you report and send.
7. **Consent state** for any customer data you later share with ad platforms.

Do not map raw fields into channels at collection time. Do it in your warehouse or reporting layer, where you can change the rule later.

## Where the protocols stop

None of these protocols tells you what happened inside the conversation. You will not see the prompt, the alternatives the agent rejected, or the ad that created the demand weeks earlier. When a protocol leaves attribution empty, any tool that claims to fill it is modeling, and should say so.

What you can do is make sure every agent order lands in first-party data with its source fields intact. Hardal is the first-party data and agentic analytics platform. We collect orders server-side from your backend, keep raw protocol fields on the event, and route conversions to ad platforms through [our destinations](https://usehardal.com/destinations). If you want to plan an agent ready measurement setup, [book a demo](https://usehardal.com/contact/demo).
