install_package
Evaluates an npm package's risk before installation. Returns a verdict (ok/warn/block) with triggering signals to prevent malicious packages.
Instructions
Evaluate the risk of an npm package before installing it. Returns a structured verdict (ok/warn/block) with the signals that triggered. Use this BEFORE calling npm install for any package. If level is 'block', do not install without explicit user approval.
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": {
"name": "<name>"
},
"name": "install_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | npm package name. Scoped packages like `@scope/name` are supported. | |
| version | No | Optional pinned version. If omitted, the latest version is evaluated. |