Demo MCP server for providing current weather and forecast data for specified locations
Single tool with basic structure but significant gaps in parameter documentation and output schema clarity. The tool 'get_current_weather' has a minimal description (5 words, well below the 10-character minimum baseline), a single required parameter with description, but lacks any documented output schema. Error handling is present but generic. The implementation shows proper async handling and JSON response formatting, but schema-level documentation and LLM-friendly descriptions are missing. Baseline: median tool descriptions are ~194 chars; this tool is ~50 chars. Only 1 parameter, so composition is trivial but appropriate for a single-function server.
Get current weather and forecast for a location
Tool description is severely underdeveloped (5 words: 'Get current weather and forecast for a location'). Below minimum baseline of ~34 chars at p10. Lacks WHEN to use it, what prerequisites exist, and what the output structure contains. LLMs cannot reliably determine selection criteria.
No output schema documented. Tool returns a JSON object with nested 'currently' containing temperature, humidity, wind, UV, and 'forecasts' array, but this structure is not declared in the tool definition. LLMs cannot plan downstream operations or validate responses without an explicit return schema.
Parameter 'location_name' lacks guidance on format constraints. No documentation of what 'location' means: city name? City + state/country? Postal code? Coordinate? LLMs will guess and pass ambiguous inputs like 'New York' vs 'New York, NY' vs 'US-NY-New York', leading to API failures.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 47 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 49 | - | v1 |
No error handling guidance in tool description. Code catches exceptions and raises RuntimeError, but the tool definition does not document failure modes (invalid location, API timeout, rate limit) or recovery actions. LLMs cannot self-correct or decide whether to retry.
Parameter description is minimal ('The location to get the weather for'). Does not specify format, constraints, or examples. Should clarify: 'City name (e.g. "San Francisco", "London", "Sydney") or city, country code (e.g. "Paris, FR").'