Skip to main content
Glama
jsdelivr-mcp
by anvme

jsdelivr_npm_stats

Fetch usage statistics (hits and bandwidth) for an npm package on jsDelivr and filter by period to assess CDN demand and package adoption.

Instructions

Get daily usage stats (hits + bandwidth) for an npm package on jsDelivr.

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

Input Schema

NameRequiredDescriptionDefault
periodNoTime period: floating (day|week|month|quarter|year), static (s-month|s-quarter|s-year), or date (YYYY-MM|YYYY-Qq|YYYY). Default: month
packageYesnpm package name, e.g. 'jquery' or '@popperjs/core'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It helpfully discloses the returned metrics (hits and bandwidth) and the daily granularity, but says nothing about rate limits, authentication, response shape, or how the period parameter aggregates the data.

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 no wasted words. The only friction is that 'daily' slightly undersells the period parameter's month/quarter/year aggregation options.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter read tool with no annotations and no output schema, the description covers the essentials of what is fetched. However, with no output schema it should describe the return shape (time series vs totals) and it omits any positioning against the version-level and GitHub variants.

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 both parameters are already documented with format examples and defaults. The description adds only the notion of daily granularity and package-level scope, which is marginal beyond the schema's own enum-style period explanation.

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: get daily usage stats (hits + bandwidth) for an npm package on jsDelivr. The metric names (hits, bandwidth) and the scope (npm package, not version or GitHub) make it reasonably distinct, but it never names a sibling such as jsdelivr_npm_version_stats to sharpen the boundary.

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?

The description gives no explicit when-to-use guidance, no conditions for choosing this over the many sibling stats tools, and no prerequisites. An agent must infer from the tool name alone that this is the package-level (not version-level) stats endpoint.

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