Check a package for vulnerabilities
check_packageChecks one package from npm, PyPI, Composer, RubyGems, Go, Maven or NuGet against OSV.dev advisories (GitHub, CVE and malware reports) before you install or upgrade it. With a version, says whether that exact version is affected and the lowest version that fixes it; without one, checks the latest release and lists the known advisories. Flags packages reported as malicious.
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": {
"ecosystem": "<ecosystem>",
"name": "<name>"
},
"name": "check_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Package name as the registry writes it, e.g. lodash, @angular/core, django, laravel/framework, github.com/gin-gonic/gin, org.apache.logging.log4j:log4j-core | |
| version | No | An exact version to check, e.g. 4.17.20. Leave it out to check the latest release. | |
| ecosystem | Yes | Package registry: npm, pypi, composer (Packagist), rubygems, go (module path), maven (group:artifact) or nuget |