Skip to main content
Glama

Query Package Vulnerabilities

osv.security.query
Read-onlyIdempotent

Check known vulnerabilities for a specific package version across ecosystems like npm, PyPI, Go, and more. Get CVE/GHSA IDs, severity scores, and affected package counts from Google OSV.dev.

Instructions

Check known vulnerabilities for a specific package version in any ecosystem (npm, PyPI, Go, Maven, Rust, NuGet, 14+ more). Returns CVE/GHSA IDs, severity scores, and affected package counts. Powered by Google OSV.dev — aggregates GitHub Security Advisories, NVD, and ecosystem-native databases.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
packageYesPackage name (e.g. lodash, requests, gin-gonic/gin)
versionYesPackage version to check (e.g. 4.17.20, 2.25.0)
ecosystemYesPackage ecosystem (npm, PyPI, Go, Maven, crates.io, NuGet, Packagist, RubyGems, etc.)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already provide safety and idempotency hints. The description adds valuable behavioral context: it is powered by Google OSV.dev and aggregates multiple databases, and it specifies the output format. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three concise sentences, each earning its place: purpose, output, and data source. No fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is complete for a query tool with simple parameters and an output schema. It covers what the tool does, what it returns, and the underlying data source, leaving no obvious gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description does not add parameter semantics beyond the schema, but it provides useful examples (e.g., 'lodash' for package). This adds marginal value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with the verb 'Check' and resource 'known vulnerabilities for a specific package version'. It provides examples of ecosystems and explicitly mentions the return values (CVE/GHSA IDs, severity scores, affected package counts), distinguishing it from siblings like batch or get.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when checking a single package version for vulnerabilities. It does not explicitly mention when not to use it or name alternatives (e.g., batch), but the context is clear enough for an agent to infer appropriate use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/whiteknightonhorse/APIbase'

If you have feedback or need assistance with the MCP directory API, please join our Discord server