Skip to main content
Glama
proof-of-commitment

proof-of-commitment

by piiiico

lookup_npm_package

Vet npm dependencies by retrieving behavioral signals like package age, download trends, and publisher lifecycle to flag abandonware and dormant maintainers holding publish access.

Instructions

Get a behavioral commitment profile for any npm package. Returns real signals: package age, download volume and trend (growing/stable/declining), release consistency, npm publisher count, GitHub contributor count, and linked GitHub activity.

Also returns publisherLifecycle — cross-referencing current maintainers against per-version publish history to flag dormant publishers who still hold npm scope access. The Mastra incident (June 2026) exploited exactly this: a contributor dormant since 2024 with never-revoked scope access.

Supply chain attacks target packages with low publisher depth (few people with npm publish access). Behavioral signals reveal what download counts hide.

Useful for: vetting dependencies, identifying abandonware, due diligence on open-source packages. Examples: "langchain", "@anthropic-ai/sdk", "express", "litellm"

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

Input Schema

NameRequiredDescriptionDefault
packageYesnpm package name. Examples: "langchain", "@anthropic-ai/sdk", "express". Scoped packages need the @ prefix.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does substantial work: it discloses the returned signal set, explains that publisherLifecycle cross-references maintainers against per-version publish history, and grounds it in a concrete failure mode (dormant publisher with retained scope access). It does not cover error behavior for nonexistent packages, freshness/caching, or rate limits, which leaves a readable gap for a lookup tool.

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?

Purpose and returned fields are front-loaded, and the 'Useful for' line plus examples make scanning easy. Some prose is persuasive filler ('Behavioral signals reveal what download counts hide') and the Mastra incident anecdote, while informative, is longer than strictly needed for tool selection.

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, so the description must describe return values, and it names the key fields and the notable publisherLifecycle field in enough detail to act on the result. Missing only edge-case behavior (package not found, partial GitHub data unavailable) for full completeness on a one-parameter read tool.

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 coverage is 100% and the single parameter is fully described in the schema, including the scoped-package '@' requirement. The description repeats the same examples ('langchain', '@anthropic-ai/sdk', 'express') rather than adding new meaning such as normalization, case sensitivity, or handling of malformed names, so the baseline 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?

States a specific verb and resource ('Get a behavioral commitment profile for any npm package') and immediately enumerates the concrete signals returned (age, download trend, release consistency, publisher/contributor counts, GitHub activity). The 'npm' qualifier plus the scoped-package example cleanly separates it from lookup_pypi_package, lookup_go_module, and lookup_github_repo.

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?

Gives explicit use cases ('vetting dependencies, identifying abandonware, due diligence on open-source packages') and explains the motivation for the publisherLifecycle output, which tells an agent when this is the right inquiry. It stops short of naming when to prefer a sibling (e.g. audit_dependencies for a whole manifest rather than one package), so no exclusion guidance.

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