Skip to main content
Glama

scan_vulnerabilities

Check an npm package version against the OSV advisory database to identify CVEs and security advisories before installing or upgrading.

Instructions

Scan an npm package version against the OSV advisory database (api.osv.dev) for CVEs and security advisories.

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>",
      "version": "<version>"
    },
    "name": "scan_vulnerabilities"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageYesnpm package name
versionYesexact version to scan
ecosystemNoecosystem identifiernpm

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses the external dependency (api.osv.dev) and that the operation is a lookup against a known advisory database, but it says nothing about network/auth requirements, rate limits, behavior when the package or version is unknown, or what the result looks like.

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?

A single tight sentence with zero filler, front-loading the action and resource and appending the data source parenthetically. Nothing here could be removed without losing information.

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

Completeness3/5

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

The tool is simple (three flat parameters, no nesting) and the input side is fully covered by the schema. With no output schema, however, the description never indicates what is returned (a list of advisories? severity? empty result semantics), which is the main remaining gap for an agent deciding how to consume the response.

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%, with each of the three parameters documented inline, so the baseline is 3. The description only restates that a package name and exact version are needed and does not add format or edge-case meaning beyond the schema.

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

Purpose4/5

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

The description gives a specific verb ('Scan'), a specific resource ('an npm package version'), and the exact external source ('OSV advisory database (api.osv.dev)'), so the agent knows precisely what the tool does. It stops short of explicitly distinguishing itself from the nearby verify_package/verify_installed siblings, which likely also take package names, so an agent must infer the boundary from the word 'vulnerabilities'.

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

Usage Guidelines3/5

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

Usage is implied by the framing ('for CVEs and security advisories') but there is no explicit statement of when to reach for this tool versus verify_package, nor any when-not guidance or prerequisites. An agent can infer the intent from the purpose, but nothing routes it away from a sibling.

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