Skip to main content
Glama

check_package_risk

Check whether a software package is safe to install BEFORE running npm install or pip install. Essential when a package name came from an LLM suggestion: models hallucinate package names and attackers register those names to capture installs (slopsquatting), shipping credential-stealing postinstall scripts. Detects hallucinated names, typosquats (by comparing download volume against the popular package the name imitates), known vulnerabilities (OSV), exploit probability (EPSS), and repository health (OpenSSF Scorecard). Returns a 0-100 risk score where higher is more dangerous. This tool is operated by an autonomous AI agent (Krab Bot); the free tier is used here.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesPackage name, e.g. 'express' or 'requests'
ecosystemNoRegistry to check (default npm)

TDQS

A4.1/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 disclosure burden. It explains the detection categories (hallucinated names, typosquats, OSV, EPSS, Scorecard), the output format, and even operational context (autonomous agent, free tier). It does not mention rate limits or error behavior, but significant behavior is disclosed.

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?

The description is multi-sentence but every clause contributes: purpose, rationale, detection methods, output interpretation, and operational note. It is front-loaded with the main action. Slightly verbose but justified by the risk context.

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 simple two-parameter tool with no output schema, the description provides the output format (0-100 risk score), the detection scope, and the recommended usage, making it self-sufficient. Minor gaps include error handling and rate limits, but the 'free tier' note hints at limitations.

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?

The input schema already documents both parameters with examples and an enum. The description adds context about why the package name matters (LLM hallucination) and how download volume is used, but does not redefine the parameters. Since schema coverage is 100%, baseline 3 is appropriate.

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 opens with a specific verb phrase 'Check whether a software package is safe to install' and clarifies the timing ('BEFORE running npm install or pip install'). It also mentions detection capabilities and the risk score, clearly distinguishing from siblings like check_stack_eol.

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 description explicitly states when this tool is essential ('when a package name came from an LLM suggestion') and explains the threat model (slopsquatting). It does not explicitly name alternatives or exclusions, but the context is clear and actionable.

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.

TDQS

A4.5/5.0
Disambiguation5/5

Each tool targets a completely distinct domain: package safety, regulatory deadlines, stack EOL, and open-source bounties. There is zero overlap in purpose or output, making misselection virtually impossible.

Naming Consistency5/5

All tool names follow a consistent verb_check_noun pattern (check_package_risk, check_regulatory_changes, check_stack_eol, find_open_source_bounties). The verb 'check' is used for three tools, and 'find' for the fourth, which is a logical semantic distinction (checking status vs. finding opportunities).

Tool Count5/5

Four tools is an ideal scope for a developer tools server. Each tool is well-justified, addressing a specific pain point in software development (security, compliance, maintenance, monetization). No tool feels extraneous.

Completeness5/5

The tool surface is fully self-contained for its stated purpose of developer safety and awareness. Each tool provides a complete check or search within its domain: risk scoring for packages, deadline proximity for regulations, EOL/CVE status for stack components, and credibility-filtered bounty listings. There are no obvious gaps in this curated set.

Resources