MCP Server demonstration providing weather and time utilities via Streamable HTTP transport
Three tools with basic schemas and Chinese descriptions. All tools have input schemas with proper types and enums (where applicable). However, descriptions are minimal (20-40 chars), lacking context on WHEN to use each tool or WHAT they return. No output schemas documented. Parameters lack depth, e.g., 'city' enum is present but timezone_offset lacks range constraints. No error handling guidance. Tools follow verb_noun naming (get_weather, get_current_time, lottery) but descriptions are too terse for LLM optimization. Baseline: avg tool description should be 194 chars; these average ~35 chars.
获取当前时间,timezone_offset 为 UTC 偏移小时数(默认东八区)
查询指定城市今天的天气(演示用 mock 数据)
随机抽一个幸运数字(演示无参数工具)
Descriptions are 20-40 characters, far below the 194-char baseline for A+ tools. Lack WHEN to use, WHAT is returned, and dependencies. LLMs cannot reliably select these tools.
No output schemas documented. LLMs cannot plan downstream calls or extract return values. E.g., does get_weather return {temp, humidity, condition} or a free-text string?
timezone_offset parameter lacks range constraints. Description says 'default 8' but no min/max specified. LLMs may pass absurd values like -500 or 1000.
No error handling guidance. If city is invalid or API fails, what should the LLM do? Retry? Ask user? No recovery path documented.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 56 | <=2025-11-25 | v2 |
'lottery' tool name is vague. Does it return a number, a prize, a ticket? Verb_noun pattern violated, should be 'generate_lucky_number' or 'draw_lottery_number'.