A post-purchase support system that handles order tracking, FAQ responses, and customer issue escalation
Single tool with a generic name ('handle') that violates verb_noun convention and obscures the action. Description exists but is verbose (183 chars) and lacks clarity on when to call vs. alternatives. Input schema is present with all parameters typed and described (query_type, order_id, customer_message), meeting minimum schema standards. However, no output schema is documented, the response structure is inferred from code example. Error handling is minimal: escalation is implicit rather than actionable. The tool combines multiple responsibilities (tracking, FAQ lookup, escalation) without clear separation, violating the single-responsibility pattern. No tool annotations (readOnlyHint, idempotentHint, etc.) present. Output fields are somewhat documented in code but not formally in a schema definition. No pagination, no result limits stated. Missing guidance on parameter dependencies (e.g., when order_id is optional vs. required).
Processes customer support queries including order tracking, FAQ lookups, and escalation decisions based on query type and customer message
Tool name 'handle' is generic and violates verb_noun naming convention. LLMs cannot infer action from the name alone. Should be 'resolve_support_query' or 'process_customer_support_request'.
No output schema documented. Response structure (response, action_required, escalate) is inferred from code examples only. Formal schema definition required for LLM downstream planning.
Tool combines three distinct responsibilities: order tracking, FAQ lookup, and escalation decision. Violates single-responsibility pattern. Should split into separate tools (get_order_tracking, get_faq_answer, escalate_to_specialist) for better composability.
No error handling or recovery guidance. When order not found, returns a generic 'Not found' status rather than actionable error like 'Order ORD-1234 not found. Try searching recent orders or verifying the order ID.'
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 36 | 2026-07-28+ | v2 |
Parameter dependencies undocumented. order_id appears optional but its role depends on query_type. When query_type='tracking', order_id is required; when query_type='return', it may be optional. This should be explicitly documented.
No tool annotations present. Tool is read-only (no state modification), but readOnlyHint is not declared. This prevents agents from understanding idempotency and safety.
Description is 183 characters but lacks clarity on when to use vs. alternatives. Missing guidance like 'Use for customer inquiries requiring order data lookup or policy information. For complex issues beyond FAQ scope, triggers escalation to human specialist.'