Skip to main content
Glama

vet_lockfile_change

Audit only the packages a lockfile change adds by comparing the working file with a git ref. Returns one verdict per added package and an aggregate exit code; incomplete audits report 3.

Instructions

Audit only the packages a lockfile change adds, comparing the working file against a git ref. Returns one verdict per added package plus an aggregate exit code; an incomplete audit reports 3, never a pass.

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": {
      "lockfile": "<lockfile>"
    },
    "name": "vet_lockfile_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoGit ref to compare against, such as HEAD~1 or origin/main. Defaults to HEAD.
lockfileYesLockfile path, relative to the working directory and inside it: package-lock.json, requirements.txt, Cargo.lock, pnpm-lock.yaml, deno.lock, and the rest.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • addedInput schema / properties / base / description
      Added value: +"Git ref to compare against, such as HEAD~1 or origin/main. Defaults to HEAD."
    • addedInput schema / properties / lockfile / description
      Added value: +"Lockfile path, relative to the working directory and inside it: package-lock.json, requirements.txt, Cargo.lock, pnpm-lock.yaml, deno.lock, and the rest."
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does meaningful work: it discloses the return shape (one verdict per added package plus an aggregate exit code) and a critical failure-mode contract that an incomplete audit reports 3 and never a pass. It does not say what a verdict contains, what other exit codes mean, or whether registry/network access is required.

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

Conciseness5/5

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

Two sentences, zero filler, and the scoping constraint and the return contract are both front-loaded. Every clause carries information an agent needs.

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?

For a two-parameter tool with no output schema, the description adequately covers scope, return shape, and the non-pass exit-code rule. It stops short of defining what a per-package verdict looks like or which exit codes indicate clean success versus a genuine finding.

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 schema already documents both parameters well, establishing a baseline of 3. The description adds modest meaning by framing the lockfile as the working file and the base ref as the comparison point, but no format or default nuances beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ("Audit only the packages a lockfile change adds") and pins the comparison scope to a git ref. The word "only" plus "a lockfile change adds" makes it distinguishable from a single-package or command vetting tool, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied rather than stated: an agent can infer this applies when a lockfile diff exists, but there is no explicit when-not, no prerequisites (e.g., must run inside a git work tree), and no named alternative for auditing a full dependency tree.

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

Deploy Server

Other Tools