A weather information server providing US weather alerts and forecasts via the National Weather Service API
This server has 2 well-named tools (get_alerts, get_forecast) that follow verb_noun conventions and are clearly documented in docstrings. However, there are significant gaps in schema formality, parameter descriptions, and output structure. Both tools accept only 1-2 parameters without explicit enum constraints or detailed ranges. Tool descriptions are minimal (20-30 chars), below the 50-200 char optimal range. Critically, no output schemas are documented, the tools return plain strings rather than structured JSON, making it impossible for LLMs to extract specific fields (e.g., alert severity, forecast temperature) for downstream composition. Error handling is present but generic. No tool annotations (readOnlyHint, etc.) despite being read-only. The fastmcp framework abstracts the actual JSON Schema generation, but parameter validation and constraints are not visible in code.
Get weather alerts for a US state.
Get weather forecast for a location.
Tool descriptions are under 50 characters and lack context for when to call them. 'Get weather alerts for a US state' tells the LLM WHAT but not WHEN or WHY. Missing: dependency hints (e.g., 'Call when user asks about current threats'), prerequisites, or alternatives to similar tools.
Output is unstructured plain text (string return type). LLMs cannot parse alert severity, area, event type, or forecast temperature/wind direction as separate fields. No ability to filter, sort, or compose results. A downstream tool expecting structured alert data (e.g., filter_alerts_by_severity) cannot work.
Parameter 'state' for get_alerts lacks an enum constraint. Descriptions say 'Two-letter US state code (e.g. CA, NY)' but this is an example, not a constraint. LLMs cannot validate, they will try 'California', 'ca', 'CA.', or other variants. Need explicit enum of all 50 valid codes or a regex pattern.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 48 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 40 | - | v1 |
No input validation or error guidance. If latitude/longitude are out of range or invalid, the code silently returns 'Unable to fetch forecast data for this location.' An LLM cannot distinguish between 'wrong coordinates', 'network timeout', or 'API error'. No recovery hint (e.g., 'Valid range: -90 to 90 for latitude').
No tool annotations. Both tools are READ_ONLY and IDEMPOTENT (safe to retry), but these properties are not declared via readOnlyHint or idempotentHint in the schema. LLMs cannot automatically infer safety, they may avoid retrying on timeout or network failure, reducing robustness.
No pagination or result limits documented. get_alerts returns ALL active alerts for a state (potentially hundreds). If a state has 100+ alerts, returning all as concatenated text will blow the context window. No pagination parameters, no limit documentation, no guidance on max results.
Parameter descriptions are under 20 characters. 'Two-letter US state code (e.g. CA, NY)' is an example, not a description, it does not explain the format (uppercase vs. lowercase), what happens with invalid codes, or provide a validation rule. 'Latitude of the location' says WHAT but not constraints (range, precision).