Skip to main content
Glama

Is this package safe to install?

package_check
Read-only

Before installing an npm or PyPI package: does it exist (AI-suggested names are sometimes made up, and attackers register them), was it removed from the registry or replaced by an npm security placeholder, has it been reported as malicious (OSV and GitHub Advisory Database malware advisories), which known vulnerabilities affect this version (with the fixed version), is it deprecated or yanked (the npm deprecation text is returned verbatim), how old is it, which lifecycle scripts run on install, do dependencies point at an http(s) tarball or git URL, how many downloads, and does the name imitate a popular package (typosquat). Verdict: ok_to_install, caution, dont_install or does_not_exist. New-package and missing-repository notes stay separate from supply-chain red flags. Read-only metadata only: it never installs the package, downloads the tarball, or runs its code. Sources: OSV.dev, GitHub Advisory Database, deps.dev, the npm registry (npmmirror if npm returns 404) and PyPI.

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": {
      "name": "<name>"
    },
    "name": "package_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesPackage name, optionally with a version: "lodash", "lodash@4.17.15", "@scope/pkg", "requests==2.31.0".
versionNoOptional version to check (default: latest).
ecosystemNonpm (default) or pypi.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare read-only, non-destructive, and open-world, and the description adds substantial context on top: it never installs, downloads the tarball, or runs package code, and it names its data sources (OSV.dev, GitHub Advisory Database, deps.dev, npm registry with npmmirror fallback on 404, PyPI). It also discloses that deprecation text is returned verbatim and that new-package/missing-repository notes are kept separate from supply-chain red flags.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The trigger condition is front-loaded and the verdict list anchors the end, but the middle is a single ~100-word run-on sentence enumerating checks, which makes it dense to parse despite every clause being useful. Splitting the checklist and the verdict/read-only guarantee into separate sentences would be clearer without losing content.

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?

With no output schema, the description correctly takes on the job of describing return values by naming the four verdicts and the note-separation behavior. The only gaps are precedence rules for the version argument and any indication of latency or rate limits given that it queries several external registries.

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 coverage is 100%, so every parameter already has inline documentation and the description only needs to stay consistent. It does imply that 'name' may embed a version and that an ecosystem dimension exists (npm vs PyPI), but it never explains precedence when a version appears in both 'name' and the separate 'version' parameter, so it adds little beyond 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 (checking whether an npm/PyPI package is safe before install) and enumerates the exact questions it answers, which distinguishes it from siblings like repo_agent_check or vendor_trust_profile. The verdict vocabulary (ok_to_install, caution, dont_install, does_not_exist) makes the output shape concrete.

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 opening clause "Before installing an npm or PyPI package" gives an explicit trigger condition for the tool. It does not, however, name any alternative tool or state when-not to use it (e.g., when a repo-level or vendor-level check is more appropriate), leaving routing to sibling tools to inference.

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