Skip to main content
Glama

Check a package for vulnerabilities

check_package
Read-onlyIdempotent

Checks one package from npm, PyPI, Composer, RubyGems, Go, Maven or NuGet against OSV.dev advisories (GitHub, CVE and malware reports) before you install or upgrade it. With a version, says whether that exact version is affected and the lowest version that fixes it; without one, checks the latest release and lists the known advisories. Flags packages reported as malicious.

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

Input Schema

NameRequiredDescriptionDefault
nameYesPackage name as the registry writes it, e.g. lodash, @angular/core, django, laravel/framework, github.com/gin-gonic/gin, org.apache.logging.log4j:log4j-core
versionNoAn exact version to check, e.g. 4.17.20. Leave it out to check the latest release.
ecosystemYesPackage registry: npm, pypi, composer (Packagist), rubygems, go (module path), maven (group:artifact) or nuget

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only, open-world, idempotent and non-destructive, so the description only needs to add what they cannot. It does: the backing source (OSV.dev with GitHub, CVE and malware reports), the versioned-vs-latest branching, the lowest-fixed-version output, and malicious-package flagging. It doesn't mention unknown-package behavior or any rate limits.

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

Conciseness5/5

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

Two sentences, front-loaded with the core action and source, then the two conditional modes. Every clause carries information; nothing is restated filler.

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?

With no output schema, the description carries the return-value burden and does so: affected/not-affected for an exact version, lowest fixed version, advisory list for the latest release, and malware flagging. That is enough for an agent to call and interpret it correctly.

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% and the schema already explains the optional version ('Leave it out to check the latest release') and the registry enum. The description's added value is mostly about return values rather than argument meaning, so the baseline of 3 applies.

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 ('Checks one package') and enumerates the seven supported registries plus the advisory source (OSV.dev). The 'one package' framing implicitly separates it from check_dependencies, which operates on a dependency set.

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?

Explicitly frames the timing ('before you install or upgrade it') and explains the two usage modes with and without a version. It never names a sibling tool as the alternative for multi-package or single-advisory lookups, so routing against check_dependencies and get_advisory is left 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