Skip to main content
Glama
jsdelivr-mcp
by anvme

jsdelivr_npm_version_files_stats

Retrieve file-level CDN usage stats for a specific npm package version on jsDelivr, sortable by hits or bandwidth with pagination. Use it to identify high-traffic files or bandwidth-heavy assets.

Instructions

Get file-level stats for a specific npm package version 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>",
      "version": "<version>"
    },
    "name": "jsdelivr_npm_version_files_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
byNoSort by hits or bandwidth. Default: hits
pageNoPage number (1-100). Default: 1
limitNoMax results (1-100). Default: 100
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'
versionYesExact version, e.g. '3.7.1'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden and discloses almost nothing. It does not say the underlying data is read-only usage telemetry, whether results are paginated by default (limit/page default to 100/1), how the period window affects output, or what the returned file entries contain.

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 zero filler, but its brevity is achieved by omitting useful context rather than by tight editing. Nothing is redundant, but there is also no structure to guide a multi-parameter call.

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

Completeness2/5

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

With six parameters, no annotations, and no output schema, the description should explain what a 'file stat' record looks like and how sorting/period/pagination shape the response. It supplies none of this, leaving the agent to guess the return shape and the effect of by/period on results.

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%, so every parameter including enums, ranges, and period formats is already documented in the input schema. The description only restates that the package and version are npm-scoped and adds no syntax or behavioral detail beyond that baseline.

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 file-level stats' — scoped to 'a specific npm package version on jsDelivr'. The 'file-level' qualifier plausibly separates it from aggregate-stat siblings like jsdelivr_npm_version_stats, but the description never names or contrasts any sibling 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 guidance, no prerequisites (e.g. that an exact version, not a range, is required), and no mention of alternatives for package-wide vs per-file analysis. The agent must infer the call context entirely from the name and schema.

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