Particular Audience Particular Audience
Talk to us

AI for search, personalisation and retail media

A different store for every customer.

Bring what each shopper wants together with what your business needs.

Search, recommendations, retail media and promotions across your digital store and AI shopping experiences.

MCP isn't dead. Commerce has been building it wrong. | Particular Audience

What Cloudflare's Code Mode teaches retailers about MCP architecture: fewer, sharper tools, search as the front door, and commercial decisions made and governed on the retailer's side.

By James Taylor, 30 November 2026.

Every few months someone declares MCP dead. This time the claim came with an engineering argument behind it.

Cloudflare said, in effect, that we have all been using MCP wrong. [1] They did not abandon the protocol. They changed its shape. That distinction matters a great deal for retailers deciding how agents should reach their catalogue, prices and checkout.

As Celia Lozano Grijalba put it in her Data Pills piece, MCP is still the protocol. Code Mode changes how agents use it. [6]

The question is not whether to use browsers, MCP or APIs. It is how few, how sharp and how commercially complete the calls an agent makes to you can be.

What Cloudflare found

Cloudflare's argument rests on three bottlenecks in the usual way MCP servers are built. [1] [2]

First, context bloat. Standard servers expose every API action as its own tool, each with a schema and description. All of those definitions are loaded into the model before it does any work.

Cloudflare reports that exposing its platform's 2,500+ API endpoints as individual MCP tools needed about 1.17 million input tokens just to load the tool definitions. [2]

Second, wasteful round trips. In a normal tool loop, every result goes back through the model so it can decide the next step. Chaining steps, or passing large payloads, means the model keeps re-reading intermediate data.

Third, connection overhead. Early MCP relied on stateful sessions designed for desktop use. Running that on the web added sticky sessions and replay. The stateless 2026-07-28 version of the specification has since addressed much of this. [3]

The fix: Code Mode

Cloudflare's answer was two tools instead of thousands. One, search, finds the relevant capability on demand. The other, execute, runs a short piece of code that chains the calls, handles pagination and filters the data inside an isolated sandbox. Only the final answer returns to the model. [1]

Cloudflare reports this cut the upfront cost for its whole API from about 1.17 million tokens to roughly 1,000, a reported 99.9% reduction in input tokens. [2]

Traditional MCP: Model, then Tool 1, then Model, then Tool 2, then Model, then Tool 3, then Result.

Code Mode: Model, then Generated code, then Several operations, then Result.

Retailer search surface: Agent, then One search call, then Ranked, priced answer.

A tool per endpoint: get_product, list_variants, check_stock, get_price, get_promo, list_reviews, add_to_basket, ...and dozens more. Every definition loaded up front. Every result back through the model.

Cloudflare Code Mode: search(), execute(). Find the capability, run code in a sandbox, return only the final answer.

Retailer agent surface: search(), act(). One ranked, commercially complete answer, then thin links to what the site already does.

Why does it work? Models have been trained on enormous amounts of real code, while tool calling needs specialised training. Writing one short procedure plays to their strengths; stepping through a long chain of separate calls does not. [6] Cloudflare also offers a Code Mode SDK so other MCP servers can adopt the same pattern. [5]

The insight underneath is simple. Models are better at writing a short procedure than at stepping through a long chain of tool calls, and the work is cheaper when it happens next to the data rather than inside the model.

Commerce has the same problem

Retail has been building agent access in exactly the shape Cloudflare moved away from. Some retailers expose a long list of granular tools. Others leave agents to browse pages, or to reason over a product feed they have handed over.

Browser agent: Reads pages one at a time. Slow, fragile, and the shopper waits.

MCP with a tool per endpoint: Loads every tool definition up front and sends every result back through the model.

Direct retailer search: One call returns ranked products with price and availability, decided by the retailer.

Each path pushes work onto the agent. Browsing is slow and fragile. A tool per endpoint bloats the context. Reasoning over a raw feed means the agent, not the retailer, decides ranking and price. We set out the wider picture in MCP 2.0 and the commerce behind it.

