Skip to main content
Glama

package_check

Read-only

Before installing a dependency: does the npm or PyPI package exist, is the version published, deprecated or yanked, which known vulnerabilities (OSV.dev, with fix version) it and its latest carry. Catches invented names. A lockfile audits every package, transitive ones too, with the chain pulling each flaw in. Names and versions go to OSV.dev, npm, PyPI. FAIL = missing package/version or high/critical flaw.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "packages": [
        "lodash@4.17.15",
        "requests==2.19.0"
      ]
    },
    "name": "package_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
lockfileNoOr alone: package-lock.json, pnpm-lock.yaml, yarn.lock, uv.lock, poetry.lock or pinned requirements.
manifestNoOr the text of a package.json or requirements.txt.
packagesNo"name@version" (npm), "name==version" (PyPI), or {name, version, ecosystem}. Up to 50.
ecosystemNoFor bare names (default npm).

Output Schema

NameRequiredDescriptionDefault
verdictNo
packagesNo
next_stepsNo
attributionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, and the description adds meaningful context beyond that: which external services are contacted (OSV.dev, npm, PyPI), that lockfile mode expands to transitive dependencies and traces the pulling chain, and the FAIL criteria (missing package/version or high/critical flaw). It does not discuss rate limits, auth, or network failure behavior, which keeps it below top marks.

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 definition is front-loaded with the trigger and the checks, then the transitive-audit behavior, then the FAIL rule. It is dense and slightly telegraphic in places, but nearly every sentence carries actionable information and there is no filler.

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 an output schema present and annotations covering the safety profile, the description need not explain return values. It covers purpose, trigger, external dependencies, transitive scope, and the failure threshold, leaving only minor gaps such as behavior on network/registry errors.

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 the schema already documents the name@version / name==version formats, ecosystem enum, and the 50-item cap. The description adds only marginal meaning, notably that a lockfile causes transitive auditing and that names/versions are transmitted to third-party registries. Baseline 3 is appropriate when the schema carries the parameter detail.

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 names the exact resource and checks performed: existence of an npm/PyPI package, whether the version is published, deprecation/yanked status, and known vulnerabilities with fix versions. It also distinguishes its niche ('Catches invented names') so an agent knows this is a dependency-existence/security validator, not a generic 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?

The trigger is stated explicitly and up front: 'Before installing a dependency.' It also implies the lockfile path audits transitive packages. It does not state when-not to use it or name a competing tool, but no sibling in the list covers this domain, so the guidance is clear enough in context.

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