Weather MCP Server providing weather alerts and forecasts using the National Weather Service API
The server defines 2 tools with valid schemas and acceptable descriptions. Naming follows verb_noun convention (get_alerts, get_forecast). Schemas use Zod validation with proper type constraints (latitude/longitude bounds, state length). However, tool descriptions are generic and lack contextual depth, they do not explain WHEN to use each tool, what distinguishes them, or prerequisites. Parameter descriptions are present but minimal (e.g., 'Two-letter state code (e.g. CA, NY)' does not explain format constraints rigorously). Output structure is text-only and undocumented, LLMs cannot predict the response schema. Error messages exist but are generic and do not guide recovery. No pagination, no batch operations, no result limits documented. Tool descriptions fall in the 30-40 character range for core content, below the 50-200 character ideal for LLM-optimized tools.
Get weather alerts for a state
Get weather forecast for a location
Tool descriptions lack context and decision guidance. 'Get weather alerts for a state' does not explain when to use this tool vs get_forecast, what formats are returned, or what 'alerts' means (active warnings only? historical?). Descriptions should be 50-200 chars and answer WHAT, WHEN, and WHY.
Output schemas are completely undocumented. Tools return text content in a generic 'content' array structure, but the LLM has no visibility into what fields are present, structure, or format. Production tools must document return types so agents can plan downstream actions.
Parameter description for 'state' includes example 'CA, NY' which LLMs may treat literally. Replace examples with enum constraints or a regex pattern field. Current description: 'Two-letter state code (e.g. CA, NY)', should be structured with a pattern or enum list.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 49 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 44 | - | v1 |
No error recovery guidance. When a tool fails (e.g., 'Failed to retrieve alerts data'), the error message does not explain what the LLM should do next: retry? Use a different tool? Ask the user? Errors must guide recovery.
No result limits documented or enforced. get_alerts for a state could return hundreds of active alerts. Without pagination or a documented limit, responses risk exhausting context. Baseline: cap at 20-50 and offer pagination.
get_forecast returns 'periods' array with all fields (temperature, windSpeed, shortForecast, etc.) as text. No documentation of how many periods are returned, typical array size, or whether pagination is needed. Large forecast periods risk context explosion.