AI Shopping Cart MCP Server - A Spring Boot-based MCP server for managing shopping cart operations with MongoDB persistence
All 5 tools have basic descriptions and input schemas with type definitions, but quality is significantly below production baseline. Descriptions are minimal (10-50 chars, well below the 194-char average for A+ tools). Parameter descriptions are sparse or missing entirely. No output schemas documented. No error handling guidance. Tool names are acceptable but descriptions lack context on WHEN to use each tool, prerequisites, or what the LLM should expect. The getCart tool description is misleading ('Get the details of a product' when it retrieves one item from cart). No pagination, no result limits documented. No idempotency guarantees. Security considerations (e.g., cart isolation per user/session) are not addressed.
Add a product to the shopping cart
Get the details of all products in the shopping cart
Get the details of a product in the shopping cart
Get the total price of all products in the shopping cart
Remove a product from the shopping cart
Descriptions are critically short (10-50 chars vs 194-char baseline). LLMs cannot determine WHEN to use each tool or what to expect. E.g., 'Get the details of a product in the shopping cart' lacks context on whether this returns price, quantity, availability, or all three.
No output schemas documented. LLMs cannot plan downstream calls or extract required fields. What does addToCart return? Success boolean? Updated cart? Item ID? Unknown.
Parameter descriptions are missing or trivial. 'productName' has a description, but 'quantity' in addToCart lacks guidance on valid range (1-1000? 1-100?). No constraints documented.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 42 | 2026-07-28+ | v2 |
getCart description is misleading: 'Get the details of a product in the shopping cart' suggests it returns product metadata, but it likely returns cart item details (quantity, price, etc.). Ambiguous naming invites wrong tool selection.
No error handling guidance. What happens if productName does not exist? If quantity is negative? If cart is empty? LLMs receive no recovery hints.