MCP server exposing merchant catalog as typed read-only tools for product search, retrieval, stock checking, and pricing offers
Server defines 4 read-only catalog tools with basic descriptions and partial schemas. All tools have verb-noun names (search_catalog, get_product, check_stock, get_offers) and descriptions 50-100 chars. Input schemas are present with typed fields and descriptions. However, output schemas are inferred from Go struct tags rather than explicitly documented in the tool registration. Parameter descriptions are minimal (10-30 chars) and lack constraint details (ranges, enums, formats). No error recovery guidance. Missing tool annotations (readOnlyHint despite all being READ_ONLY). Composition is sound, tools chain naturally (search → get → check_stock → get_offers). No security issues detected (no secrets in params, read-only operations).
Check current stock for a product and quantity.
Read the merchant's current offer for a product and quantity, including combo bundle value.
Read one authoritative merchant catalog product.
Search the merchant catalog by text, category, or maximum price.
Output schemas not explicitly documented in tool registration. Go struct tags (offersOutput, catalog.Product) define outputs but are not visible in mcp.Tool definitions. LLMs cannot see what fields to expect.
Parameter descriptions are too brief (10-30 chars) and lack constraint details. 'the catalog product identifier' and 'the requested quantity' do not explain format, range, or validation rules. Rubric baseline: avg param description 72 chars.
No tool annotations despite all tools being read-only. Missing readOnlyHint in mcp.Tool definitions. Agents cannot infer safety from tool metadata.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 63 | 2026-07-28+ | v2 |
Error handling returns raw fmt.Errorf wraps without recovery guidance. 'get product: context deadline exceeded' tells agent nothing about retry strategy or alternatives.
search_catalog accepts optional query, category, and max_price_paise but does not document mutual exclusivity or required combinations. Can all three be omitted? What does an empty search return?