Skip to main content
Glama

verify_package

Checks whether an npm package exists, flags deprecation and typosquatting lookalikes, and confirms type declarations before you install or recommend it.

Instructions

Verify if an npm package exists, check deprecation, detect typosquatting lookalikes, and check type declarations.

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": "verify_package"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesnpm package name to verify (e.g. "zod", "@types/node")
versionNospecific semver or tag, defaults to latest
ecosystemNoecosystem identifier (currently npm only)npm

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden alone. It usefully discloses the four checks performed, which tells the agent what kinds of findings come back and implies a read-only registry lookup, but it says nothing about network calls, latency, failure modes when a package is absent, or 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.

Conciseness4/5

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

A single front-loaded sentence that packs four distinct checks with no filler. It is efficient and readable, though the comma-separated list format is dense rather than structured.

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 3 fully documented parameters, no annotations, and no output schema, the enumerated checks effectively describe what the agent gets back, which is the main completeness need here. Minor gaps remain around absence handling and ecosystem scope beyond the schema's 'npm only' note.

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% and each parameter has its own description including examples and the default-to-latest behavior for version. The tool description adds no parameter meaning beyond the schema, so the baseline 3 applies.

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?

Uses a specific verb (verify) with a named resource (an npm package) and enumerates four concrete checks: existence, deprecation, typosquatting lookalikes, and type declarations. An agent can tell this is a registry-lookup validation tool. It falls short of 5 only because it does not differentiate itself from adjacent siblings like verify_installed.

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

Usage Guidelines2/5

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

The description never states when to choose this over verify_installed or scan_vulnerabilities, nor any preconditions. Usage is only implied by the word 'verify' and the npm framing in the schema. No exclusions or alternatives are given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.