Skip to main content
Glama

OnchainCheck Dev Docs

Package check

package_check
Read-onlyIdempotent

Is this package safe to install? npm, PyPI, Go, Cargo, Maven, NuGet or RubyGems: OSV vulnerabilities and malicious-package reports with severity and fixing version, deprecation, licenses, OpenSSF Scorecard and an ok / review / upgrade / avoid verdict. npm and PyPI also get supply-chain checks: names that don't exist (invented by a model), lookalikes of popular packages, newly added install scripts, a publisher who wasn't a maintainer, downloads. Costs $0.003 USDC on Base via x402.

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

Input Schema

NameRequiredDescriptionDefault
nameYesPackage name (lodash, requests, github.com/gin-gonic/gin, org.slf4j:slf4j-api)
versionNoVersion to check (default: the latest)
ecosystemYesPackage registry

Output Schema

NameRequiredDescriptionDefault
nameNostring, e.g. "lodash"
linksNoobject
existsNoboolean, e.g. true
latestNostring, e.g. "4.18.1"
reasonsNoarray
sourcesNostring, e.g. "deps.dev (Open Source Insights) and OSV.dev, both CC-BY 4.0
verdictNostring, e.g. "upgrade"
versionNostring, e.g. "4.17.15"
isLatestNoboolean, e.g. false
licensesNoarray
checkedAtNostring, e.g. "2026-11-27T04:57:55.600Z"
ecosystemNostring, e.g. "npm"
upgradeToNostring, e.g. "4.18.0"
deprecatedNoboolean, e.g. false
repositoryNoobject
publishedAtNostring, e.g. "2019-07-19T02:28:46Z"
supplyChainNoobject
lastReleaseAtNostring, e.g. "2026-04-01T21:01:20Z"
newerReleasesNonumber, e.g. 9
vulnerabilitiesNoarray
deprecatedReasonNonull, e.g. null
latestAdvisoriesNonumber, e.g. 0
latestPublishedAtNostring, e.g. "2026-04-01T21:01:20Z"
vulnerabilityCountNonumber, e.g. 5

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive, open-world behavior, but the description adds material facts annotations cannot: this is a paid call ($0.003 USDC on Base via x402) and results culminate in a four-way verdict (ok/review/upgrade/avoid). It also discloses what is actually inspected (OSV vulnerabilities, malicious-package reports, deprecation, licenses, Scorecard, and for npm/PyPI typosquats, newly added install scripts, publisher changes, download counts).

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 decision question and verdict scale are front-loaded, and the long middle sentence earns its length by enumerating checks. It is dense but nearly every clause carries decision-relevant information; the pricing sentence at the end is well placed.

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 a full input schema and an output schema present, the description need not explain return values, and it still covers scope, ecosystem-dependent depth, verdict semantics, and the payment requirement. Nothing an agent needs to decide whether and how to call this tool is missing.

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 100% and includes per-field descriptions and an ecosystem enum, so the baseline would be 3. The description goes further by explaining that the ecosystem parameter changes the depth of analysis (npm and PyPI unlock supply-chain and lookalike checks), which is genuine meaning beyond the enum list.

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?

Opens with a concrete decision question ('Is this package safe to install?') and names the resource (npm, PyPI, Go, Cargo, Maven, NuGet, RubyGems packages) plus the outputs and verdict scale. It is clearly distinguishable from siblings like package_docs or packages_check because it foregrounds a safety verdict rather than docs or a plain package listing.

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?

The framing question implies the trigger context—checking a package before installing it—and it notes that npm/PyPI get deeper supply-chain checks, so an agent knows which ecosystems yield richer results. However, it never states explicit exclusions or names an alternative tool (e.g., when to prefer package_docs), so routing guidance is good but not complete.

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