check_package
Check a PyPI or npm package before you install or recommend it. Returns a verdict and safe_to_install flag covering existence, age, downloads, install scripts, deprecation, and known vulnerabilities.
Instructions
Check a PyPI or npm package before installing or recommending it. Asks the registry whether the name exists at all (invented package names are how slopsquatting attacks land), how old it is, how much it is downloaded, whether it runs install scripts, whether it is deprecated or yanked, whether OSV lists vulnerabilities, and whether the name is a near-miss of a popular package. Returns a verdict and a safe_to_install flag.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Package name. | |
| version | No | Optional exact version to check. | |
| packages | No | Check several packages in one call. | |
| ecosystem | No |