license_audit
Audits package.json dependencies against corporate license policy, flagging viral (GPL/AGPL) and unknown licenses so blocked packages are removed and warnings reviewed.
Instructions
[INSTRUCTIONS] Call this with the dependencies from a package.json to check for license compliance. Pass the dependencies object (and optionally devDependencies) as JSON strings. The tool resolves each package from the npm registry, classifies the license, and applies corporate policy. BLOCKED packages MUST be removed or replaced. WARNING packages need legal review. Use license.check for a single package before adding a new dependency.
Audit all dependencies from a package.json against the corporate license policy — detects viral (GPL, AGPL) and unknown licenses [READ-ONLY]
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dependencies": "<dependencies>"
},
"name": "license_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dependencies | Yes | JSON string of the dependencies object from package.json (e.g., {"lodash":"^4.17.21","express":"^4.18.0"}) | |
| dev_dependencies | No | JSON string of the devDependencies object from package.json | |
| include_transitive | No | Also audit first-level transitive dependencies (slower but more thorough) |