Synthetic product search relevance and ranking agent with catalog-backed product search, ranking, and inventory management tools
Product Search server has well-structured tool definitions with complete schemas and descriptions. All 5 tools follow verb_noun naming (search_products, rank_products, product_insight, check_inventory, suggest_more_products). Descriptions are substantive (100-200 chars), explaining WHAT each tool does and WHEN to use it. Input schemas are properly typed with descriptions for all parameters. However, output schemas are not documented in the tool definitions themselves, responses are shaped by internal helper functions (_product_response, _similar_product_results) but LLMs cannot see these structures. Error handling is minimal; no recovery guidance or error categorization. Tool composition is sound: each tool has one responsibility, and outputs contain IDs for chaining (product_id, matched_terms). Parameter naming is clear (query, limit, excluded_product_ids, product_ids) with appropriate defaults (limit=10, limit=5). No security issues detected (no secrets in params, read-only operations). Missing: output schema documentation, error recovery patterns, and tool annotations (readOnlyHint).
Check inventory availability and eligibility for one or more products.
Retrieve detailed product information, similar products, and availability for a single product ID.
Rank catalog candidates by relevance, rating, and advertising performance for a query.
Retrieve catalog candidates for a query; use this before ranking or for unranked search. Use ``rank_products`` instead when the user asks for the best, top, or recommended products. This tool requires every meaningful query term to match, but it does not remove out-of-stock products and does not apply rating or advertising-performance ranking.
Suggest additional products based on a previous search or product insight result.
Output schemas not documented in tool definitions. LLMs cannot see the structure of product responses (image_url, inventory_quantity, matched_terms, etc.), forcing them to infer fields from examples or trial-and-error.
No error handling or recovery guidance. Tools do not document what happens on invalid query, missing product_id, or empty results. LLMs have no guidance on retrying or alternative actions.
Tool annotations missing. No readOnlyHint, destructiveHint, or idempotentHint declared. All tools are read-only but this is not formally signaled to the MCP client.
Inferred effective spec: 2025-06-18+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 68 | 2025-06-18+ | v2 |
rank_products description is vague ('Rank catalog candidates by relevance, rating, and advertising performance'). Does not explain WHEN to use it instead of search_products or what 'advertising performance' means to the user.
No pagination guidance in tool descriptions. search_products and suggest_more_products accept 'limit' but do not document whether results are truncated, whether a next_cursor exists, or how to fetch additional pages.