Skip to main content
Glama

check_package

Check a PyPI or npm package before installing or recommending it. Asks the registry whether the name exists at all (invented package names are how slopsquatting attacks land), how old it is, how much it is downloaded, whether it runs install scripts, whether it is deprecated or yanked, whether OSV lists vulnerabilities, and whether the name is a near-miss of a popular package. Returns a verdict and a safe_to_install flag. Each valid API call uses one credit; every key starts with 1,000 free calls; the limit is 20 calls per minute per key. On HTTP 400, fix the input; on 401, fix the API key; on 402, stop and resolve credits/payment; on 429, wait for Retry-After and do not retry in a loop. A pass is not proof of safety. If verdict is block, do not proceed; if review, show the evidence and ask the user; if warn, follow the agent's normal approval policy. The public API lists $0.01 per call after the free credits. By default this stdio server never signs or submits payments; its optional x402 buyer bridge is disabled unless explicitly enabled and configured. Batch checks are available, up to 20 packages per call.

Input Schema

NameRequiredDescriptionDefault
nameNoPackage name.
versionNoOptional exact version to check.
packagesNoCheck several packages in one call.
ecosystemNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: credit consumption per valid call, 1,000 free calls, 20 calls/minute rate limit, $0.01 per call pricing, and a full HTTP status playbook (400 fix input, 401 fix key, 402 stop for payment, 429 honor Retry-After, no retry loops). It also discloses the payment posture of the stdio server and the x402 bridge being off by default, which is exactly the kind of behavioral context annotations cannot carry.

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 purpose and the verdict semantics before the operational details, and most sentences carry distinct, decision-relevant information. The pricing and x402 buyer-bridge sentences are dense and slightly tangential for a tool description, though still relevant to cost/trust, keeping it just short of 5.

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?

There is no output schema, and the description compensates by naming the return shape ('a verdict and a safe_to_install flag') and defining each verdict tier and its required agent behavior. Combined with error-code handling, rate limits, credits, and batch limits, an agent has everything needed to call this correctly and act on results.

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?

With 75% schema coverage the schema already documents most fields, but the description adds meaning beyond it: batch mode with a concrete cap of 20 packages per call, the two supported ecosystems, and that name existence/invented names are an explicit check dimension. It does not explain the name-versus-packages exclusivity or what the optional version changes, leaving some semantics to the schema.

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 PyPI or npm package') plus the decision context ('before installing or recommending it'), and enumerates exactly what is inspected (name existence, age, downloads, install scripts, deprecation, OSV vulnerabilities, typosquat proximity). An agent can immediately tell this is a registry-package risk check rather than a code, domain, or prompt check.

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 concrete when-to-use guidance ('before installing or recommending it') and explicit action rules keyed to the outcome: block = do not proceed, review = show evidence and ask the user, warn = follow normal approval policy. It also disclaims 'A pass is not proof of safety.' It does not name any sibling alternative or state when not to use it, so it falls short of a 5.

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.