Skip to main content
Glama

Scan a dependency manifest for vulnerable and malicious packages

scan_dependencies
Read-onlyIdempotent

Scans package manifests, lockfiles, or package lists against OSV.dev to detect known vulnerabilities and confirmed-malicious packages, returning severity, CVSS, and fixed versions.

Instructions

Checks a package.json, lockfile, requirements.txt, go.mod, Cargo.lock, poetry.lock or composer.lock (contents or a local path) or a package list against OSV.dev for known vulnerabilities and confirmed-malicious packages. Free preview by default (verdict and counts, up to 25 packages). With PKGGUARD_X402_PRIVATE_KEY set, returns the full paid result (affected packages, advisory ids, severity, CVSS, fixed-in versions; up to 500 packages) from https://api.youraitools.co/pkgguard/v1/scan, paying $0.003 USDC on Base per scan over x402. Informational: lists published advisories from OSV.dev for the versions given. Not a security audit; a clean result does not prove a package is safe.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "scan_dependencies"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoOr a local file path to read (e.g. ./package-lock.json)
filenameNo
manifestNoFile contents (package.json, package-lock.json, requirements.txt, Pipfile.lock, poetry.lock, go.mod, Cargo.lock, composer.lock)
packagesNo[{ecosystem, name, version}]
include_devNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4/5.0
Behavior5/5

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

The description adds substantial context beyond the readOnly/openWorld/idempotent annotations: the free-tier cap of 25 packages, the paid cap of 500, the $0.003 USDC on Base x402 payment, the required PKGGUARD_X402_PRIVATE_KEY environment variable, and the backing endpoint. It also discloses the meaningful limitation that a clean result does not prove safety.

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 key facts — supported inputs, free-vs-paid behavior, and the disclaimer — are front-loaded and there is little filler. The long parenthetical file lists and the multi-clause second sentence make it dense, but nothing is truly wasted.

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 and a five-parameter surface, the description carries the return-value burden and does so: preview returns a verdict and counts, paid returns affected packages, advisory ids, severity, CVSS and fixed-in versions. Combined with pricing, auth and scope caveats, an agent has what it needs to call this 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 coverage is 60%, so the description must compensate, and it partly does: it explains that path may be a local file, that manifest holds file contents, that packages is a list, and which manifest filenames are accepted. It never clarifies 'filename' or 'include_dev', both of which remain undocumented outside the schema, so the compensation is incomplete.

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 states a specific verb and resource: it checks named manifest types, file contents or paths, or a package list against OSV.dev for vulnerabilities and malicious packages. An agent can tell what it does immediately. It does not, however, differentiate itself from the sibling 'check_package', so it stops short of a 5.

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?

It gives useful mode-selection guidance — free preview by default (up to 25 packages), full paid result with PKGGUARD_X402_PRIVATE_KEY (up to 500) — and adds a clear caveat that this is not a security audit and a clean result proves nothing. But it never says when to prefer this over the sibling check_package, so the routing guidance is implied rather than explicit.

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

Deploy Server

Other Tools