Skip to main content
Glama

npm Registry & Package Analytics MCP

Get npm download count

get_weekly_downloads
Read-onlyIdempotent

Fetch total npm downloads for a package from api.npmjs.org over "last-week" (default), "last-day", or "last-month".

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_name": "<package_name>"
    },
    "name": "get_weekly_downloads"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoDownload window. Default "last-week".
package_nameYesnpm package name (e.g. "express", "react", "@types/node").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds only the data source (implying an external network call) and the default window; it says nothing about behavior for a nonexistent package, rate limiting, or what a failed lookup returns.

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?

A single front-loaded sentence with the verb, resource, source and valid periods, and no filler. It is slightly dense in the middle but every clause carries information.

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 two-parameter read-only lookup with full schema coverage, rich annotations and no output schema, this is nearly sufficient. The only meaningful gap is that the shape of the returned download total is never hinted at, which matters because no output schema exists.

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 enum values, the 'last-week' default and package-name examples are already documented in the schema. The description restates the enum and default without adding format or edge-case meaning, so the baseline of 3 applies.

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 (Fetch), resource (total npm downloads for a package), and the upstream source (api.npmjs.org), plus the three supported windows. An agent can tell this is a fixed-window lookup rather than an arbitrary range, though it never names get_download_range as the sibling for custom ranges.

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 implied by enumerating the three windows and marking last-week as the default, but there is no explicit when-to-use-this-vs-alternatives guidance and no exclusion such as 'use get_download_range for arbitrary date spans'.

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.