MCP server for the Avalanche.org Public API map-layer endpoints
The server provides 4 tools with clear names starting with action verbs (get, search pattern via 'lookup'). All tools have descriptions (120-180 chars, within baseline 34-392 range) and explicit input schemas using Zod with type and description annotations. However, output schemas are NOT documented, responses are returned as generic JSON text without a declared structure, forcing LLMs to infer field names. Parameter descriptions are adequate (50-80 chars) but some lack format constraints (e.g., 'day' accepts YYYY-MM-DD format as a string with no regex validation visible). Error handling is minimal, no recovery guidance, no retryable classification, no alternative suggestions. The tools are read-only and safe, but the lack of output schema documentation and error guidance prevents a higher score.
Get the current avalanche danger rating and forecast metadata for the avalanche zone containing a latitude/longitude point. Can fall back to the nearest zone.
Get the avalanche danger rating and forecast metadata for the avalanche zone containing a latitude/longitude point on a specific historic day (YYYY-MM-DD). Can fall back to the nearest zone.
Return the raw Avalanche.org map-layer GeoJSON FeatureCollection for all avalanche centers. Supports an optional historic day (YYYY-MM-DD).
Return the raw Avalanche.org map-layer GeoJSON FeatureCollection for a specific avalanche center ID. Supports an optional historic day (YYYY-MM-DD).
Output schemas are not documented. All tools return responses as `textResult()` wrapping JSON in a text content block. LLMs cannot infer the structure of returned fields (e.g., what properties exist in the danger rating object, what GeoJSON structure is returned). This forces LLMs to guess and parse unstructured output, violating the response-shaper pattern.
No error handling guidance. The tools do not explicitly handle network failures, invalid coordinates, missing zones, or malformed date input. The validation in `lib/validation.ts` (e.g., `assertValidDay`) is not visible in tool-level error documentation, so LLMs cannot know how to recover from 'Invalid day format' or 'Point outside all zones' errors.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 54 | 2026-07-28+ | v2 |
| 2026-04-07 | F | 14 | - | v1 |
Parameter format constraints not enforced at schema level. The 'day' parameter is a free-form string with description 'YYYY-MM-DD format' but no Zod pattern constraint visible (e.g., `.regex(/^\d{4}-\d{2}-\d{2}$/)`). This invites LLMs to pass '2024-1-5' or '01-15-2024' instead of ISO format, causing failures.
Tool names lack clear verb_noun pattern distinction. 'raw_map_layer' and 'raw_map_layer_by_avalanche_center' both return the same data but scoped differently. The difference is buried in parameter variance (presence of centerId), not the name. Consider 'get_map_layer_all_centers' vs 'get_map_layer_by_center' for clarity.
No pagination documented for map layer results. 'raw_map_layer' and 'raw_map_layer_by_avalanche_center' return entire GeoJSON FeatureCollections with no mention of result limits, pagination, or size expectations. If a collection contains hundreds of features, the response token cost could explode, exhausting context windows.