A demonstration MCP server showcasing elicitation patterns for interactive ice cream topping recommendations
Single-tool server with a well-structured schema and reasonable description. The tool uses proper Zod validation and JSON Schema output, with enum constraints for the flavour parameter. However, the naming convention deviates from standard action-verb-first patterns (should be 'recommend_ice_cream_toppings' or 'get_ice_cream_toppings'), and the description, while present, is generic. The tool is READ_ONLY and has basic error handling, but lacks output schema documentation and does not guide error recovery. The server claims 'elicitation' capability but the implementation shows a prototype/experimental pattern not aligned with current MCP spec (no MRTR result-type 'input_required' used). Overall a competent demo but not production-ready.
Recommends the best ice cream toppings based on your selected flavour.
Tool name lacks action verb prefix. Naming 'ice_cream_topping_recommender' is noun-heavy; should start with verb like 'recommend_' or 'get_'. Current name leaves intent ambiguous to LLMs (is it a discovery tool or an action?).
Output schema not documented. The execute() method returns {content: [{type, text}], isError?} structure, but no schema specification is provided to the LLM. LLMs cannot plan downstream calls without knowing the response shape.
Elicitation implementation uses deprecated/non-standard pattern. The code calls (this.server as any).elicitInput() which is not a public API method in MCP SDK v1.15.1. Current spec (2026-07-28) uses MRTR with result-type 'input_required', not side-channel elicitation callbacks.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 44 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 0 | - | v1 |
Error handling does not guide recovery. When user cancels elicitation or inputs are invalid, the error response is 'Cancelled by user' with no actionable next step. Per pattern:recovery-guide, errors should suggest what to do next.
Description lacks context for when/why to use. Current description: 'Recommends the best ice cream toppings based on your selected flavour.' Does not explain when to call it (before or after a user picks flavour? in response to a question?), what the output format is, or how it chains with other tools.
Parameter description mentions enum values by name but does not explain semantics. 'Choose a flavour: vanilla, strawberry, or chocolate' is a constraint, not context. Better: 'The ice cream flavour to get toppings for. Supported: vanilla (creamy base), strawberry (fruity), chocolate (rich/dark).'