An MCP server that processes emails through classification and order fulfillment workflows, integrating RAG (Retrieval-Augmented Generation) for product similarity search and PostgreSQL database queries for inventory management.
Single tool 'query' has a basic schema with three parameters (product_code, table, columns) but suffers from critical gaps. Description is present (89 chars) but lacks WHEN/WHY guidance for LLM selection. Parameters lack type validation details (e.g., no enum for 'table', no format for 'product_code'). No output schema documented, LLM cannot predict response structure. No error handling guidance. Tool name 'query' is generic and does not follow verb_noun pattern (should be 'query_product_availability' or 'check_product_availability'). The 'table' parameter is a red flag: exposing table names invites SQL injection if not sanitized server-side. Overall, this is a minimal tool definition that would not pass production code review.
Check availability for products in the database by querying the products table with product codes to verify if requested quantities are available
Tool name 'query' is generic and does not follow verb_noun pattern. Should be 'check_product_availability' or 'query_product_inventory' to clearly signal intent to LLM.
No output schema documented. LLM cannot predict response structure (fields, types, pagination). Must document what fields are returned (e.g., product_code, description, quantity, status).
'table' parameter exposes database table names as a string input. This is a SQL injection risk if not sanitized server-side. Either restrict to an enum (e.g., 'products' only) or remove the parameter and hardcode the table.
Parameter descriptions lack format/constraint details. 'product_code' has no regex, length, or format hint. 'columns' array has no item type or allowed values. LLM cannot validate inputs before calling.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 27 | <=2025-11-25 | v2 |
No error handling guidance. If product_code is invalid or not found, what does the tool return? Does it return empty results, an error, or a 404? LLM needs recovery hints.