A NestJS-based MCP server that provides calculator functionality with session management and Server-Sent Events (SSE) streaming
This HTTP-based calculator server has 4 tools with basic descriptions but significant quality gaps. Tool names lack action verbs (streamCalculations, calculate, getHistory, getAllSessions use camelCase instead of verb_noun convention). Descriptions exist but are generic and lack LLM-optimization guidance. Input schemas are partially visible for 'calculate' but missing entirely for 'streamCalculations', 'getHistory', and 'getAllSessions'. No output schemas documented. Error handling is absent, no recovery guidance, no categorization of error types. The 'calculate' tool has an enum for operations but lacks parameter descriptions for 'a' and 'b' operands (e.g., no range constraints, no guidance on what happens if operands are missing for 'clear'). Security: no mention of session isolation, rate limiting, or audit trails. Composition: tools are single-purpose but lack chaining metadata (e.g., getHistory doesn't return operation details needed for downstream analysis).
Performs a mathematical calculation operation (add, subtract, multiply, divide, or clear) on a given session and returns the result with operation details and timestamp.
Retrieves metadata for all active calculation sessions, including session IDs, creation timestamps, current values, and calculation histories.
Retrieves the complete calculation history for a given session, including all operations performed and their results with timestamps.
Establishes a Server-Sent Events (SSE) stream for real-time calculator session communication. Creates a new session and streams calculation events, errors, and history updates to the client.
Tool names do not follow verb_noun convention. 'streamCalculations', 'getHistory', 'getAllSessions' use camelCase; should be 'stream_calculations', 'get_history', 'list_sessions'. LLMs parse intent from names, inconsistent naming delays tool selection.
Input schemas missing for 3 of 4 tools (streamCalculations, getHistory, getAllSessions). Only 'calculate' has a visible schema. Without schemas, LLMs cannot validate inputs or understand parameter constraints.
Output schemas not documented for any tool. LLMs need to know what fields to expect (e.g., does getHistory return timestamps? operation names? result values?). Undocumented outputs force LLMs to guess field names for downstream chaining.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 33 | 2026-07-28+ | v2 |
No error handling guidance. If a calculation fails, sessionId is invalid, or operation is unsupported, the server returns raw errors with no recovery hints. LLMs cannot self-correct without actionable error messages.
Parameter descriptions incomplete. 'calculate' tool has 'a' and 'b' parameters with minimal descriptions ('First operand', 'Second operand'). No guidance on valid ranges, behavior when omitted, or interaction with 'clear' operation.