Look up a package
get_packageEvery known vulnerability in one open source package, most urgent first, with the affected ranges and fixed versions published for that package. Give a version to learn which advisories affect it and the lowest upgrade that leaves every affecting range.
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": "get_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The package name, such as lodash, django, org.apache.logging.log4j:log4j-core or golang.org/x/net. | |
| sort | No | priority | |
| limit | No | ||
| cursor | No | next_cursor from the previous page. | |
| version | No | Optional exact version to check, such as 4.17.20. | |
| ecosystem | Yes | npm, PyPI, Maven, Go, crates.io, RubyGems, Packagist, NuGet, Hex or Pub. | |
| only_affected | No | With version, list only the advisories that affect it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| total | No | ||
| counts | No | ||
| package | No | ||
| version | No | The version check, when a version was given: affected_by, not_comparable, no_fix_listed and upgrade_to. | |
| matching | No | ||
| next_cursor | No | Pass as cursor, with the same arguments, for the next page. | |
| index_complete | No | ||
| vulnerabilities | No |