An MCP server demonstrating tools, resources, and prompts
Server Demo exposes 1 tool (calculate) with a complete JSON Schema definition and descriptions in Chinese. However, the tool exhibits significant quality gaps: (1) The name 'calculate' is a generic verb that does not follow verb_noun specificity patterns, 'arithmetic_calculate', 'math_calculate', or tool-specific names like 'add_numbers' would be clearer for LLM selection. (2) The tool description is in Chinese ('执行基本的算术运算') and only 15 characters when translated to English ('Perform basic arithmetic'). (3) Parameters ('operation', 'x', 'y') have descriptions in Chinese and are present with types (string enum, number, number), but descriptions are minimal translations. (4) Error handling for division-by-zero is present but uses a generic error message in Chinese without recovery guidance ('不允许除以零' = 'Division by zero not allowed'). The parameter descriptions lack detail on valid ranges or constraints beyond the enum. (5) The tool is marked READ_ONLY risk, which is correct, no destructive operations. (6) Resources and prompts are also implemented but are out-of-scope for this tool-focused evaluation. The server uses mcp-go framework correctly and registers the tool via AddTool with proper handler, but definition quality is held back by generic naming, minimal descriptions, and lack of English localization.
执行基本的算术运算
Generic tool name 'calculate' lacks action verb specificity. Should be 'arithmetic_calculate', 'execute_math_operation', or decomposed into 'add_numbers', 'subtract_numbers', etc. Generic names force LLMs to read full descriptions before deciding which tool to use.
Tool description is 15 characters in Chinese ('执行基本的算术运算'). English translation 'Perform basic arithmetic' is also below 20 chars. Needs expansion: 'Execute arithmetic operations (add, subtract, multiply, divide) on two numbers. Returns numeric result. Use for mathematical calculations.'
Parameter descriptions in Chinese lack detail on constraints. 'operation' enum is well-defined, but 'x' and 'y' descriptions ('第一个数字' = 'First number', '第二个数字' = 'Second number') provide no guidance on valid ranges, precision, or edge cases. Should specify: 'Numeric value (integer or float). Range: -1e15 to +1e15. Precision: IEEE 754 double.'
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 38 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 44 | - | v1 |
Error handling for division by zero returns a generic error message ('不允许除以零') without recovery guidance. Per pattern:recovery-guide, errors should state what to do next. Should return: 'Cannot divide by zero. Use a non-zero divisor for the second operand (y).'
Tool descriptions and parameter docs are in Chinese, not English. MCP spec assumes English for tool discovery and LLM reasoning. Non-English tool definitions severely degrade LLM performance in multilingual environments and violate accessibility norms for international teams.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) present. While the 'calculate' tool is read-only and idempotent, explicit annotations enable client-side optimization and safety checks. Per spec (2026-07-28), tool annotations are a current pattern reward.