Skip to main content
Glama

Triage dependency vulnerabilities

triage_dependencies
Read-onlyIdempotent

Use this when the user wants to know which vulnerable dependencies to fix first, such as "which dependencies in this package-lock.json should I upgrade first?" or "triage my requirements.txt". Pass the text of a lockfile (package-lock.json, pnpm-lock.yaml, yarn.lock, poetry.lock, uv.lock, Cargo.lock, go.sum or go.mod), a package.json or a requirements.txt as manifest, or a packages list of ecosystem, name and exact version (npm, pypi, go, crates.io, maven, rubygems, nuget, packagist); only names and versions are read. Returns fix_first: by default the 3 packages to upgrade first, each with a priority (malicious, exploited, likely, routine or unknown), one line on why, the CVE ids and the version that fixes it, then a short list of the other vulnerable packages and a count per priority. It matches exact package versions to known advisories; it does not scan code or show that the vulnerable code is reached.

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": "triage_dependencies"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many packages to put in fix_first (default 3)
manifestNoThe text of one dependency file. Lockfiles give exact versions: package-lock.json, pnpm-lock.yaml, yarn.lock (npm), poetry.lock, uv.lock (PyPI), Cargo.lock (crates.io), go.sum or go.mod (Go). A package.json is read at the lowest version of each range, a requirements.txt only for == pins. Only names and versions are read; workspace, git, path and url entries are skipped. Every package is checked, up to 3000 in one call; past that, unchecked counts the rest.
packagesNoInstalled packages: ecosystem (npm, pypi, go, crates.io, maven, rubygems, nuget, packagist), name and exact version. Up to 300.

Output Schema

NameRequiredDescriptionDefault
as_ofYes
cleanYes
countsYes
noticeYes
sourceYes
statusYes
checkedYes
messageNo
skippedNo
summaryYes
fix_firstYes
truncatedNoTrue when the input held more than 3000 packages and only the first 3000 were checked
uncheckedNoHow many packages were not checked because of that cap
advisoriesNo
vulnerableYes
not_triagedYes
skipped_countNo
also_vulnerableYes
also_vulnerable_totalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / manifest / description
      Previous value: -"The text of one dependency file. Lockfiles give exact versions: package-lock.json, pnpm-lock.yaml, yarn.lock (npm), poetry.lock, uv.lock (PyPI), Cargo.lock (crates.io), go.sum or go.mod (Go). A package.json is read at the lowest version of each range, a requirements.txt only for == pins. Only names and versions are read; workspace, git, path and url entries are skipped."New value: +"The text of one dependency file. Lockfiles give exact versions: package-lock.json, pnpm-lock.yaml, yarn.lock (npm), poetry.lock, uv.lock (PyPI), Cargo.lock (crates.io), go.sum or go.mod (Go). A package.json is read at the lowest version of each range, a requirements.txt only for == pins. Only names and versions are read; workspace, git, path and url entries are skipped. Every package is checked, up to 3000 in one call; past that, unchecked counts the rest."
    • addedOutput schema / properties / truncated / description
      Added value: +"True when the input held more than 3000 packages and only the first 3000 were checked"
    • addedOutput schema / properties / unchecked
      Added value: +{
      +  "description": "How many packages were not checked because of that cap",
      +  "type": "integer"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / manifest / description
      Previous value: -"The text of a package-lock.json (best: exact versions), a package.json (ranges read at their lowest version) or a requirements.txt (only == pins). Only names and versions are read."New value: +"The text of one dependency file. Lockfiles give exact versions: package-lock.json, pnpm-lock.yaml, yarn.lock (npm), poetry.lock, uv.lock (PyPI), Cargo.lock (crates.io), go.sum or go.mod (Go). A package.json is read at the lowest version of each range, a requirements.txt only for == pins. Only names and versions are read; workspace, git, path and url entries are skipped."
  3. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description does add real behavioral context beyond them: only names and versions are read, workspace/git/path/url entries are skipped, matching is against known advisories, and reachability is not assessed. It does not state rate limits or error behavior, so it is solid but not rich.

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 use case, then inputs, then output shape, then the boundary — a sensible ordering. It is dense and packs long enumerations of file types and ecosystems that duplicate the schema, costing some brevity.

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 read-only triage tool with a full input schema and an output schema, the description covers the trigger, accepted inputs, the fix_first return shape with its priority taxonomy, and the key limitation. Nothing an agent needs to call it correctly or interpret the answer 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 coverage is 100%, including the limit default, the 3000-package cap and the ecosystem enum, so the baseline is 3. The description largely restates the schema (lockfile names, ecosystems, 'only names and versions are read') rather than adding new meaning like precedence when both manifest and packages are supplied, or which one wins.

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 ('triage dependency vulnerabilities') plus the scoping detail that distinguishes it from siblings: it ranks vulnerable packages to fix first rather than looking up one advisory. The closing sentence explicitly bounds it ('matches exact package versions to known advisories; it does not scan code or show that the vulnerable code is reached'), so an agent can tell it apart from check_cve/check_cves 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 Guidelines4/5

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

Opens with a clear triggering condition ('when the user wants to know which vulnerable dependencies to fix first') and gives two concrete user phrasings plus an explicit when-not ('does not scan code or show that the vulnerable code is reached'). It never names a sibling to use instead for single-CVE lookups, so routing away from check_cve 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.