Skip to main content
Glama

pkg-oracle — Dependency Trust Oracle

Verify Package

verify_package

Dependency Trust Oracle. Call this BEFORE writing any package into a manifest (package.json, requirements.txt, pyproject.toml, Cargo.toml, ...). It checks whether the package actually exists on its registry, cross-references OSV.dev for known CVEs, pulls the package's OpenSSF Scorecard via deps.dev, and runs a Levenshtein-distance typosquat/slopsquat check against a curated list of popular packages combined with the package's publish age. Returns a synthetic verdict: ALLOW (no issues found), WARN (proceed with caution — read the findings before installing), or BLOCK (do not install — likely a hallucinated package name, an active typosquat, or a known critical/high-severity vulnerability). Always call this before running an install command for a package you have not already verified in this session. First 5 calls per caller are free; after that this tool requires x402 payment (USDC on Base) and will return a payment-required error with the amount and address to pay.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesExact package name as it would appear in the manifest (case-sensitive for npm scoped packages).
versionNoOptional exact version string to verify (e.g. "4.17.21"). Omit to check only the package name.
ecosystemYesPackage registry to check the name against.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / ecosystem / enum
      Previous value: -[
      -  "npm",
      -  "pypi"
      -]New value: +[
      +  "npm",
      +  "pypi",
      +  "crates.io"
      +]
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the verdict semantics (ALLOW/WARN/BLOCK with what each means), that BLOCK implies hallucinated names, typosquats, or critical/high CVEs, and the payment behavior (first 5 calls free, then x402 USDC on Base with a payment-required error). These are exactly the operational facts an agent needs and none of them are derivable from structured fields.

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?

It is a dense paragraph rather than a terse one, but it is front-loaded with the core purpose and every subsequent clause adds operationally useful information (checks performed, verdicts, payment). The verdict and payment sentences are long, but none is filler, so it falls just short of maximally tight.

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?

For a tool with no annotations and no output schema, the description supplies everything needed to invoke and interpret it: the inputs' intent, the full set of internal checks, the possible return verdicts, and the error/payment behavior. Nothing an agent needs to call this correctly is missing.

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 schema already documents name, version, and ecosystem in detail (including case-sensitivity for npm scoped packages and version-string format). The description mentions manifest file types but does not add syntax or format meaning beyond the schema, 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?

The description names a specific operation (verifying a package before it is written into a manifest) and enumerates the concrete checks performed: registry existence, OSV.dev CVE lookup, OpenSSF Scorecard via deps.dev, and a Levenshtein typosquat/slopsquat check. An agent understands exactly what this tool does without opening the schema, and it is unambiguous about the resource (a package in a given ecosystem).

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?

It gives explicit timing and exclusionary guidance: 'Call this BEFORE writing any package into a manifest' and 'Always call this before running an install command for a package you have not already verified in this session.' The condition for reuse (already verified in-session) is stated, so an agent knows when not to call it.

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