An MCP server that provides weather alerts and forecasts using the National Weather Service API
Two tools with basic schemas and descriptions, but significant gaps in parameter documentation and output structure. Both tools have descriptions (10-20 chars baseline met), but lack depth on WHEN to use them and what they return. Input schemas present but minimal, parameters lack detailed constraints, ranges, or format guidance. No output schema documented. Error handling is generic ('Unable to fetch'). No tool annotations (readOnlyHint, etc.). Naming is acceptable (verb_noun pattern: get_alerts, get_forecast) but descriptions are too terse to guide LLM selection effectively.
Get weather alerts for a US state.
Get weather forecast for a location.
Parameter descriptions missing or trivial. 'state' param has only '2-letter US state code (e.g. CA, NY)', no guidance on case sensitivity, validation, or error recovery. 'latitude'/'longitude' lack range constraints (±90, ±180) or precision guidance.
No output schema documented. Tools return plain strings; LLMs cannot parse structure or extract fields for downstream calls. Forecast returns 5 periods as text, no structured array with typed fields (temperature: number, windSpeed: string, etc.).
Tool descriptions too short (20-30 chars). 'Get weather alerts for a US state' and 'Get weather forecast for a location' lack WHEN to use, prerequisites, or what data is returned. Baseline for A+ tools is 50-200 chars with context.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 42 | <=2025-11-25 | v2 |
Error handling is generic and non-actionable. 'Unable to fetch alerts or no alerts found' and 'Unable to fetch forecast data for this location' give LLM no recovery path. Should specify: is this retryable? Should user provide different input? Are there alternatives?
No tool annotations. Both tools are read-only (risk: READ_ONLY declared in metadata) but readOnlyHint not set in schema. Idempotency not declared. LLM cannot reason about retry safety or side effects.