Skip to main content
Glama

dev_npm

Read-only

npm package info — npm package facts: latest version, description, license, deprecation, repository, dependencies, engines, TypeScript types, size, weekly downloads. Pass ?package=. Price: $0.002 USDC (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": {
      "package": "<package>"
    },
    "name": "dev_npm"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageYesnpm package name (scoped names allowed)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already establish a safe, open-world read. The description goes beyond them by disclosing the paid access model — $0.002 USDC on Base via x402 — which is operationally critical and nowhere in the structured fields, and by listing the returned facts in the absence of an output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

Very short, but the opening 'npm package info — npm package facts' restates itself, and the trailing 'Pass ?package=' is cryptic filler beside a well-documented schema. The genuinely valuable content (field list, price) is present but sits after redundant framing rather than leading.

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?

For a one-parameter lookup with no output schema, the description does the necessary work: it enumerates the returned fields and discloses the per-call charge. Remaining gaps — missing-package behavior and whether deprecation warnings are surfaced as errors — are minor at this complexity.

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 already documented as 'npm package name (scoped names allowed)'. The description's 'Pass ?package=' adds no new meaning and introduces a query-string notation that does not match the JSON object schema, so it is at best neutral.

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?

Names a specific resource (npm package info) and enumerates exactly the facts returned — version, license, deprecation, dependencies, engines, types, size, downloads. The npm-specific framing implicitly distinguishes it from the PyPI/crate siblings, though it never says so outright.

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

Usage Guidelines3/5

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

Usage is only implied by the resource name: an agent infers you call this for an npm package rather than a PyPI or crates.io one. There is no explicit when-to-use statement, no mention of the dev_package/dev_pypi alternatives, and no guidance for cases where a package does not exist.

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