Skip to main content
Glama

npm package downloads: download counts of an npm package over the last day, week or month

npm_downloads
Read-only

Download counts of an npm package for the last day, week and month, from the official npm registry API. Use to judge how widely a dependency is used. Example: package=hono. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

Input Schema

NameRequiredDescriptionDefault
packageYesPackage name, e.g. react or @scope/name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, idempotentHint=false), so the bar is lower; the description still adds genuinely new behavior: per-call pricing, a 10-call free tier, free failures, and that repeats cost money. The clause 'reads or computes only and changes nothing' largely restates readOnlyHint, which keeps it from a 5.

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 purpose is front-loaded in the first clause, and the description is short enough to scan in one pass. The pricing sentence is dense with billing-channel detail (x402 USDC, card key, /credits), and the 'reads or computes only' clause is redundant with annotations, so it is efficient but not waste-free.

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 read tool this covers the essentials: what it returns (download counts across three windows), where the data comes from, cost implications, and side-effect profile. With no output schema, a brief note on the response shape (e.g., per-window counts) would have closed the remaining gap.

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 the single parameter is documented with its own example, so the schema already does this work. The description adds only a second example ('package=hono') and no format details beyond what the schema states, which is the baseline-3 case.

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?

States a specific verb+resource ('download counts of an npm package') and its scope ('last day, week and month'), plus the data source ('official npm registry API'), which is enough to pick it over a generic package metadata tool. It does not explicitly contrast itself with the sibling 'package' or 'package_audit', so it falls short of a 5.

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?

'Use to judge how widely a dependency is used' gives a clear motivating context, and the example 'package=hono' shows the intended call shape. However, there is no when-not guidance and no named alternative for related needs such as package popularity vs. package metadata, leaving the agent to infer routing.

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