Skip to main content
Glama

Scan a dependency manifest for vulnerable and malicious packages

scan_dependencies
Read-onlyIdempotent

Checks a package.json, lockfile, requirements.txt, go.mod, Cargo.lock, poetry.lock or composer.lock (or a list of packages) against OSV.dev for known vulnerabilities and confirmed-malicious packages. Returns per-package advisory ids (CVE/GHSA/MAL), severity, CVSS and fixed-in versions. Free tier: 30 calls/day per IP with full results, up to 100 packages; then $0.003 per scan (up to 500) in USDC over x402 (/v1/scan).

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
filenameNoOptional file name, helps type detection
manifestNoManifest or lockfile contents (package.json, package-lock.json, requirements.txt, Pipfile.lock, poetry.lock, go.mod, Cargo.lock, composer.lock)
packagesNoAlternative to manifest: [{ecosystem, name, version}], up to 500
include_devNoInclude devDependencies (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover read-only/open-world/idempotent, but the description goes well beyond that: concrete free-tier limits (30 calls/day per IP, 100 packages), paid tier pricing and cap (500 packages, $0.003 USDC via x402), and the shape of results (per-package CVE/GHSA/MAL ids, severity, CVSS, fixed-in). That is exactly the cost and quota context an agent needs before invoking.

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?

Three dense sentences, front-loaded with what it accepts and what it returns, with quota/pricing trailing. The x402/USDC and endpoint path detail is slightly in-the-weeds but earns its place for cost-aware callers.

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

Completeness4/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 adequately (advisory ids, severity, CVSS, fix versions). It leaves one loose end for a zero-required-parameter tool: it never says what happens if called with no manifest and no packages, or how manifest and packages interact if both are supplied.

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 100%, so all four parameters are already documented, and the description mostly restates them (file types, 'up to 500' packages). It adds little syntax or precedence guidance beyond the schema's own note that 'packages' is an alternative to 'manifest'; baseline 3 is appropriate.

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 ('Checks ... against OSV.dev') and enumerates the exact resource types accepted (package.json, lockfiles, requirements.txt, go.mod, etc.), plus the alternative package-list input. The multi-package/manifest scope implicitly and effectively separates it from the single-package sibling check_package.

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?

Clear context for when to reach for it — you have a manifest/lockfile or a batch of packages — and it explicitly frames 'packages' as an alternative to 'manifest'. It does not name check_package or state when a single-package check is preferable, so routing between the two siblings is left to inference.

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