A weather MCP server that provides weather alerts and forecast information using the National Weather Service API
Two read-only tools with proper naming (verb-noun), documented input schemas using Zod, and reasonable descriptions. Naming is clear (get_alerts, get_forecast). Schemas are properly typed with constraints. However, tool descriptions are generic (9-10 words each), parameter descriptions are minimal, and output schemas are completely undocumented. No error recovery guidance. Error handling returns generic failure messages without actionable recovery steps. Missing parameter relationship documentation (e.g., state code format requirements). No pagination/limits despite potential for large result sets. Composition is reasonable, two distinct concerns, no overlaps.
Get weather alerts for a state
Get weather forecast for a location
Tool descriptions are generic and under 50 characters (baseline: 194 chars avg). 'Get weather alerts for a state' and 'Get weather forecast for a location' lack context on WHEN to use each tool, WHAT data is returned, and any prerequisites (e.g., 'Only supports US locations'). LLMs cannot distinguish this tool from similar alternatives or understand its constraints.
Output schemas are completely undocumented. Both tools return hardcoded response objects with a 'content' array, but the LLM is never told what fields to expect, what the 'text' field contains, or how to parse alerts vs. forecast structures. Baseline: 100% of A+ tools document return types. LLMs cannot plan follow-up actions or extract structured data without knowing response structure.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | C | 62 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 48 | - | v1 |
Parameter descriptions are minimal (5-13 words each). 'Two-letter state code (e.g. CA, NY)' assumes the LLM knows this means US state abbreviations, but does not explain what happens with invalid codes or non-US inputs. 'Latitude of the location' and 'Longitude of the location' do not explain the geographic scope (US only for NWS API). Baseline: 100% of A+ tools have parameter descriptions averaging 72 chars. These average ~40-60 chars and lack actionable context.
Error messages are generic and not actionable. 'Failed to retrieve alerts data', 'Failed to retrieve grid point data for coordinates: X, Y. This location may not be supported by the NWS API (only US locations are supported).' The second is better but still provides no recovery path. Pattern requires: 'Error responses must tell the LLM what to do next.' Agents need guidance: retry? ask user? try alternative tool?
No result pagination or limits. The NWS API may return dozens of alerts per state and multiple forecast periods. No limit is set on results, responses could grow unbounded. Baseline: tools returning lists must accept limit/page and cap results at 20-50. get_alerts should document max result count and offer pagination to avoid context window exhaustion.
Schema uses Zod validators (z.string().length(2), z.number().min(-90).max(90)) but does NOT expose them in the registered inputSchema as JSON Schema. The code shows 'inputSchema: { state: z.string().length(2)... }' which may not serialize to standard JSON Schema format expected by MCP clients. Schemas must be explicit JSON Schema objects with 'type', 'properties', 'required', 'enum', 'minimum', 'maximum' fields visible in the registration.