Overview
n8n-MCP provides multi-level validation with different modes and profiles to balance accuracy, performance, and usability. This guide helps you choose the right validation strategy for your workflow.Validation Levels
Level 1: Quick Check (Before Building)
Use Performance: <100msChecks:
mode: 'minimal' for fast required field validation:- Required fields only
- Visible properties based on current config
- Basic type checking
- Rapid prototyping
- Initial configuration
- Quick sanity checks
Level 2: Comprehensive (Before Building)
Use Checks:
mode: 'full' with validation profiles:- All required and conditional fields
- Type validation
- Value constraints
- Operation-specific rules
- fixedCollection structures
- Special type structures (filter, resourceMapper)
- Detailed errors
- Auto-fix suggestions
- Warnings and best practices
Level 3: Complete (After Building)
Validate the entire workflow:Checks:
- All node configurations
- Connection validity
- Expression syntax
- Circular dependencies
- AI Agent tool compatibility
Validation Modes
- minimal
- operation
- full
Minimal Mode
Fast validation checking only required fields.- ✅ Required properties
- ✅ Property visibility
- ❌ Type validation
- ❌ Value constraints
- ❌ Warnings
- Quick prototyping
- Initial node setup
- Batch validation
- When speed matters most
Validation Profiles
Profiles control the strictness and noise level of validation:minimal - Fastest, Errors Only
minimal - Fastest, Errors Only
- ✅ Missing required fields only
- ✅ Critical security warnings
- ✅ Deprecated properties
- ❌ Type mismatches
- ❌ Best practices
- ❌ Suggestions
- You need instant feedback
- Batch validation of many nodes
- Quick sanity checks
- Performance is critical
runtime - Production-Ready (Recommended)
runtime - Production-Ready (Recommended)
- ✅ Missing required fields
- ✅ Invalid values
- ✅ Type mismatches for undefined fields
- ✅ Security warnings
- ✅ Deprecated properties
- ❌ Property visibility warnings
- ❌ Suggestions
- Validating before deployment
- Production workflows
- You want critical errors only
- Balanced accuracy and performance
ai-friendly - Balanced (Default)
ai-friendly - Balanced (Default)
- ✅ All errors
- ✅ Security warnings
- ✅ Deprecated properties
- ✅ Missing common properties
- ✅ Best practices
- ❌ Property visibility noise
- ❌ Internal property warnings
- AI-assisted workflow building
- Learning proper configuration
- You want helpful suggestions
- Default choice for most cases
strict - Everything
strict - Everything
- ✅ All errors
- ✅ All warnings
- ✅ All suggestions
- ✅ Best practices
- ✅ Credential warnings
- ✅ Error handling requirements
- Auditing workflows
- Learning n8n best practices
- Maximum security and reliability needed
- Code review processes
Choosing the Right Strategy
Rapid Prototyping
Production Workflows
Learning & Development
Security Audit
Validation Patterns
Pattern 1: Two-Pass Validation
Pattern 2: Progressive Validation
Pattern 3: Batch + Detailed
Special Type Validation
fixedCollection Structures
Nodes like If, Switch, and Filter use fixedCollection properties that require specific structures:Bad Example
Good Example
Complex Type Structures
Validation checks special types:- filter: Combinator + conditions array
- resourceMapper: Mapping mode + value mappings
- assignmentCollection: Assignments array
- resourceLocator: Mode + value
Filter Example
Auto-Fix Suggestions
Full validation mode provides auto-fix suggestions:Performance Comparison
| Mode | Profile | Time | Use Case |
|---|---|---|---|
| minimal | - | ~50ms | Quick checks |
| operation | ai-friendly | ~150ms | Step-by-step |
| full | minimal | ~200ms | Fast comprehensive |
| full | runtime | ~300ms | Production |
| full | ai-friendly | ~350ms | Development |
| full | strict | ~500ms | Auditing |
Best Practices
Start Minimal
Use minimal mode while building for instant feedback
Validate Fully Before Deploy
Always use full + runtime before production deployment
Use Operation Mode
Reduce noise by validating only relevant properties
Apply Auto-Fixes
Leverage auto-fix suggestions for common issues
Profile for Context
Choose profile based on your current goal
Validate Workflows
Don’t forget complete workflow validation
Next Steps
Building Workflows
Learn the complete workflow building process
AI Agent Workflows
Special validation for AI Agent workflows
Batch Operations
Efficient workflow updates
Troubleshooting
Common validation issues