MCP server for auditing inventory levels and generating purchase order drafts when stock falls below safety limits
Single tool 'audit_inventory' has a reasonable name and basic schema, but lacks critical depth expected of production-grade tools. Tool description is present but generic (77 chars, below the 194-char avg baseline). Parameters have type definitions but lack detailed descriptions, only 'item_sku' and 'safety_limit' have brief descriptive text; 'stock_level' description is adequate. No output schema is documented, the return object structure is inferred from code, not formally specified. No error handling guidance, no parameter constraints (e.g., safety_limit bounds), no explanation of when to use this tool vs similar inventory tools. The tool name is action-oriented ('audit_inventory'), which is good, but the implementation is locally-scoped (no network calls, no external service integration) and lacks sophistication around validation, error recovery, or composition patterns. Overall, this reads as a stub implementation suitable for demonstration but falling well short of production baselines.
Audits inventory levels for a given SKU and generates a purchase order draft if stock falls below the safety limit
Output schema not documented. Return type is inferred from code (dict with 'reorder_needed', 'current_stock', 'purchase_order_draft' keys), but no formal JSON Schema is provided. LLMs cannot reliably predict downstream tool chaining or extract the right fields without explicit output schema documentation.
Parameter descriptions are minimal and inconsistent. 'stock_level' description ('The current stock level for the item') lacks context about units, range, or allowed values. 'safety_limit' is described but no bounds or defaults are explained. Missing: are negative stock levels allowed? What happens if safety_limit > stock_level before the check? Required parameter validation rules not documented.
Tool description is too brief (77 chars, well below 194-char avg). Lacks context on WHEN to use this tool, what triggers a reorder, and what the agent should do with the purchase_order_draft. Missing: prerequisites, dependencies (e.g., 'Call this after retrieving inventory levels'), and guidance on the next step after audit returns a draft PO.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 41 | 2026-07-28+ | v2 |
No error handling or recovery guidance. If stock_level or safety_limit are invalid (negative, non-integer, missing), the tool has no documented error response or corrective action. Agents cannot self-correct invalid inputs. No guidance on retryable vs fatal errors.
No parameter constraints or bounds declared. Numeric parameters (stock_level, safety_limit) have no min/max, and no explanation of what happens with edge cases (e.g., stock_level = -5, safety_limit = 0). This invites invalid LLM input.
Tool composition is minimal. No idempotency guarantee stated. If the tool is called twice with identical input, does it return the same result, or does it create duplicate PO drafts? No statement on idempotence.