Skip to main content
Glama
mcp-server-npm-registry

mcp-server-npm-registry

Check npm package vulnerabilities

check_package_vulnerabilities
Read-onlyIdempotent

Check a specific npm package version for known security vulnerabilities via OSV.dev, including CVEs and GitHub advisories. Returns severity-sorted findings with fixed versions and reference links.

Instructions

Check a specific npm package version for known security vulnerabilities using the OSV.dev database (includes GitHub Security Advisories and CVEs). If no version is given the latest published version is checked. Returns advisories sorted by severity with CVE aliases, fixed versions and links.

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_name": "<package_name>"
    },
    "name": "check_package_vulnerabilities"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionNoExact version to check, e.g. "4.17.15". Defaults to the latest published version.
package_nameYesnpm package name, e.g. "lodash" or "@angular/core".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations (readOnly/openWorld/idempotent/non-destructive), the description names the backing database, the default-to-latest fallback, and the shape and ordering of results. It does not discuss rate limits, network failure behavior, or coverage gaps for unpublished/private packages.

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?

Three tight sentences: purpose and source first, then the defaulting behavior, then the return contract. No filler, and the most important information is front-loaded.

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 two-parameter read-only lookup with no output schema, the description covers what is checked, what happens when a parameter is omitted, and what the result contains. Nothing an agent needs in order to call it correctly is missing.

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% and both parameters are documented there, including examples and the latest-version default. The description restates the default but adds no format, version-range, or naming semantics 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?

States a specific verb and resource ("Check a specific npm package version for known security vulnerabilities") plus the data source (OSV.dev, incl. GHSA and CVEs). This clearly separates it from siblings like get_package_info, get_bundle_size, and get_download_stats without needing their schemas.

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?

Gives a concrete usage rule: supply a version to check that exact version, omit it to check the latest published version. It does not state when-not to use it or point at an alternative sibling, so it stops short of explicit routing guidance.

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