A Spring Boot MCP server that provides tools for retrieving top-ordered products and their reviews from a demo e-commerce shop database
This server has critical definition quality gaps. Tool names are acceptable (verb_noun pattern), but descriptions are problematic: get_top_order lacks clarity on what 'top' means (by revenue? units?), and get_reviews contains implementation details ('Long values', 'L suffix') that should not appear in user-facing descriptions. Input schemas are severely incomplete: get_top_order has an empty input object ({}), violating the requirement that every parameter needs a description. get_reviews declares productIds as array of integers but the description warns about Long type mismatch, a schema/description contradiction. No output schemas are documented. Error handling in OrderTool catches exceptions and returns a malformed DTO with error text in productName field, which is not actionable for an LLM. No parameter descriptions exist. The server uses Spring AI's @Tool annotation but provides minimal metadata.
Retrieves the top 5 most sold products and uses their product IDs to analyze reviews from the review table, providing a concise summary of key points and sentiments. IMPORTANT: The 'productIds' parameter must be provided as Long values, not Integer. When passing values, ensure each ID has an 'L' suffix (e.g. [1L, 5L, 9L]).
Retrieves the top 5 most sold products and uses their IDs to invoke the get_reviews Tool for calculating average ratings and summarizing customer reviews.
get_top_order has empty input schema ({}). Tool accepts no parameters but description does not explain what 'top 5' means (by sales volume? revenue? recency?).
get_reviews description contains implementation details ('Long values', 'L suffix') that belong in code comments, not user-facing docs. This confuses LLMs about whether they must format input in a specific way. Schema declares 'integer' type but description warns about Long, contradiction.
No output schemas documented for either tool. LLMs cannot plan downstream calls or extract fields without knowing return structure. MostOrderDto and ReviewDto are internal types not visible in the schema.
Error handling in OrderTool catches all exceptions and returns a DTO with error text in productName field. This is not actionable for an LLM, no recovery guidance, no error classification, no indication whether to retry.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 31 | 2026-07-28+ | v2 |
get_reviews parameter 'productIds' has no description in the schema. LLMs cannot infer whether to pass [1, 2, 3] or ['product-1', 'product-2'] or some other format. Description text is not a substitute for schema-level parameter docs.