A publicly shared exchange shows where agents are heading. A shopper asked Muse for deals on Walmart. The assistant did not ask Walmart's own assistant, Sparky. It called search directly through a connector, then checked product details to confirm the was-prices. [4]

Shopper: Find cyber monday deals for me on Walmart.

Shopper: Did you ask Sparky for that or no?

Assistant: No. I ran 7 search_products queries, then 19 get_product_details checks to verify the was-prices.

Assistant: Sparky's for questions and comparisons. Deal hunts go through search.

When the shopper's agent already knows the shopper, it wants your search, not your chatbot.

That is not a criticism of onsite assistants. The assistant itself drew the line: questions and comparisons on one side, deal hunts through search on the other. The efficient path wins, and the efficient path is search.

Six lessons for MCP architecture in commerce

Fewer, sharper tools: A tool per endpoint fills the agent's context before it starts. Expose a small set of capabilities that each do a whole job.

Search is the front door: Agents go straight to search when they can. Make one search call return a ranked, complete answer, not raw rows to reason over.

Decide on your side: Ranking, merchandising, sponsored results and the approved offer price are settled before the answer leaves you, not left to the agent.

Thin links to what exists: Product details, basket, Price Beat code and checkout through UCP or ACP. Link to the site functions you already run; do not rebuild them.

Separate assistant from direct path: Your onsite assistant is good for advice and comparisons. Search, price, stock and checkout only need a direct link.

Govern what agents can do: A sandbox is not enough. You set what agents may do: Price Beat issues only an approved offer, checkout stays with you through UCP or ACP, and payment needs the shopper's confirmation.

Put together, the lessons describe the retail version of Code Mode: a search call and an act call. We set out the same idea on the Agentic Commerce page.

What this means for retailers

Feeds still matter. They help agents and shopping surfaces index what you sell, and they can carry sale prices and bundles. But a feed alone hands the commercial decisions to someone else. The retailer risks becoming a warehouse: carrying the stock and fulfilment while the agent's operator decides what is shown and at what price.

The stronger position is feed plus a direct agent surface. The feed gets you indexed. The surface gets you chosen, because the answer the agent receives already reflects your ranking, your merchandising, your retail media and your approved offer price.

Checkout stays where it belongs: through UCP or ACP, or your own site. You remain the merchant of record.

Governance matters as much as speed. Letting agents act needs authorisation, audit, limits and approval for sensitive steps, not only a sandbox. [6] In retail that means the retailer decides what agents may do, and every offer and order runs through rules the retailer has set.

Where Particular Audience fits

The one search call only works if the decisions behind it are already made. That is the part we run.

Adaptive Transformer Search finds the right product and variant in your live catalogue, with retailer-governed ranking, merchandising and sponsored results. Its MCP server exposes that as a small set of tools rather than one per endpoint.

Price Beat returns your approved offer price and a code your checkout recognises. Trade Media brings supplier-funded promotions into the offer. Profit Rate Optimisation keeps margin in the ranking.

Together they turn the agent's chain of reasoning into one commercially complete answer. The Agentic Commerce Flywheel shows how the pieces reinforce each other, and AEO, GEO and SEO covers how agents find you in the first place.

The direction of travel is clear: tool calling, then MCP, then code execution, then governed agentic workflows. [6] For retail, the winners will not be the ones who expose the most tools. They will be the ones who govern the workflow.

Sources

1. Cloudflare: Code Mode, the better way to use MCP

2. Cloudflare: Code Mode MCP server for the Cloudflare API

3. Model Context Protocol: versioning

4. Public post by @juokaz on X, 30 November 2026

5. Cloudflare Code Mode SDK (npm)

6. Celia Lozano Grijalba, Data Pills: Is MCP Dead? Cloudflare Just Changed the Rules of AI Agents with Code Mode (LinkedIn, 22 November 2026)