Skip to main content
Glama

Open-source package vulnerabilities: package@version to CVEs, severity, fixed versions

package_vulnerabilities
Read-onlyIdempotent

Use when an agent must check a dependency before installing or upgrading: is this exact package version vulnerable? Input: package, ecosystem (npm, PyPI, Go, Maven, crates.io, NuGet, RubyGems, Packagist...), version. Output: JSON vulnerable yes/no, counts by severity, advisories (GHSA/CVE id, summary, severity, CVSS, CWE, fixed versions, links). Data: OSV.dev. Use instead: package_vulnerabilities_batch for many dependencies; dev_package for maintenance and health. Example: ?package=lodash&ecosystem=npm&version=4.17.15 Price: $0.003 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.

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": {
      "package": "<package>",
      "ecosystem": "<ecosystem>",
      "version": "<version>"
    },
    "name": "package_vulnerabilities"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageYesPackage name as in its registry (Go: module path; Maven: group:artifact)
versionYesExact released version
ecosystemYesPackage ecosystem (case-insensitive; pip/python, cargo/rust, composer, gem also accepted)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely non-obvious behavior: the upstream data source (OSV.dev), the response shape, and a per-call price of $0.003 paid in USDC via x402 across five chains — a real prerequisite an agent must know before calling. It stops short of error/rate-limit behavior, so not a 5.

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?

Front-loaded with the trigger and question it answers, then telegraphic Input/Output/Data/Use-instead/Example/Price blocks that each carry distinct information. The pricing sentence is long and slightly tacked on, but it is not filler.

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?

With no output schema, the description carries the return-value burden and does so: yes/no verdict, severity counts, and advisory fields (GHSA/CVE, CVSS, CWE, fixed versions, links). Inputs, data source, alternatives, and payment requirement are all present, leaving nothing an agent needs to call it correctly.

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 all three parameters are already documented, including the Go module-path and Maven group:artifact conventions. The description adds only a worked example query string and an ecosystem list, which is marginal value over the schema — baseline 3 applies.

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?

States a specific verb and resource ('check a dependency... is this exact package version vulnerable?') and names the exact inputs (package, ecosystem, version) and output (CVE/GHSA advisories with severity and fixed versions). It explicitly distinguishes itself from package_vulnerabilities_batch and dev_package, so an agent can route without opening any schema.

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?

Gives an explicit trigger ('before installing or upgrading') and explicit alternatives with the condition that selects each: batch for many dependencies, dev_package for maintenance and health. Both when-to-use and when-to-use-something-else are covered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources