Skip to main content
Glama

Check lockfiles for vulnerable dependencies, with fix prompts

check_lockfiles

Checks a project's lockfiles (requirements.txt, poetry.lock, uv.lock, Pipfile.lock, package-lock.json, yarn.lock, pnpm-lock.yaml, Gemfile.lock, composer.lock, Cargo.lock, go.mod, pom.xml... see get_lockfile_guide) against OSV.dev, plus the language runtime they imply. Returns each vulnerable package version with its advisories, the version to upgrade to and the commands, and ready-to-use prompts for a coding agent: "prompt_all" upgrades everything that has a fix, "mitigation_prompt_all" handles what has no fix yet, "check_prompt_all" finds the runtime versions to check. Advisories exploited in the wild (CISA KEV) come first, with their EPSS score. Works without an API token. Send lockfiles, not package.json or pyproject.toml (they hold ranges, not the installed versions). Package names and versions are sent to OSV.dev; the files themselves are not stored. When you can run commands in the project, also run these in the lockfile's folder and pass what they print: "outdated": npm outdated --json, pnpm outdated --format json, yarn outdated --json (Yarn 1), pip list --outdated --format=json (in the project's virtual environment), composer outdated --direct --format=json or go list -m -u -json all; "audit": npm audit --json, pnpm audit --json or yarn audit --json (Yarn 1). The answer then lists the packages with a newer version and no known vulnerability ("updates_available": information only, not a security problem) and what npm audit found that AIssue did not. A command that prints nothing, or fails, can be left out.

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": {
      "files": "<files>"
    },
    "name": "check_lockfiles"
  }
}

Input Schema

NameRequiredDescriptionDefault
auditNoOptional. What npm audit --json (or pnpm audit --json, yarn audit --json) printed.
filesYes
projectNoProject name, used in the prompts (optional)
outdatedNoOptional. What the "outdated" command printed (JSON), e.g. npm outdated --json. Several outputs can be sent one after the other.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations it discloses real operational context: no API token required, package names and versions go to OSV.dev while the files themselves are not stored, and results are ordered with CISA KEV advisories first alongside EPSS scores. The only tension is that openWorldHint=false while the description describes calling an external service, though the annotations' safety profile (destructiveHint=false) is consistent with the described read-only checking behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded correctly, with purpose and scope in the first sentence, but the middle runs long: a single dense paragraph enumerates many command variants and repeats the outdated/audit distinction already implied by the parameter names. Bullets or a shorter command list would preserve the information with less bloat.

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?

There is no output schema, so the description carries return-value explanation itself, and it does: per-package vulnerable versions with advisories, target upgrade version and commands, and the three prompt fields with their distinct roles. It also explains what extra data appears when outdated/audit are supplied, including the deliberately non-alarming 'updates_available' bucket.

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 coverage is 75%, and the description adds genuine meaning beyond it: 'outdated' and 'audit' are explained as JSON output from specific named commands, and 'project' is tied to the generated prompts. Files are further constrained to whole lockfile content rather than manifests, which the schema alone does not convey.

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?

The description opens with a specific verb and resource: it checks a project's lockfiles against OSV.dev plus the implied language runtime, and lists the concrete file types it accepts. It also distinguishes itself from the sibling get_lockfile_guide as the way to learn about supported files, so an agent can tell the two apart without opening either 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?

It states explicit inclusion criteria (send lockfiles, not package.json or pyproject.toml because those hold ranges) and explicit extensions (when you can run commands in the project, run outdated/audit and pass what they print, in the lockfile's folder). It even covers the negative case: a command that prints nothing or fails can be left out.

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