Shows how a large commerce platform exposes site actions to agents via WebMCP, including co-browsing checkout with buyer confirmation. Useful for anyone designing agent-facing web surfaces.
Key takeaways · AI-distilled
Shopify's first WebMCP attempt, mirroring its server-side Model Context Protocol (MCP)A published agreement for an AI application to discover what a separate program offers and ask it to run one of those offerings.Full definition → tools in the browser, was wrong: an agent adding to the cart did not update the storefront UI, so the server cart and the cart the buyer saw drifted apart. It moved the tools to Standard Actions to keep them in sync.
In Shopify's Checkout benchmark, WebMCP ran 2.7x faster and 58% cheaper than Browser automationProgrammatic operation and inspection of a rendered web interface.Full definition →, and succeeded in 60 of 60 attempts versus 56 of 60.
Simpler agents kept calling add_to_cart repeatedly despite descriptions telling them not to. Shopify fixed it by changing the tool's shape: UCP-style create_cart and update_cart take and return the full cart state, so a repeated call is a no-op.
Shopify concluded a tool's shape steers agents more reliably than its description, and notes some agent vendors treat descriptions that tell the agent what to do as prompt injectionAn attack that hides instructions in content an AI will read — a webpage, email, or document — tricking it into following the attacker instead of the user.Full definition →.
Open gaps Shopify lists: no signal on whether the agent finished the user's task, no browser-enforced human confirmation, no way for an in-browser agent to prove it acts for a real user, and tools torn down on every page navigation.
Terms in this piece · Glossary
Model Context Protocol (MCP) — A published agreement for an AI application to discover what a separate program offers and ask it to run one of those offerings.
embedding — A list of numbers representing a piece of text's meaning, so that similar meanings end up numerically close and can be searched.
Browser automation — Programmatic operation and inspection of a rendered web interface.
prompt injection — An attack that hides instructions in content an AI will read — a webpage, email, or document — tricking it into following the attacker instead of the user.