Skip to main content
Glama
jsdelivr-mcp
by anvme

jsdelivr_gh_stats

Retrieve daily hits and bandwidth statistics for a GitHub repository on jsDelivr by specifying the user, repo, and optional time period.

Instructions

Get daily usage stats (hits + bandwidth) for a GitHub repo 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>"
    },
    "name": "jsdelivr_gh_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesGitHub repo name, e.g. 'bootstrap'
userYesGitHub username or org, e.g. 'twbs'
periodNoTime period: floating (day|week|month|quarter|year), static (s-month|s-quarter|s-year), or date (YYYY-MM|YYYY-Qq|YYYY). Default: month

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the returned metrics ('hits + bandwidth') and the data granularity ('daily'), which is genuine behavioral value beyond the name. It says nothing about rate limits, authentication, or response format, which matters given there is no output schema.

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 tight sentence with the verb and the metric front-loaded, and no filler or redundancy. It is appropriately sized for a simple two-required-parameter read tool. It loses a point only because that brevity leaves the routing gaps noted elsewhere.

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?

For a tool with no annotations and no output schema, the description should say more about what the response contains and how the period affects the shape of the data. The parameters are well covered by the schema, but the behavioral and output picture remains largely unspecified.

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 all three parameters documented including the period grammar, so the baseline of 3 applies. The description adds no syntax or constraint detail beyond the schema, and the word 'daily' arguably sits in mild tension with the period parameter that permits month, quarter, and year aggregations.

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?

Specific verb and resource: 'Get daily usage stats (hits + bandwidth)' scoped to 'a GitHub repo on jsDelivr'. It clearly identifies the metrics and the target. It falls short of 5 because it never distinguishes itself from nearby siblings like jsdelivr_gh_version_stats or jsdelivr_npm_stats, leaving the agent to infer that this is repo-level rather than version-level or npm-scoped.

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 explicit when-to-use guidance, no prerequisites, and no mention of an alternative tool. The agent must infer from the word 'repo' alone that this is the aggregate repo-level endpoint rather than the version-level or npm variants. That is thin routing guidance for a catalog with over thirty jsDelivr siblings.

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