A FastMCP-based MCP server demonstrating basic tool functionality with mathematical operations and external API calls
This demo server has multiple critical definition quality issues. The server defines 5 tools across multiple files, but 3 of them are duplicates of the 'add' tool. Of the 3 unique tools, only 'add' has a non-trivial description ("Add two numbers"). The 'get_secret_word' tool has no description at all. The 'get_current_weather' tool has no description. Parameter descriptions exist for some tools (a, b for add; city for get_current_weather) but are minimal (6-9 characters). Output schemas are not documented in the visible code. Error handling is absent, no guidance on what happens if city lookup fails, no recovery suggestions. The tool names are acceptable (get_secret_word, get_current_weather follow action-verb convention), but the implementation lacks production-grade rigor. This is a demo/teaching server, which explains the gaps, but it does not meet production quality standards.
Add two numbers
Missing tool descriptions for 'get_secret_word' and 'get_current_weather'. Without descriptions, LLMs cannot determine when or why to select these tools.
Duplicate tool definitions: 'add' is defined 3 times across client.py and mcp-server-openai.py. This creates confusion about which is authoritative and wastes space in tool lists.
No documented output schemas. Tools return primitive types (int, str) but the schema for structured responses (e.g., what get_current_weather returns from wttr.in) is not documented. LLMs cannot parse unstructured output reliably.
No error handling guidance. If wttr.in lookup fails in get_current_weather, or if the API returns non-HTML text, the tool provides no recovery guidance. The LLM has no idea what to do next.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 46 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 28 | - | v1 |
Parameter descriptions are extremely minimal (6-9 characters). 'City name' for get_current_weather does not explain expected format (bare city name like 'Tokyo' vs 'Tokyo, Japan'), and no constraint on invalid cities.
get_current_weather makes external HTTP calls with no timeout handling. An unresponsive wttr.in API could hang the tool indefinitely, blocking the agent.