A minimal MCP server that provides weather information tools for client integration
Single tool 'get_weather' has a clear action verb and acceptable description (95 chars), meeting basic naming and description standards. However, the tool lacks critical production-grade patterns: no output schema documentation, no error handling guidance, no parameter constraints (location accepts any string), and no indication of what happens on invalid input. The description mentions example cities but does not explain format requirements or failure modes. Parameter 'location' has a description but lacks validation rules or examples of valid formats. The hardcoded 'Sunny' return value suggests this is a stub implementation, not production-ready. Baseline: avg tool description 194 chars (this is 95), avg params per tool 4 (this has 1). Tool meets minimum viability but falls short of A/B grade standards.
Retrieves the current weather condition for a specific city or location. Use this tool when the user asks about the weather.
No output schema documented. Tool returns a string but LLM cannot infer structure, format, or possible values (e.g., is 'Sunny' the only valid output? What about error cases?). Pattern:tool requires documented return types.
Parameter 'location' accepts any string with no validation, enum, or format constraint. LLM may pass invalid inputs like empty strings, numbers, or special characters. Pattern:constrained-input requires enums or format rules for known-set parameters.
No error handling or recovery guidance. Tool description does not explain what happens if location is invalid, not found, or if the weather service is unavailable. Pattern:recovery-guide requires error responses to tell the LLM what to do next.
Hardcoded return value ('Sunny') indicates stub/mock implementation, not production-ready. Real weather data integration is missing.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 46 | <=2025-11-25 | v2 |
Description includes example values ('Tokyo', 'London') which LLMs tend to reuse literally in real calls. Pattern:tool-description recommends using parameter constraints (enums, patterns) instead of examples.