A Model Context Protocol server for calculating and evaluating mathematical expressions
Single tool with minimal description and parameter coverage. Tool definition is explicit and visible in source code (calculator.py), so not subject to inference penalty. However, the tool exhibits significant gaps: description lacks context on when to use it vs other tools, no parameter type validation hints, no output schema documentation, and no error handling guidance. Parameter 'expression' has a generic description that does not explain constraints, format requirements, or error cases. The evaluate() function accepts arbitrary Python expressions filtered through an AST whitelist, but this security posture is not communicated to the LLM caller, nor are invalid inputs (e.g., 'this is not math') accompanied by actionable recovery guidance. Scores reflect baseline mediocrity typical of STDIO-only community servers.
Calculates/evaluates the given expression.
Parameter 'expression' lacks actionable format guidance. Description does not specify what constitutes a valid expression (e.g., 'Python mathematical expressions with operators +, -, *, /, //, %, ** and math module functions like sin(), cos(), sqrt()'), nor does it hint at invalid input handling or error recovery.
Tool description is generic and does not distinguish this calculator from other math tools or explain when an LLM should call it. 'Calculates/evaluates the given expression' lacks context on use case, supported operations, or failure modes. Baseline for A+ tools is 50-200 chars with explicit WHAT, WHEN, and return value guidance.
No documented output schema. The tool returns a string result, but LLMs do not know what the string contains (numeric value? error message? JSON?) or how to interpret it for downstream reasoning. Production baseline: 100% of A+ tools document return types.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 53 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 38 | - | v1 |
Error handling is silent. Invalid expressions (e.g., 'undefined_function()', division by zero, syntax errors) will raise exceptions, but the tool does not catch or reformat them into actionable guidance. 'Invalid expression' or 'SyntaxError: ...' tells the LLM nothing about how to fix the input or whether to retry.
No idempotency guarantee. The tool is read-only and risk is marked READ_ONLY, which is correct, but this is not documented in the tool description. LLMs should know whether they can safely retry on timeouts or ambiguous failures (idempotent ops) or must wait for user confirmation before retry (destructive ops).
Parameter constraint not enforced in description. The AST evaluator silently filters operations and functions, but the description does not explain which are allowed (e.g., no 'import', no '__*__' methods, only math module functions). LLMs will attempt invalid operations, receive cryptic errors, and waste retries.