Query OSV.dev for a package
query_osvQuery OSV.dev for known vulnerabilities affecting an open source package, by ecosystem and name, optionally for one version. Results are sorted by modified descending (then id). When truncated is true, pass nextPageToken (opaque offset) for the next page. Ecosystem names are normalised (pypi→PyPI). Returns ids, aliases (CVE, GHSA), summaries, severity, CWE ids, fixed versions, and links. Read-only. Fetched on demand and cached for up to an hour.
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": "query_osv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Package name as published in the ecosystem, for example jinja2, @angular/core, or org.apache.logging.log4j:log4j-core. | |
| limit | No | Maximum vulnerabilities to return (default 20). | |
| version | No | Optional version; only vulnerabilities affecting it are returned. Omit to list all known for the package. | |
| ecosystem | Yes | OSV ecosystem name (case-insensitive; pypi→PyPI, maven→Maven). Common values: PyPI, npm, Maven, Go, crates.io, NuGet, RubyGems, Packagist, or versioned forms such as Debian:12, Alpine:v3.20. | |
| pageToken | No | Opaque nextPageToken from a previous result (offset into the sorted set: modified desc, then id). |