Menu

1 / 2

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

DEV Community: rust·Vladimir Pirotskiy·5 days ago
#srbOwufx
#devtorust#devto#dev#part#queries
Long article (451 words) — no AI summary yet.
Reading 0:00
15s threshold

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

44 buyer queries of eight kinds : exact part number, plain description, compatibility, typo, synonym, filter, adversarial, and no_match for things the catalog does not sell. The expected ids come from catalog attributes, never from running the search.

Two levels of evals. Tool-level calls the search tool directly and reports hit@1, hit@5, MRR, recall@10 and nDCG@10 with 95% intervals.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.