A TypeScript template MCP server with calculator tools and prompts
This is a template/tutorial server with minimal but structurally sound tool definitions. Both tools have complete input schemas (Zod-validated), clear descriptions (20-30 chars), and proper error handling. Tool names are verb-first and clear (add, subtract), but the server lacks complexity that would test real-world patterns like pagination, batch operations, idempotent retries, or dependency documentation. Suitable for learning MCP patterns, but would not pass review for production use.
Adds two numbers together
Subtracts one number from another
Tool descriptions are too short (20-30 chars). Baseline is 194 chars. Current descriptions lack context about WHEN to call the tool, prerequisites, or state-change implications.
Output schema is documented in code (schema.ts) but not reflected in tool registration. The MCP server.tool() calls in src/index.ts register input schemas but do not declare output shape to the MCP protocol, limiting client-side type safety and LLM planning.
Parameter descriptions are minimal (8-18 chars). Baseline is 72 chars. E.g., 'First operand' provides no context about valid range, format, or why this parameter matters. Should expand to include constraints and use cases.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 7 | 2025-06-18+ | v2 |
| 2026-03-09 | D | 50 | - | v1 |
No error categorization or recovery guidance. While error handlers exist (try/catch blocks in tools), error responses do not classify failures as retryable vs. fatal, nor do they suggest next steps for the LLM. E.g., 'Failed to add numbers: Unknown error' provides no actionable recovery path.
No input validation or constraint enforcement beyond Zod schema. LLMs cannot read JSON Schema constraints directly, they infer from description text. Current descriptions do not state numeric bounds, ranges, or precision limits.