{"slug": "i-measured-how-well-an-ai-assistant-shops-through-mcp-here-is-what-broke", "title": "I measured how well an AI assistant shops through MCP. Here is what broke.", "summary": "A developer released mcp-commerce-evals, an open-source Rust harness that measures how well an AI assistant shops through an MCP-over-HTTP store, testing both tool-level search accuracy and end-to-end assistant reasoning. Against a generated catalog of 500 bicycle parts from 14 fictional brands, tool-level search scored hit@1 0.90, hit@5 0.93 and MRR 0.91 across 40 ranked queries, while an assistant layer (Claude Haiku, three trials per query, 132 runs) reached pass@1 0.94. The author notes the misses are the useful part — for example, a part number ranked ninth because the letter O was not read as a zero — and argues that any MCP endpoint on a real store needs a test set and a CI gate, which the CLI supports via exit-code thresholds like --min-hit5 and --min-mrr.", "body_md": "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](https://github.com/Vladimir-Pirotskiy/mcp-commerce-evals) (Rust, MIT).\n\n`search_products`, `get_product`, `check_availability`, `create_cart`) over a generated catalog of 500 bicycle parts from 14 fictional brands. Everything is invented, so you can run it in a minute without an account or a key.`no_match` for things the catalog does not sell. The expected ids come from catalog attributes, never from running the search.\n\n```\ncargo run --release -p reference-store\ncargo run --release -p mcp-commerce-evals -- --url http://127.0.0.1:8787/mcp\n```\n\nTool-level, 40 ranked queries: hit@1 0.90, hit@5 0.93, MRR 0.91. With an assistant on top (Claude Haiku, 3 trials per query, 132 runs): pass@1 0.94.\n\nThe misses are the useful part:\n\n`STO-HT-1O64` ranked 9th: the letter O is not read as a zero inside a part number. A buyer typing from a worn label does this all the time.\nNone of these show up in a demo where someone asks for \"a chain\".\n\n40 queries is small: one query moves a rate by 2.5 points, and for a kind of six queries the interval runs from 0.44 to 0.97. I wrote the catalog and the queries myself, so this shows that the harness measures, not that one search engine beats another. Latency is a loopback round trip to an in-memory index, not a production figure.\n\nIf you put an MCP endpoint on a real store, the assistant becomes one more buyer, and it needs the same thing a search page needs: a test set and a gate in CI. The CLI turns a score into an exit code (`--min-hit5`, `--min-mrr`, `--min-accuracy`), so a ranking regression fails the build like any other test.\n\nThe repo, the full tables and the caveats: [github.com/Vladimir-Pirotskiy/mcp-commerce-evals](https://github.com/Vladimir-Pirotskiy/mcp-commerce-evals). More of my work: [pirotskiy.com](https://pirotskiy.com/).", "url": "https://wpnews.pro/news/i-measured-how-well-an-ai-assistant-shops-through-mcp-here-is-what-broke", "canonical_source": "https://dev.to/pirotskiy/i-measured-how-well-an-ai-assistant-shops-through-mcp-here-is-what-broke-1hp", "published_at": "2026-11-25 18:34:30+00:00", "updated_at": "2026-11-25 18:44:40.922116+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools"], "entities": ["mcp-commerce-evals", "Vladimir Pirotskiy", "Claude Haiku", "Anthropic", "MCP", "GitHub"], "also_reported_by": [], "takeaway": "An MCP shopping assistant scored pass@1 0.94 on 132 runs, but search misses like reading the letter O as a zero in part number STO-HT-1O64 dropped it to 9th, showing ranking regressions need CI gates such as --min-hit5 and --min-mrr.", "recommendation": {"advice": "Build a test set of ranked queries with expected IDs from catalog attributes, then gate your MCP store's search in CI using exit-code thresholds like --min-hit5 and --min-mrr.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/i-measured-how-well-an-ai-assistant-shops-through-mcp-here-is-what-broke", "markdown": "https://wpnews.pro/news/i-measured-how-well-an-ai-assistant-shops-through-mcp-here-is-what-broke.md", "text": "https://wpnews.pro/news/i-measured-how-well-an-ai-assistant-shops-through-mcp-here-is-what-broke.txt", "jsonld": "https://wpnews.pro/news/i-measured-how-well-an-ai-assistant-shops-through-mcp-here-is-what-broke.jsonld"}}