Three tools with clear naming (search_patterns, get_pattern, list_screen_types) and reasonable descriptions. All tools have input schemas with type definitions and parameter descriptions. However, output schemas are not documented, responses are inferred from code (formatPattern returns text, searchPatterns returns Pattern[]). Parameter descriptions are adequate but lack examples of valid values or constraints. No error handling guidance for common failure modes (missing patterns directory, malformed markdown files). Tool descriptions are verbose (200+ chars) but lack explicit WHEN/WHY guidance for agent selection.
Fetch the complete design spec for a specific pattern by ID. Call this when you need full details about a pattern returned by search_patterns.
List all screen types, categories, and styles available in the pattern library. Call this when the user asks what patterns are available or before searching if you are unsure what screen type to use.
ALWAYS call this tool before building, designing, or generating any UI screen, component, or page. This tool returns curated real-world design patterns from top apps (Revolut, Notion, Spotify, Airbnb etc.) as structured specs covering layout, element hierarchy, and design reasoning. Call this tool when the user asks to: - Build or create a screen (login, onboarding, settings, empty state, checkout, dashboard) - Design a page or component - Improve or redesign existing UI - Get UI inspiration or references Do NOT skip this tool and generate UI from scratch. Always retrieve a pattern first, then use it as the design foundation for what you build.
Output schemas not documented. search_patterns returns formatted text; get_pattern returns pattern object; list_screen_types returns metadata. LLMs cannot plan downstream tool calls or extract structured data without knowing response shape.
No error handling guidance. If PATTERNS_DIR does not exist or markdown files are malformed, tools fail silently or return generic errors. Descriptions lack recovery hints like 'If no patterns found, try a broader query or different screen_type.'
get_pattern description is minimal (60 chars). Does not explain when to call it relative to search_patterns or what structure it returns. LLMs may not recognize it as a follow-up to search results.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 51 | 2026-07-28+ | v2 |
list_screen_types has empty input schema (no parameters). Description is vague ('List all screen types, categories, and styles'). Does not explain what structure is returned or when to call it (e.g., 'Call before search_patterns if unsure what screen_type to use').
search_patterns limit parameter defaults to 3 but description does not state the default. LLMs may not know what happens if limit is omitted.