← All articles
8 min read

The Goal of MCP Tools in AI Ecommerce Agents

An AI chatbot that talks about your store is a curiosity. An AI agent that can do things — find products, change a cart, look up an order — is a salesperson. The piece in between is a small but load-bearing protocol called MCP, and a set of tools written against it. This post is about what those tools are for, why they matter, and how to think about which ones your store actually needs.

What MCP is, in one paragraph

MCP — Model Context Protocol — is a small open standard for letting a language model call functions on an external system. Think of it as a contract: the store says "here is what I can do — search the catalog, add to cart, check stock" — and the AI says "in plain English the shopper asked for X, here is the matching call." The model never touches the database directly; it only invokes the tools you expose. That separation is what makes MCP-powered agents reasonable to deploy in production.

Shopperasks in plain languageAI Agentpicks the right toolYour Storecatalog · cart · ordersquestionMCP tool calllive dataanswer + actionThe MCP contractModel never touches the database. Only invokes the tools you expose.
The MCP contract in one picture. The shopper talks in natural language; the AI picks the right tool from the catalogue the store has exposed; the store returns live data; the agent answers and acts.

What changes when the AI can act

Without MCP tools, a chat assistant has to send the shopper somewhere else for almost every interesting moment. "Sure, you can find that on our shipping page." "Add it to your cart from the product page." "Email support@ if your order is late." Every redirect is a chance to lose the shopper.

With MCP tools wired in, the same conversation collapses into a single flow. The shopper asks, the agent looks the answer up against live data, takes the next step (adds to the cart, applies a code, books a return) and the shopper never leaves the chat. That collapse is the actual goal.

The five jobs the tools do

Across stores on Shopify, Shopware, and Magento, the MCP toolkit that moves the needle breaks into five categories. Treat them as the minimum kit; everything else is optimization.

1. Catalog tools — "find the right thing"

Catalog tools turn fuzzy shopper intent ("something warm for a teenager, under $80") into a list of real SKUs from your live inventory. Two patterns matter: search (free-text matching against product titles, descriptions, and attributes) and filter (structured queries against price, size, color, availability).

Without catalog tools the agent will hallucinate products you do not sell. With them, every recommendation is a clickable item with the current price and stock level — anchored in your store, not the model's training data.

Catalog tools — search + filter🔍 "warm hoodie for a teenager, under $80"Cozy Hoodie$59in stockSherpa Fleece$72in stockLined Pullover$68low stockReal SKUs from live inventory — never hallucinated
Catalog tools translate fuzzy intent into real SKUs with current price and stock. Use them as the very first tools you wire up — they are the lowest-risk, highest-impact pair in the kit.

2. Cart tools — "help me buy this"

Cart tools let the agent add, remove, and update line items on the shopper's active cart — the same cart their mini-cart shows in the corner of the page. The keyword is same: when the agent adds an item, it appears in the shopper's storefront cart immediately. They do not have a separate "chat cart" they have to migrate at checkout.

Cart tools also unlock soft-close patterns. "If you take both, I can apply a 10% bundle discount" only works if the agent can actually apply the code rather than handing the shopper a coupon to paste.

Cart tools — same cart as the storefrontget_cartread current line itemsupdate_cartadd / remove / change qtyapply_discountbundle codes, promos🛒 CartCozy Hoodie × 1$59.00Slim Chinos × 1$48.0010% bundle discount−$10.70Total$96.30Same cart the mini-cart shows
Cart tools (get_cart, update_cart, apply_discount) connect the agent to the same cart the storefront uses. Without these, even great recommendations leak out of the funnel at the moment of purchase.

3. Knowledge tools — "answer questions about my store"

Knowledge tools — usually some flavor of search_policies or search_faqs — give the agent grounded answers about shipping, returns, sizing, materials, warranties, and the dozens of other things shoppers ask before they buy. The right pattern is retrieval over your published policy pages and FAQ content; the wrong pattern is putting that information in the system prompt where it will be stale within a week.

Done well, knowledge tools eliminate a category of support tickets entirely. "Do you ship to Norway?" gets answered in milliseconds, not hours, with the same wording as your policy page.

Knowledge tools — answer from your live policies💬 "Do you ship to Norway?"Shipping policypages/shippingReturnspages/returnsFAQ34 entriesRetrieval-grounded — when policy changes, the answer changes the same day
Knowledge tools sit on top of your published policies and FAQs — they keep the agent honest. When policy changes, the agent's answer changes the same day.

4. Customer tools — "recognize who I am"

Customer tools let a signed-in shopper get answers grounded in their account: their last order, their addresses, their favorite shipping speed. The right access model here is critical — the agent should never silently fish customer PII; it should only look at the shopper currently signed in, and only when that shopper asks. Shopify's Customer Accounts MCP nails this pattern: the shopper does a PKCE handshake from the widget, and the agent gets a scoped token that expires.

The friction this removes is huge. "What was in my last order?" goes from a multi-tab session to a one-line answer.

Customer tools — scoped to the signed-in shopperShoppersigns in via PKCEAI Agentreceives scoped tokenCustomer Accountsown orders · addressesauth codelookup_self🔒 token scopeonly this shopperexpires in 1h
Customer tools are scoped per shopper via a short-lived token. The agent can only see the data the signed-in user is allowed to see — never any other shopper's account.

5. Order tools — "where is my stuff?"

Most ecommerce support volume is post-purchase: "Where is my order?" "Can I change the address?" "I want to return this." Order tools — lookup_order, get_tracking, start_return — pull from the same order record the customer service team would, but available 24/7 and without a queue.

For guest orders (no account), the right design is order-number plus email — both required, neither bypassable — so the tools cannot be used to fish for someone else's order data.

Order tools — post-purchase, 24/7💬 "Where is my order #1042?"PlacedMon 14:02ShippedTue 09:18In transitWed 11:40Delivered— ETA ThuTracking · address change · returns — without a support ticket
Order tools surface tracking, address changes, and returns from the same order record support would see — without the support ticket. Scale-to-zero economics; 24-hour SLA without staffing a 24h team.

A worked example

The five categories compound. A real shopper exchange:

Five categories, one conversation, zero redirects. That is what a good MCP toolkit unlocks.

How to think about which tools to expose

More tools are not automatically better. Each tool added expands the agent's action surface, and every action surface is a place where the agent can make a mistake. A discipline:

Layered like this, MCP tools are not a black box — they are a deliberate, auditable surface. Operators can disable individual tools from the dashboard, see exactly which the agent called per conversation, and tighten the rope on anything that misbehaves.

How WisWes does it

WisWes ships with the five-category toolkit pre-wired against Shopify, Shopware, and Magento. Catalog search, cart writes, knowledge retrieval against your policies and FAQs, customer-account sign-in via PKCE, order lookup — all of them available on day one, with per-tenant overrides if you want to disable or rename them. The operator dashboard shows every tool call the agent made on every conversation, so when a shopper asks something weird you can see exactly what the agent reached for and why.

That is the practical goal of MCP tools in an AI ecommerce agent: not magic, but a small, well-defined set of actions that turn a chatbot into something that actually moves the order forward.

Turn questions into checkout.

WisWes drops into your store and guides shoppers from browsing to buying. 14-day free trial — no card.