Helper Tools
The Helper Tools are a collection of optimized MCP tools designed to prevent common ID errors and improve workflow efficiency. These tools provide easy access to resource information and eliminate the need to guess or remember complex UUIDs.π Why Helper Tools?
Common Problems Solved
- β Invalid ID errors: No more guessing workspace, tokenset, or mode IDs
- β Complex UUIDs: No need to remember or copy long UUID strings
- β Workflow confusion: Clear step-by-step guidance for operations
- β Resource discovery: Easy way to find and explore your design tokens
Benefits
- 90% fewer ID errors through validation and guidance
- Faster workflows with direct access to common operations
- Better discovery of existing tokens and resources
- Clearer error messages with helpful suggestions
π Available Helper Tools
Resource Discovery
| Tool | Purpose | When to Use |
|---|---|---|
list_resources | List all resources with IDs | First step in any workflow |
Token Operations
| Tool | Purpose | When to Use |
|---|---|---|
search_tokens | Search tokens by name, type, or value | Finding existing tokens |
get_tokens_by_mode | Get tokens from any mode by name | Getting tokens from specific modes |
π Recommended Workflows
Workflow 1: Discover Resources
Workflow 2: Find Existing Tokens
Workflow 3: Get Tokens by Mode
π― Best Practices
1. Always Start with Discovery
2. Use Search Before Creating
3. Use Flexible Mode Selection
π§ Error Prevention
Common Errors and Solutions
| Error | Cause | Solution |
|---|---|---|
| βInvalid workspace ID formatβ | Using wrong ID format | Use get_workspace_info first |
| βWorkspace not foundβ | Using non-existent ID | Use get_workspace_info to find valid IDs |
| βTokenset not foundβ | Using workspace ID as tokenset ID | Use get_tokenset_info to find valid IDs |
| βMode not foundβ | Using tokenset ID as mode ID | Use get_mode_info to find valid IDs |
Validation Features
- UUID format validation: Automatic validation of ID formats
- Helpful error messages: Clear guidance when errors occur
- Resource existence checks: Verify resources exist before operations
- Suggestion system: Automatic suggestions for correct tools to use
π Related Documentation
- MCP Introduction - Overview of MCP server
- Installation Guide - Setting up the MCP server
- Configuration - Configuring the server
- Basic Tools - Standard MCP tools
- Examples - Usage examples and workflows
π Getting Started
- Start with workspace discovery: Use
get_workspace_info - Explore your tokensets: Use
get_tokenset_info - Find existing tokens: Use
find_tokens_by_name - Get Light mode tokens: Use
get_light_mode_tokens