Skip to main content
Glama

Check an install command before running it

foster_check_install_command
Read-only

Check a package install command before running it to block malware, hallucinated names, and unfixable vulnerabilities, and flag risky look-alikes or new install-script packages.

Instructions

Before running a shell command that installs packages (npm/pnpm/yarn/bun, npx, pip/uv/poetry, cargo, go get, gem, composer), check every package it would install. Returns deny for known malware, names that do not exist (hallucinated or typo'd) and vulnerabilities no release fixes; ask for look-alike names, brand-new npm packages or fresh releases that run install scripts, and fixable vulnerable versions; allow otherwise, with a note for unmaintained packages.

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

Input Schema

NameRequiredDescriptionDefault
commandYesThe exact shell command you are about to run, e.g. 'npm install left-pad'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.6

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnlyHint/openWorldHint; the description adds the entire decision model: deny for known malware, nonexistent names and unfixable vulnerabilities; ask for look-alike names, brand-new npm packages or fresh releases with install scripts, and fixable vulnerable versions; allow otherwise, with notes for unmaintained packages. That is exactly the behavioral context an annotations-only definition would lack, including the meaning of each returned verdict.

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?

One front-loaded sentence with the purpose first and the verdict taxonomy second; no filler. The clause listing 'ask' triggers is slightly tangled ('and fixable vulnerable versions' trails a list of ask conditions), but the information density is appropriate for the decision logic being conveyed.

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 one-parameter, read-only check with no output schema, everything an agent needs is present: when to call it, which commands qualify, and the three possible verdicts with their triggers. Nothing about return values or permissions is left unexplained.

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 100% and the single parameter is documented with an example, so the baseline is 3. The description adds real meaning by stating it checks 'every package it would install', clarifying that compound commands and multi-package installs are evaluated in full rather than as a single argument.

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 object ('check an install command') plus the precise moment of use ('before running a shell command that installs packages'). It enumerates the covered ecosystems (npm/pnpm/yarn/bun, npx, pip/uv/poetry, cargo, go get, gem, composer), which lets an agent tell whether it applies at all and separates it from foster_check_package, which checks a single package rather than a whole command.

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?

The trigger is explicit and unambiguous: run this before executing any package-installing shell command. What is missing is explicit routing to alternatives — the sibling foster_check_package is never named, so an agent must infer when a single-package check is preferable to a full command check.

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