Check a package before installing it
package_checkCall before npm install or pip install, above all for a package name you were not given by a person. Give npm: or pypi: (or @, ==). Answers from the registry and OSV: not_found (nothing is published under the name, and anyone could register it: npm also lists the real names it resembles), malicious, suspicious (one edit from a far more downloaded package, or new and unused), caution (a release under 7 days old, deprecated, install scripts, advisories), version_not_found or ok, with dates, downloads and advisory ids. It reads no package code: ok is not a statement that the code is safe.
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": {
"package": "<package>"
},
"name": "package_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | npm:<name> or pypi:<name>; <name>@<version> and <name>==<version> work too | |
| version | No | one exact version; default the latest | |
| ecosystem | No | when package has no npm: or pypi: prefix |