Skip to main content
Glama

dep_scan

Audit dependency manifests and lockfiles to find pinned package versions with known vulnerabilities using a local offline database; optionally generate JSON, SARIF, Markdown, or HTML reports.

Instructions

Check dependency manifests for known-vulnerable package versions (local DB, no network).

Use when the user asks to audit dependencies or a lockfile: requirements.txt, pyproject.toml, package.json, composer.json/lock, Dockerfile (PHP runtime pinning included). Matches each pinned version against a local OSV index and a builtin vulnerability database — deterministic, offline; nothing is uploaded. path is a local manifest file or a project directory. formats (optional) writes report artifacts (json/sarif/markdown/html) locally. Not for: prompt injection in text/documents — use pitax_scan / docs_scan. Triggers: 依赖漏洞, check my dependencies, is requirements.txt safe, lockfile audit, 旧版本 requests/flask 有漏洞吗.

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": {
      "path": "<path>"
    },
    "name": "dep_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
formatsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.5

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the local OSV index plus builtin DB, determinism, offline operation, and that nothing is uploaded, and notes that report artifacts are written locally. It stops short of stating whether scanning a directory fans out across multiple manifests or what happens when a manifest is unparseable, which are the remaining behavioral unknowns for a scanner.

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 core purpose, then file targets, then behavioral guarantees, then exclusions and triggers — a sensible priority order with no filler sentences. The line-broken fragment style and trailing trigger list are dense but functional rather than wasteful.

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?

An output schema exists, so return values needn't be described, and safety/offline posture plus both parameters are covered. The only gap for a two-parameter scanner is directory-scan scope (one manifest vs. all detected manifests), which an agent would want before pointing it at a project root.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% (parameters are bare titles 'Path' and 'Formats'), so the description must compensate and largely does: it defines `path` as a local manifest file or a project directory and `formats` as optionally writing report artifacts in json/sarif/markdown/html. It does not clarify the delimiter/syntax for multiple formats even though the type is a plain string, which is the one remaining ambiguity.

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 dependency manifests for known-vulnerable package versions') plus a scope qualifier ('local DB, no network'). It also explicitly excludes the adjacent scan tools ('Not for: prompt injection ... use pitax_scan / docs_scan'), so an agent can distinguish it from all four siblings without opening a 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 when-to-use condition ('when the user asks to audit dependencies or a lockfile') and enumerates concrete target artifacts (requirements.txt, pyproject.toml, package.json, composer.json/lock, Dockerfile). It pairs that with a when-not-to-use line naming the alternatives pitax_scan and docs_scan, and adds multilingual trigger phrases that map user phrasing onto the tool.

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