<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vladimir Pirotskiy </title>
    <description>The latest articles on DEV Community by Vladimir Pirotskiy  (@pirotskiy).</description>
    <link>https://dev.to/pirotskiy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F557827%2Fbb598e73-f611-494d-b65f-0a10af3fd309.jpg</url>
      <title>DEV Community: Vladimir Pirotskiy </title>
      <link>https://dev.to/pirotskiy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pirotskiy"/>
    <language>en</language>
    <item>
      <title>I measured how well an AI assistant shops through MCP. Here is what broke.</title>
      <dc:creator>Vladimir Pirotskiy </dc:creator>
      <pubDate>Wed, 25 Nov 2026 18:34:30 +0000</pubDate>
      <link>https://dev.to/pirotskiy/i-measured-how-well-an-ai-assistant-shops-through-mcp-here-is-what-broke-1hp</link>
      <guid>https://dev.to/pirotskiy/i-measured-how-well-an-ai-assistant-shops-through-mcp-here-is-what-broke-1hp</guid>
      <description>&lt;p&gt;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: &lt;a href="https://github.com/Vladimir-Pirotskiy/mcp-commerce-evals" rel="noopener noreferrer"&gt;mcp-commerce-evals&lt;/a&gt; (Rust, MIT).&lt;/p&gt;

&lt;h2&gt;
  
  
  What is in it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A reference store&lt;/strong&gt;: an MCP server with four tools (&lt;code&gt;search_products&lt;/code&gt;, &lt;code&gt;get_product&lt;/code&gt;, &lt;code&gt;check_availability&lt;/code&gt;, &lt;code&gt;create_cart&lt;/code&gt;) 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.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;44 buyer queries of eight kinds&lt;/strong&gt;: exact part number, plain description, compatibility, typo, synonym, filter, adversarial, and &lt;code&gt;no_match&lt;/code&gt; for things the catalog does not sell. The expected ids come from catalog attributes, never from running the search.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two levels of evals.&lt;/strong&gt; Tool-level calls the search tool directly and reports hit@1, hit@5, MRR, recall@10 and nDCG@10 with 95% intervals. Assistant-level lets a model shop through the tools and scores the part id it commits to.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cargo run --release -p reference-store
cargo run --release -p mcp-commerce-evals -- --url http://127.0.0.1:8787/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What the numbers said
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;The misses are the useful part:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;STO-HT-1O64&lt;/code&gt; 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.&lt;/li&gt;
&lt;li&gt;"11-speed chain, in stock, under $30" found chain lube first. Without a category filter, lubes outrank chains.&lt;/li&gt;
&lt;li&gt;A hub query ranked 9th because axle parts outrank hubs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of these show up in a demo where someone asks for "a chain".&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would not claim
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it matters
&lt;/h2&gt;

&lt;p&gt;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 (&lt;code&gt;--min-hit5&lt;/code&gt;, &lt;code&gt;--min-mrr&lt;/code&gt;, &lt;code&gt;--min-accuracy&lt;/code&gt;), so a ranking regression fails the build like any other test.&lt;/p&gt;

&lt;p&gt;The repo, the full tables and the caveats: &lt;a href="https://github.com/Vladimir-Pirotskiy/mcp-commerce-evals" rel="noopener noreferrer"&gt;github.com/Vladimir-Pirotskiy/mcp-commerce-evals&lt;/a&gt;. More of my work: &lt;a href="https://pirotskiy.com/" rel="noopener noreferrer"&gt;pirotskiy.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>rust</category>
      <category>ai</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
