Urgent.News

What's breaking now, across hundreds of outlets.

AI

I measured how well an AI assistant shops through MCP. Here is what broke.

An assistant that shops for a buyer can fail in two ways: it finds the wrong part, or it finds the right part and then reasons badly about it. Most demos show neither. So I wrote a small open-source harness that measures both, against any store that speaks MCP over HTTP: mcp-commerce-evals (Rust, MIT). What is in it A reference store : an MCP server with four tools ( search_products , get_product…

I conducted a study on how well an AI assistant performs when shopping through the MCP (Multi-Channel Platform) using a small open-source harness called mcp-commerce-evals. This harness, written in Rust and licensed under MIT, measures two potential failure points: incorrect part selection and poor reasoning about the selected part.

The harness includes a reference store with four tools for interacting with a catalog of 500 bicycle parts from 14 fictional brands. The store offers a variety of queries, such as exact part numbers, plain descriptions, compatibility checks, typos, synonyms, filters, adversarial queries, and non-existent items. The goal was to evaluate the assistant's performance using 44 different queries from these categories.

Two levels of evaluation were conducted: tool-level and assistant-level. Tool-level involved directly calling the search tool and reporting metrics like hit@1, hit@5, Mean Reciprocal Rank (MRR), recall@10, and normalized Discounted Cumulative Gain (nDCG@10) with 95% intervals. Assistant-level allowed a model to shop through the tools and score the final part ID it selected. The assistant used Claude Haiku and ran 3 trials per query, resulting in 132 total runs.

The results showed that the tool-level performance was decent, with hit@1 at 0.90, hit@5 at 0.93, and MRR at 0.91. However, when the assistant was added to the mix, the pass@1 (percentage of correct part selection) improved to 0.94. One notable miss was the STO-HT-1O64 part, which was incorrectly ranked 9th due to the AI misreading the letter "O" as a zero in the part number.

Another example demonstrated how the assistant's search results could be misleading. When asked for an "11-speed chain," the top result was a chain lube, and when searching for a hub, the axle part appeared first. These examples highlight the assistant's struggles with category understanding and proper prioritization of search results.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

More from Wednesday 25 November →