cd /news/ai-agents/i-measured-how-well-an-ai-assistant-… · home › topics › ai-agents › article
[ARTICLE · art-176307] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

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

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.

recommendation

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.

more in playbook: Evals and testing for LLM apps
by read2 min views5 publishedNov 25, 2026

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).

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.

cargo run --release -p reference-store
cargo run --release -p mcp-commerce-evals -- --url http://127.0.0.1:8787/mcp

Tool-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.

The misses are the useful part:

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. None of these show up in a demo where someone asks for "a chain".

40 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.

If 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.

The repo, the full tables and the caveats: github.com/Vladimir-Pirotskiy/mcp-commerce-evals. More of my work: pirotskiy.com.

── more in #ai-agents 4 stories · sorted by recency
── more on @mcp-commerce-evals 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-measured-how-well-…] indexed:0 read:2min 2026-11-25 · —