Skip to main content
Glama

Checks for coding agents — packages and MCP servers

Check a package before installing it

package_check
Read-onlyIdempotent

Call before npm install or pip install, above all for a package name you were not given by a person. Give npm: or pypi: (or @, ==). Answers from the registry and OSV: not_found (nothing is published under the name, and anyone could register it: npm also lists the real names it resembles), malicious, suspicious (one edit from a far more downloaded package, or new and unused), caution (a release under 7 days old, deprecated, install scripts, advisories), version_not_found or ok, with dates, downloads and advisory ids. It reads no package code: ok is not a statement that the code is safe.

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

Input Schema

NameRequiredDescriptionDefault
packageYesnpm:<name> or pypi:<name>; <name>@<version> and <name>==<version> work too
versionNoone exact version; default the latest
ecosystemNowhen package has no npm: or pypi: prefix

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld, and the description goes further by disclosing the two data sources, what each verdict means (e.g. not_found implies the name is registrable by anyone; suspicious means one edit from a far more downloaded package), and content fields returned (dates, downloads, advisory ids). The closing caveat 'It reads no package code: ok is not a statement that the code is safe' is a valuable limit that no annotation encodes. Minor gap: no mention of rate limits or failure modes if the registry is unreachable.

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 the action and trigger, then the accepted formats, then the verdict taxonomy — a sensible ordering with almost no filler. The verdict enumeration is compressed into one long parenthetical chain, which is dense but still parseable. Slightly tighter sentence boundaries would make it easier to scan.

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 listing every possible status plus the accompanying fields (dates, downloads, advisory ids). Combined with the stated scope limits (reads no package code), an agent has enough to decide, call, and interpret results 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 description coverage is 100%, so the formatting rules for package/version/ecosystem are already documented in structured fields. The description mostly restates the syntax ('npm:<name>', '<name>@<version>', '==<version>') and adds no extra meaning such as prefix precedence over the ecosystem parameter. Baseline 3 is appropriate.

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 concrete verb and resource ('Check a package') and scopes it to the install decision, then enumerates the exact verdicts returned (not_found, malicious, suspicious, caution, version_not_found, ok). It also names the data sources (registry and OSV), so an agent can distinguish it from unrelated siblings like check_server or find_server without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit trigger is given: 'Call before npm install or pip install', with prioritization ('above all for a package name you were not given by a person'). This is an actionable when-to-use rule rather than implied context, and the risk framing tells the agent both when it matters and when it matters most.

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