Query package vulnerabilities
query_package_vulnsQueries OSV.dev for known vulnerabilities in an open-source package by ecosystem, package name, and optional version to support dependency risk checks.
Instructions
Query OSV.dev (/v1/query) for known vulnerabilities in an open-source package by ecosystem, package name, and optional 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": {
"ecosystem": "<ecosystem>",
"package": "<package>"
},
"name": "query_package_vulns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of vulnerabilities to return (1 to 100, default 20). | |
| package | Yes | Package name within the ecosystem (e.g. "lodash", "django", "stdlib", "serde", "org.apache.logging.log4j:log4j-core"). | |
| version | No | Optional specific package version to check (e.g. "4.17.20"). Omit to list all known advisories for the package. | |
| ecosystem | Yes | Package ecosystem (e.g. "npm", "PyPI", "Go", "crates.io", "Maven", "NuGet", "Packagist", "RubyGems"). | |
| page_token | No | Optional OSV.dev pagination token from a previous response. |