package_info
List the security advisories known for a package, with the affected and fixed versions.
What this tool does
Returns the advisories of a package across all its versions, most recent first. This covers more ecosystems than purl_audit, for example github, cpan, apache, and freebsd.
When to use this tool
Use this tool when the user asks:
"Which vulnerabilities has this package had?"
"Which version fixes this vulnerability?"
"Which version should I upgrade to?"
To check whether a specific version is vulnerable, use purl_audit or linux_audit: this tool does not evaluate versions.
Inputs
purl: Package URL. The version is ignored. For Linux packages, add the
distroqualifier to limit the results to one release, for examplepkg:deb/ubuntu/curl?distro=noble.limit: maximum number of advisories to return (default 25, maximum 100).
page: page of results to return (default 1).
Outputs
total_results, total_pages, current_page: advisories for the package across all pages
advisories: each with
advisory_id,title,severity,published,cves,status,affected,fixed_versionsaffected: version ranges, each with
versionsand, for Linux packages,distrofixed_versions: each with
versionand, for Linux packages,distro. A version is either reported as fixed by the advisory or the exclusive upper bound of an affected range
LLM usage guidelines
When
total_resultsis 0, say that SecDB has no advisories for this package name, not that the package is safe. Names must match exactly.To recommend an upgrade, consider all the advisories and check the resulting version with
purl_auditwhen its ecosystem is supported.statuscan includemalicious: tell the user to remove the package instead of upgrading it.If
fixed_versionsis empty, say that no fix is known. Do not guess a version.
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": {
"purl": "<purl>"
},
"name": "package_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page of results | |
| purl | Yes | Package URL (PURL) | |
| limit | No | Maximum advisories |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| advisories | Yes | Advisories, with the affected and fixed versions | |
| total_pages | Yes | Pages of results | |
| current_page | Yes | Page returned | |
| total_results | Yes | Total advisories for the package |