Skip to main content
Glama
jsdelivr-mcp
by anvme

jsdelivr_gh_version_files_stats

Retrieve file-level jsDelivr CDN statistics for a specific GitHub repo version, sorted by hits or bandwidth, to analyze per-file usage over a chosen period.

Instructions

Get file-level stats for a specific GitHub repo 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": {
      "user": "<user>",
      "repo": "<repo>",
      "version": "<version>"
    },
    "name": "jsdelivr_gh_version_files_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
byNoSort by hits or bandwidth. Default: hits
pageNoPage number (1-100). Default: 1
repoYesGitHub repo name, e.g. 'bootstrap'
userYesGitHub username or org, e.g. 'twbs'
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
versionYesExact version, e.g. '5.3.3'

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?

With no annotations supplied, the description carries the entire behavioral burden and does almost nothing with it. It does not state that this is a read-only operation, that results are paginated and sortable, how defaults are applied, or whether rate limits and data freshness matter — all of which affect correct invocation.

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, which is structurally good. It is concise to the point of under-specification, but the length itself is appropriate.

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?

Seven parameters, three of them required, plus a nuanced period format and sort/pagination controls, with no annotations and no output schema. The one-sentence description leaves an agent without enough context about what the returned file-level stats look like or how the tool differs from adjacent jsDelivr tools.

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%, with 7 parameters fully documented including the period format syntax and enum for 'by', so the baseline is 3. The description adds no parameter meaning of its own; it never mentions sorting, pagination, or the period semantics.

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?

The sentence names a specific verb ('Get'), a precise resource ('file-level stats'), and the scope ('specific GitHub repo version on jsDelivr'). This is far clearer than a tautology and implicitly contrasts with aggregate tools like jsdelivr_gh_version_stats, but it never explicitly distinguishes itself from jsdelivr_gh_files or that sibling.

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, and no named alternative despite a crowded sibling set of file, stats, and version tools. The agent must infer from the tool name alone whether this or jsdelivr_gh_files/jsdelivr_gh_version_stats fits the task.

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