MCP server: generate strong passwords and score password strength with zxcvbn.
Two well-scoped tools with complete input schemas and reasonable descriptions. Both tools have clear names (generate, strength) and documented parameters with types and constraints. However, descriptions lack depth on WHEN to use each tool and what downstream actions they enable. Parameter descriptions are minimal (e.g., 'Drop 0/O/1/l/I/| etc.' for exclude_ambiguous is terse). Output schemas are not formally documented, responses are JSON but structure is inferred from code. Error handling is basic (generic catch-all). No tool annotations (readOnlyHint, idempotentHint). Naming follows verb_noun pattern well; composition is clean (single responsibility). Baseline: avg tool description ~194 chars; these are ~120 chars. Avg params per tool: 4 - 5 (within baseline p10 - p90). Missing: output schema documentation, richer parameter descriptions, error recovery guidance.
Generate a cryptographically random password. Enable lowercase/uppercase/digits/symbols (defaults: all on). Length 4-256.
Score a password with zxcvbn. Returns score 0-4, guesses_log10, human crack-time, and feedback.
Output schemas not documented. LLMs cannot plan downstream actions or extract fields without knowing response structure. Code shows jsonResult() returns {password: string} for generate and {score, guesses_log10, crack_time_display, warning, suggestions} for strength, but this is not declared in tool definitions.
Parameter descriptions are minimal or missing context. 'exclude_ambiguous' has only 'Drop 0/O/1/l/I/| etc.', no explanation of WHY (readability in handwritten contexts) or WHEN to use. 'password' param in strength has no description at all.
Tool descriptions lack WHEN/WHY guidance. 'Generate a cryptographically random password' states WHAT but not WHEN to call it vs. asking the user to create one manually, or when exclude_ambiguous is necessary. 'Score a password with zxcvbn' does not explain when to call this (e.g., after user creates a password, or to validate strength before submission).
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 59 | 2026-07-28+ | v2 |
No tool annotations. Neither tool declares readOnlyHint (both are read-only) or idempotentHint (both are idempotent). Clients cannot infer safety properties without explicit hints.
Error handling is generic. Catch-all 'password tool failed: <message>' does not guide LLM recovery. E.g., if length is out of range, error should be 'Invalid length: must be 4 - 256' not a generic failure message.