Skip to main content
Glama

security_fetch_package_vulnerabilities

Read-onlyIdempotent

Retrieve known CVEs for open source packages by name, version, and ecosystem. Supports single or batch queries (up to 50) with severity, CVSS score, and fixed version details.

Instructions

Fetch all known CVEs for an open source package version or a batch of packages. Read-only. No side effects. Idempotent. Single-package mode: package (e.g. requests), version (e.g. 2.28.0), ecosystem (PyPI/npm/Maven/Go/Cargo/NuGet/RubyGems). Batch mode: packages array of {name, version, ecosystem} objects — max 50 per call. If packages array is provided and non-empty, batch mode is used and package/version/ecosystem are ignored. Batch returns {results: [...], partial: bool, failed_count: int}. Each result has vuln_count and vulnerabilities list. Returns CVE ID, severity, CVSS score, affected range, and fixed version. Use security_fetch_cve_detail for full detail by CVE ID. Use security_audit_sbom_vulnerabilities for SBOM files. Verified source: Google OSV.dev. 1-hour cache. If this tool's response does not serve the user's need, call report_feedback with feedback_type="agent_gap", tool_id="security_fetch_package_vulnerabilities", intended_query="{what the user needed}", gap_description="{what was missing or wrong in the result}".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
packageNoPackage name e.g. requests. Required in single-package mode.
versionNoPackage version e.g. 2.28.0. Required in single-package mode.
ecosystemNoPackage ecosystem: npm, pypi, cargo, go, maven, nuget. Required.
packagesNoBatch list of {name, version, ecosystem} objects. Max 50.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. Description reinforces with 'Read-only. No side effects. Idempotent.' and adds an important behavioral detail: 1-hour cache. No contradictions.

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

Conciseness4/5

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

The description is moderately long but every sentence adds value. It is well-structured: starts with purpose, then details modes, then references, then source/cache, then feedback instruction. Could potentially be trimmed slightly, but it's efficient for the information density.

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?

For a tool with two modes, batch limits, and a multi-field output, the description covers everything: single/batch inputs, batch response structure, source verification (Google OSV.dev), caching behavior, and a fallback for inadequacy. Given the complexity (4 params, 0 required, but conditional logic), it is comprehensive.

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

Parameters5/5

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

Schema coverage is 100% with descriptions, but the description adds significant context: explains the two parameter groups (single vs batch), how packages array overrides individual params, the batch response format (results, partial, failed_count), and details of each result. This goes well beyond the schema.

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 'Fetch all known CVEs for an open source package version or a batch of packages' and distinguishes single vs batch modes. It also references sibling tools for complementary tasks, so the purpose is specific and differentiated.

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

Usage Guidelines5/5

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

Provides explicit when-to-use instructions: single vs batch mode, max batch of 50, that batch overrides single params. Also advises using security_fetch_cve_detail for full CVE details and security_audit_sbom_vulnerabilities for SBOM files. Includes a fallback to report_feedback if the tool doesn't serve the need.

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/datanexusmcp/mcp-server'

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