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.

Input Schema

TableJSON 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.
packagesNoInstalled packages: ecosystem (npm, pypi, go, crates.io, maven, rubygems, nuget, packagist), name and exact version. Up to 300.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
as_ofYes
cleanYes
countsYes
noticeYes
sourceYes
statusYes
checkedYes
messageNo
skippedNo
summaryYes
fix_firstYes
truncatedNo
advisoriesNo
vulnerableYes
not_triagedYes
skipped_countNo
also_vulnerableYes
also_vulnerable_totalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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."
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), yet the description still discloses non-obvious behaviour: only names and versions are read, workspace/git/path/url entries are skipped, and matching is done against known advisories by exact version rather than by code analysis. That limitation is the single most important thing an agent needs to avoid over-claiming results.

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 usage trigger, then inputs, then outputs, then limits – a sensible order. It is somewhat repetitive, listing the ecosystem and lockfile enumerations twice and re-explaining return contents despite an output schema existing.

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?

Covers trigger, accepted inputs, default behaviour, output shape and explicit non-capabilities. With an output schema present it need not have described fix_first at all, so nothing an agent needs to call this correctly 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 description coverage is 100%, so the baseline is 3. The description restates the accepted lockfile formats and the 'only names and versions are read' rule that the schema already documents, adding only the default of 3 for fix_first and confirmation that packages takes exact versions.

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 (triage) and resource (dependency vulnerabilities) and immediately narrows scope with example user intents. It is clearly distinguishable from the sibling lookup tools check_cve/check_cves, which handle individual advisories rather than prioritising a whole manifest.

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?

Gives explicit trigger conditions plus two verbatim example queries, and adds a negative boundary ('it does not scan code or show that the vulnerable code is reached'). It stops short of naming check_cve/check_cves as the alternative for single-CVE lookups, so routing between siblings is left partly 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.