Skip to main content
Glama

Check one npm package

check_package

Verify an npm package before installing it: confirms existence and flags slopsquatting, install-time scripts, deprecation, and abandonment.

Instructions

Verify a single npm package before installing, importing, or recommending it. Returns whether it actually exists, and flags slopsquatting (a low-adoption package impersonating a popular one), install-time scripts, deprecation, and abandonment. Call this whenever you are about to introduce a dependency you have not verified in this session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesExact npm package name, e.g. "express" or "@scope/pkg".
Behavior4/5

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

With no annotations provided, the description carries the full disclosure burden and handles it well: it states that the call returns existence and flags specific risk patterns (slopsquatting, install-time scripts, deprecation, abandonment), which implies a read-only verification behavior. It does not disclose network behavior or error handling for invalid package names, but those are minor gaps for a verification tool.

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 three sentences, front-loading the purpose with an imperative verb and the resource immediately. The second sentence's list of risk flags is compact and useful, and the parenthetical on slopsquatting justifies the niche term. Nothing is redundant, though the list of flags makes it slightly long.

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 one-parameter tool with no output schema and no annotations, the description covers what the tool does, what it returns, and when to call it. The absence of an output schema makes the described return values particularly valuable. Edge-case behavior (e.g., result shape for a nonexistent package or network errors) is not addressed, but this is a minor omission for a single-package check.

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%: the single parameter 'name' is already documented with format and examples ('express' or '@scope/pkg'). The description does not add meaning beyond what the schema provides, so the baseline score of 3 is appropriate. It correctly reinforces the singular scope, but adds no new parameter semantics.

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 states a specific verb ('Verify'), a specific resource ('a single npm package'), and the context ('before installing, importing, or recommending it'). It implicitly distinguishes from its plural sibling check_packages by emphasizing 'single', and it enumerates exactly what the check returns: existence, slopsquatting, install-time scripts, deprecation, and abandonment. This leaves no ambiguity about what the tool does.

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 gives an explicit trigger: 'Call this whenever you are about to introduce a dependency you have not verified in this session.' This is clear when-to-use guidance. However, it does not explicitly state when not to use it or name the alternative (e.g., a batch-check sibling), though the singular/plural naming and the verb make the boundary reasonably obvious.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hxckya/pkgtruth'

If you have feedback or need assistance with the MCP directory API, please join our Discord server