A simple MCP server that rolls dice with a specified number of sides
Single tool with basic schema and description. Tool name 'getDiceRoll' uses camelCase (non-standard verb_noun pattern) and lacks clarity on what 'Roll a dice' means operationally. Description is 76 chars, adequate but generic, missing context on return format, idempotency, or use cases. Input schema present with type and min constraint, but lacks examples or format guidance. No output schema documented. No error handling, no recovery guidance. Composition is trivial (one tool, no chaining). Security is minimal (read-only, no secrets). Overall: functional but below production baseline.
Roll a dice with a specified number of sides and return the result.
Tool name 'getDiceRoll' uses camelCase instead of snake_case verb_noun convention. LLMs expect 'get_dice_roll' to parse intent reliably.
No output schema documented. LLMs cannot predict return structure (is it {roll: number}? {result: string}? {sides, roll}?). Current code returns {content: [{type: 'text', text: string}]}, MCP protocol wrapper, not domain schema.
Description lacks operational clarity. Does 'Roll a dice' mean uniform random 1..sides? What if sides=0 or negative? No mention of return type, idempotency, or error cases.
Parameter 'sides' has type and min constraint but no max, format hint, or example. LLMs may pass absurd values (sides=999999999) causing performance issues.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 44 | 2026-07-28+ | v2 |
No error handling or recovery guidance. If sides < 1 is passed, what happens? Code has .min(1) but no documented error message or retry strategy.