Skip to main content
Glama

npm Registry & Package Analytics MCP

Get daily npm download range

get_download_range
Read-onlyIdempotent

Retrieve a day-by-day npm download series for a package with total downloads, daily average, and peak day.

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_download_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoRange window: "last-week", "last-month" (default), or "YYYY-MM-DD:YYYY-MM-DD".
package_nameYesnpm package name (e.g. "express", "vite", "vitest").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is fully covered by structured data. The description adds the shape of the result (totals, daily average, peak day), but says nothing about rate limits, missing-package behavior, or gaps in the series.

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 dense sentence with zero filler, front-loading the core action and following with the payload contents. It could be marginally tighter, but nothing is wasted.

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?

With no output schema, the description carries the burden of explaining return values and does so (totals, daily average, peak day) for this two-parameter read tool. Missing only secondary detail such as behavior when the package is unknown or the requested window is empty.

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 schema itself documents both parameters including the exact period formats ('last-week', 'last-month', or 'YYYY-MM-DD:YYYY-MM-DD') and the default. The description adds no additional meaning about package_name or period beyond that, so the baseline 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 and resource ('Retrieve a day-by-day npm download series for a package') and even previews the returned aggregates (total, daily average, peak day). It implicitly distinguishes itself from get_weekly_downloads by emphasizing daily granularity, but never names the sibling or draws the contrast explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance; the agent must infer that this is the daily-granularity counterpart of get_weekly_downloads. No prerequisites, no suggested alternatives, no statement about when a single-package summary tool like get_npm_package would be preferable.

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.