check_license_compatibility
Check license compatibility for combining code. Assess if two SPDX licenses can be used together, with context-specific reasons and recommendations.
Instructions
Check if two licenses are compatible for use together.
This tool answers: "Can I combine code under these two licenses?"
Args: license1: First SPDX license ID (e.g., "MIT") license2: Second SPDX license ID (e.g., "GPL-3.0") context: Usage context (general, static_linking, dynamic_linking)
Returns: Compatibility assessment including: - compatible: True/False indicating if licenses can be combined - reason: Explanation of why they are/aren't compatible - restrictions: Any special conditions or restrictions - recommendations: Suggested actions if incompatible
Example: Checking MIT vs GPL-3.0 returns: - compatible: False - reason: GPL-3.0 is strongly copyleft and requires derivative works to be GPL-3.0 - recommendations: Use dynamic linking, keep code separate, or relicense
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | general | |
| license1 | Yes | ||
| license2 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |