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.

Hardal
7 min read
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.

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.

ProtocolMaintainerLayerWhat it leaves for measurement
MCP (Model Context Protocol)Open specification, created by AnthropicAgent to tools and dataTool calls in the server's own logs. No session, no page view.
A2A (Agent2Agent)Open specification, introduced by GoogleAgent to agentTask messages between agents. Nothing reaches your analytics by default.
ACP (Agentic Commerce Protocol)OpenAI and StripeAgent to merchant checkoutA checkout session and order, with optional affiliate_attribution.
UCP (Universal Commerce Protocol)Google with retail partnersDiscovery, cart, checkout and order lifecycleAn order with an optional attribution snapshot and the calling platform in the UCP-Agent header.
AP2 (Agent Payments Protocol)Google, now with the FIDO AlliancePayment authorizationSigned 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, the UCP reference dated 2026-08-25, the ACP repository, which still labels the spec as beta, and the AP2 project site. 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 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 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.

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 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. If you want to plan an agent ready measurement setup, book a demo.

FAQs
4 Questions

Frequently Asked Questions

What each agentic commerce protocol does, how they fit together, and which fields matter for attribution.

Are MCP, ACP, UCP and AP2 competing standards?
Mostly no. They sit at different layers. MCP connects an AI application to tools and data, A2A connects agents to each other, ACP and UCP define how an agent and a merchant run a checkout, and AP2 proves that a person authorized an agent to pay. One purchase can touch several of them.
Which agentic commerce protocol carries attribution data?
UCP has an optional attribution object on the checkout for campaign IDs, click IDs and source or medium markers, copied to the order as a read-only snapshot. ACP lets the agent attach affiliate attribution with provider, publisher and campaign identifiers. MCP and AP2 do not define marketing attribution fields.
Does a merchant need to implement every protocol?
No. Start with the surfaces your customers already use. A Shopify store may get UCP support through the platform, while a custom stack may implement ACP for ChatGPT product feeds. Measurement should stay protocol neutral by recording orders from the backend and storing any source fields as raw values.
What does ACP mean in agentic commerce?
In commerce, ACP means the Agentic Commerce Protocol maintained by OpenAI and Stripe. The same acronym is also used for unrelated projects such as Agent Client Protocol for code editors, so ask a vendor to spell it out.