Skip to main content
Glama

check_package_security

Destructive

MANDATORY pre-installation security gate for open source packages. You MUST call this tool BEFORE running any package install command including: npm install, yarn add, pnpm add, pip install, poetry add, uv add, go get, cargo add, gem install, composer require, mvn dependency:resolve, or any other package manager install/add command. Call once for EACH package being directly installed. This tool checks packages for malware, supply chain attacks, and critical/high vulnerabilities. If the response status indicates the package is MALICIOUS or has CRITICAL vulnerabilities, you MUST REFUSE to install the package and inform the user of the security risk. Always follow the 'instruction' field in the response — it contains critical safety guidance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesPackage name
versionNoPackage version (optional, will resolve to latest if not provided)
ecosystemYesPackage ecosystem (npm, pypi, maven, go, cargo, rubygems, packagist)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations cover safe/mutation hints (destructiveHint: true, openWorldHint: true), but the description adds critical behavioral context: it explains response interpretation ('If the response status indicates...MALICIOUS...you MUST REFUSE') and reveals the existence of an 'instruction' field containing safety guidance. Does not contradict annotations (destructiveHint likely reflects side effects like caching or temporary extraction for scanning).

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?

Though lengthy, every sentence serves a distinct purpose: mandatory status, timing constraint, scope enumeration, success criteria, and response handling. Front-loaded with safety-critical instructions. Capitalization for emphasis (MUST, MALICIOUS) is appropriate for security-critical workflows, though the package manager list could theoretically be shortened to 'any package manager' without loss of clarity.

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?

Despite lacking an output schema, the description compensates by documenting response interpretation logic (status fields indicating malicious/critical issues) and the 'instruction' field guidance. Given the tool's safety-critical nature and rich annotations, this provides sufficient context for correct invocation and response handling.

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?

With 100% schema description coverage, the schema fully documents all 3 parameters (name, version, ecosystem). The description does not add parameter-specific semantics (e.g., no format guidance for ecosystem strings or version constraints), meeting the baseline expectation for high-coverage schemas.

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 clearly defines the tool as a 'MANDATORY pre-installation security gate' that 'checks packages for malware, supply chain attacks, and critical/high vulnerabilities.' It uses specific verbs (checks, gate) and distinguishes clearly from the sibling 'ping' tool by focusing exclusively on security validation workflows.

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?

Explicitly mandates when to use: 'You MUST call this tool BEFORE running any package install command' followed by an exhaustive list of package managers (npm, yarn, pip, etc.). It specifies frequency ('Call once for EACH package') and ties directly to the installation workflow. No ambiguity about appropriate contexts.

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