Skip to main content
Glama

package-exists

Package exists on npm, PyPI or crates.io (hallucinated dependency check) — Checks whether up to 10 package names (optionally with a version) exist in the live npm, PyPI or crates.io registry, for coding agents about to add a dependency they may have invented. Per package: exists, latest version, deprecated or yanked flag, and for a missing name the closest names the registry's own search returns (npm, crates.io; PyPI has no search API). Reads registry metadata only: neve

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>",
      "items": "<items>"
    },
    "name": "package-exists"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesAt most 5 items for crates.io (its API policy allows one request per second).
ecosystemYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it states the tool reads registry metadata only (the text is truncated at 'neve', presumably 'never writes'), that checks run against live registries, and that PyPI lacks a search API so closest-name suggestions only exist for npm and crates.io. It stops short of saying how network failures or unknown ecosystems surface as errors.

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 core purpose is front-loaded in the leading clause, and every subsequent phrase (ecosystem constraint, per-package return fields, PyPI search gap) carries information. The single long paragraph with stacked parentheticals makes it denser than it needs to be, and the trailing text is cut off mid-word.

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?

There is no output schema, and the description compensates by enumerating what comes back per package: existence, latest version, deprecated/yanked flag, and closest-name suggestions for misses. Combined with the crates.io rate-limit note, an agent can call this correctly. Missing only failure/error behavior and an explicit read-only guarantee if the trailing text was meant to supply one.

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?

Schema coverage is 50%, so the description has to add meaning and it does: it explains that names may be supplied with an optional version, that a version check asks whether that exact version exists, and that the batch is capped at 10 names with a tighter cap for crates.io. The ecosystem enum is largely self-describing in the schema, and the version/dist-tag nuance is schema-provided rather than description-provided.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The definition pairs a concrete verb with a concrete resource: it checks whether up to 10 named packages exist in the live npm, PyPI or crates.io registries. The parenthetical 'hallucinated dependency check' and the 'coding agents about to add a dependency' framing make the intent unmistakable. It stops short of naming or excluding a sibling such as dependency-advisor, so it lands at 4 rather than 5.

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?

It gives a clear triggering context — an agent is about to add a dependency it may have invented — which is exactly the when-to-use guidance an agent needs. It also flags an ecosystem-specific constraint (crates.io's one-request-per-second policy limiting items). It offers no explicit when-not-to-use case or named alternative tool.

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