Osv Query Package
osv_query_packageQuery known vulnerabilities for a single package version using {name, ecosystem, version} or {purl, version?}; supply exactly one embedded or separate version. Release-qualified Ubuntu names are resolved to the source packages OSV indexes. Returns all matching OSV advisories with severity (CVSS vectors), CVE aliases, affected version ranges, and the fixed versions listed for the queried package. Find canonical ecosystem names and the Alpine release format in osv_list_ecosystems. Known base names are case-insensitive. Recognized tuple suffix aliases resolve to their release or variant, such as Ubuntu:jammy to Ubuntu:22.04:LTS. Bases such as npm, PyPI, and crates.io take no suffix. For overflow, repeat the original input with page: overflow.page. Continue the same path with offset: page.nextOffset and revision: page.revision until nextOffset is null. Retrieve each entries[].deferred.path separately at offset zero without a revision. Do not pass the output page object as input. Set page.advisoryId to an announced ID to fetch its fields with fixes and severity for the queried package; retain advisoryId on subsequent pages. Pages are fresh lookups; restart a changed node without a revision. Transmission overflow and upstream truncated are separate; neither confirms clean.
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": "osv_query_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Exact package name in its ecosystem. | |
| page | No | Repeat the original input with page: overflow.page first; later select path, offset: page.nextOffset and revision: page.revision. Retain advisoryId when set. | |
| purl | No | PURL alternative to name and ecosystem; supply one embedded or separate version. | |
| cursor | No | Pass nextCursor unchanged with the same effective query. Repeat this input cursor when retrieving fields from a resumed response. | |
| version | No | Exact installed version from the lockfile, never a range. npm/crates.io require three numeric components with optional prerelease/build metadata or leading v; = and == exact pins are normalized. | |
| ecosystem | No | Ecosystem identifier from osv_list_ecosystems. Known base names are case-insensitive. Preserve suffix spelling. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | One bounded page of an addressed normalized node. | |
| error | No | Present when the call failed. Absent on success. | |
| vulns | No | Vulnerabilities matching this package version. An empty initial result confirms no known vulnerabilities only when truncated is false. An empty terminal resume confirms exhaustion of the continuation. | |
| notice | No | Present on the clean path — confirms no known vulnerabilities for the queried package. | |
| preview | No | Compact view; overflow identifies omissions. This is not the complete record. | |
| overflow | No | Transmission overflow disclosure; independent of upstream truncation. | |
| queryMeta | No | Effective package coordinates after normalization, with the original PURL when supplied. | |
| truncated | No | True when the page cap or operation deadline interrupted OSV matching. Use nextCursor to continue. | |
| nextCursor | No | Resume the OSV query by passing this value unchanged as cursor with the same identifier. | |
| effectiveQuery | No | The package@version (ecosystem) tuple as queried, echoed for content-only clients. | |
| continuationExhausted | No | The resumed OSV continuation is exhausted and returned no further advisories. |