Skip to main content
Glama

vet_command

Checks direct packages named in an install command for risk without executing it; parses the command and flags issues, excluding transitive dependencies.

Instructions

Vet the direct packages an install command names, using the same parser as the agent hook. The command is parsed, never executed, and transitive dependencies are not checked.

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": {
      "command": "<command>"
    },
    "name": "vet_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYesOne install command, for example "npm i left-pad@1.3.0". Shell operators, URLs, git and local paths are reported as notes instead of guessed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.1
    • addedInput schema / properties / command / description
      Added value: +"One install command, for example \"npm i left-pad@1.3.0\". Shell operators, URLs, git and local paths are reported as notes instead of guessed."
  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, the description carries the full behavioral burden and does well: it states the command is parsed and never executed (a key safety property), and that transitive dependencies are not checked (a key scope limitation). It does not describe the shape of the verdict returned, which is a gap given there is no output schema.

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, both front-loaded and free of filler. The scope constraint and the parse-only guarantee are each stated once and earn their place.

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 one-parameter tool with no annotations, the description covers the essential behavioral facts: parsed not executed, direct only, non-standard inputs reported as notes. It is slightly incomplete in never saying what 'vet' actually checks for (security, existence, version) or what the result contains.

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% and the single parameter already documents the expected form and how shell operators, URLs, git and local paths are handled. The description adds little beyond 'an install command' that the schema does not already say, so the baseline of 3 applies.

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 names a specific verb and resource: it vets the direct packages named by an install command. The scope qualifiers ('direct packages', 'the same parser as the agent hook') distinguish it from a lockfile vetter or a single-package vetter without naming them 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 only implied: an agent can infer it should call this when it has an install command string to check. There is no explicit when-to-use guidance, no exclusions, and no reference to the sibling tools vet_lockfile_change or vet_package for other input shapes.

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