validate_license_list
Validate a list of SPDX licenses for distribution compliance and app store compatibility, providing a clear go/no-go decision.
Instructions
QUICK answer to: "Can I ship this with these licenses?"
This tool analyzes a list of licenses without requiring a filesystem path, making it ideal for quick validation checks.
WHEN TO USE:
You have a list of licenses (from scan results)
Need to validate for specific distribution type (mobile, desktop, saas, embedded)
Want app store compatibility check (iOS/Android)
Fast compliance validation without deep analysis
Quick go/no-go decision for shipping
WHEN NOT TO USE:
Need to scan codebase first → use scan_directory
Need detailed policy evaluation → use validate_policy
Need complete legal documentation → use generate_legal_notices after validation
Don't have license list yet → use scan_directory first
WORKFLOW POSITION: Use AFTER scan_directory/check_package to validate licenses, BEFORE generate_legal_notices to confirm compliance.
COMMON WORKFLOW: scan_directory(identify_packages=True) → validate_license_list(distribution="mobile") [VALIDATION STEP] → generate_legal_notices(purls=[...]) [IF APPROVED]
RETURNS CLEAR DECISION:
safe_for_distribution: true/false
app_store_compatible: true/false (if check_app_store_compatibility=True)
recommendations: What to do next
violations: What's wrong (if any)
Args: licenses: List of SPDX license identifiers (e.g., ["MIT", "Apache-2.0"]) distribution: Target distribution type - "mobile", "desktop", "saas", "embedded", "general" check_app_store_compatibility: Check specific App Store (iOS/Android) compatibility
Returns: Dictionary with: - safe_for_distribution: bool - Overall safety assessment - copyleft_risk: str - "none", "weak", or "strong" - risk_level: str - "LOW", "MEDIUM", or "HIGH" - violations: List of identified issues - recommendations: List of actionable recommendations - app_store_compatible: bool - iOS/Android app store compatibility - license_details: Summary of each license
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| licenses | Yes | ||
| distribution | No | general | |
| check_app_store_compatibility | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |