License Compliance Scan
license_compliance_scanEvaluate package licenses against a compliance policy, blocking restricted licenses and warning on others.
Instructions
Evaluate package licenses against compliance policy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scan_json | Yes | JSON string of a previous scan result (from the 'scan' tool) containing agents with packages. Or a JSON array of {"name": "pkg", "version": "1.0", "ecosystem": "npm", "license": "MIT"} objects. | |
| policy_json | No | Optional JSON policy: {"license_block": ["GPL-*"], "license_warn": ["LGPL-*"]}. Uses default policy (block GPL/AGPL/SSPL/BUSL/EUPL/OSL, warn LGPL/MPL/EPL/CDDL) if empty. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |