Skip to main content
Glama

vetcode_guard

Read-onlyIdempotent

Checks a shell command before it runs, identifies npm/PyPI/Rust/Go packages it would install or execute, and returns allow, ask, or deny with reasons from registry and OSV.dev checks.

Instructions

Check a shell command before running it: finds the npm and PyPI packages, Rust crates and Go modules it would install (npm/pnpm/yarn/bun install, npx, pip, uv, pipx, poetry, cargo add/install, go get/install), the ones a bare npm install or pip install -r would add from the project in cwd, the package an MCP server would run (claude mcp add … -- npx x), and downloads piped into a shell, then answers allow, ask or deny with reasons. It looks at whether the package exists, look-alike names, malware advisories (OSV.dev), how new the release is, and reads the package archive without installing or running it. Call it before installing anything or adding an MCP server. Sends the package names to the registry and to OSV.dev.

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

Input Schema

NameRequiredDescriptionDefault
cwdNoFolder the command would run in (to see tools already installed there and private registry settings).
commandYesThe shell command you are about to run, e.g. "npm install left-pad".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.7

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered structurally. The description still adds real value beyond them: it says the archive is read 'without installing or running it', and it discloses the external data flow — package names are sent to the registry and OSV.dev — which is the kind of network-egress detail annotations alone don't convey. It does not say what determines 'ask' versus 'deny' beyond listing signals.

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 verb and purpose, then backs it with a dense but purposeful enumeration; every clause adds a distinct install surface or inspection signal. The long parenthetical list makes it heavier than it needs to be, but nothing is filler.

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 two-parameter, no-output-schema tool the description covers what it inspects, what it returns (allow/ask/deny plus reasons), what external services it contacts, and that it does not execute or install anything. An agent has everything needed to decide to call it and to interpret the result.

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 description coverage is 100%, so the baseline is 3. The description nevertheless adds meaning the schema does not: it explains that cwd matters because bare `npm install` or `pip install -r` resolve against the project there, tying the parameter to a concrete behavior rather than just 'folder the command runs in'.

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 — 'Check a shell command before running it' — and then enumerates exactly which install surfaces are inspected (npm/pnpm/yarn/bun, npx, pip, uv, pipx, poetry, cargo add/install, go get/install, MCP server args, piped downloads) and the output shape (allow/ask/deny with reasons). That level of specificity makes it unmistakable against vetcode_guide, vetcode_reference or vetcode_scan without any of them being named.

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 an explicit trigger: 'Call it before installing anything or adding an MCP server.' That is clear when-to-use guidance. It stops short of when-not-to-use or naming a sibling as the alternative for non-install questions, so it is strong but not exhaustive.

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