A FastMCP server that provides mathematical expression evaluation, resource serving, and prompt templates.
Single tool 'calculate' has a clear action verb and reasonable description (~125 chars), matching baseline patterns. Input schema is present with proper type annotation (string). However, the tool lacks critical production-quality details: no output schema documentation, no parameter format constraints, no error handling guidance for LLMs, and no examples of what constitutes valid/invalid expressions. The server also includes a 'get_info' resource and 'explain' prompt, but these are not tools and fall outside the Definition Quality rubric scope. Overall, the tool is functional but lacks the LLM-optimization and error recovery patterns expected of production-grade servers.
Evaluate a math expression. Supports +, -, *, /, **, %, // and functions like sqrt, sin, cos, pi, e.
Missing output schema documentation. The calculate tool returns a string but does not document what format (plain number vs. structured JSON), whether it includes error messages, or how the LLM should parse the response.
No parameter format constraints or validation hints in description. The 'expression' parameter lacks guidance on what constitutes valid input (e.g., 'mathematical expression only, no loops or variable definitions'). This invites the LLM to hallucinate unsupported syntax.
Error messages are not actionable for LLM recovery. The tool returns strings like 'Error: division by zero' and 'Error: Unknown name' but does not guide the LLM on what to do next (e.g., 'Try a different expression', 'Supported functions are: sqrt, sin, cos, ...'. Raw error text wastes context and invites retry loops.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 57 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 41 | - | v1 |
Description is generic. At 125 characters, it lists supported operators but does not explain WHEN to use this tool vs. a calculator, what class of problems it solves, or dependencies (e.g., 'numbers only, no variable assignment'). LLMs cannot disambiguate without usage context.
No documented limits or constraints. The tool does not state max expression length, recursion depth, or computation timeout. An LLM could inadvertently trigger expensive or infinite calculations.