Skip to main content
Glama

jsDelivr Global Package CDN and Traffic Stats MCP

Get jsDelivr package traffic stats

get_jsdelivr_package_traffic_stats
Read-onlyIdempotent

Retrieve real-world CDN hits, bandwidth consumption, global rank, and period-over-period comparisons for a package.

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

Input Schema

NameRequiredDescriptionDefault
periodNoAggregation period (default "month").
package_nameYesPackage name (e.g. "react", "vue", "axios").
package_typeNoRegistry source: "npm" (default) or "gh".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds that results are 'real-world' CDN measurements and include period-over-period comparisons, but says nothing about data freshness/lag in jsDelivr reporting, rate limits, or what happens when a package has no traffic in the chosen period.

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, listing the returned quantities in a readable order. It is efficient, though it could have used a few extra words to route the agent among sibling tools.

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?

For a simple three-parameter read tool with full schema documentation, the definition plus schema is nearly sufficient; the description usefully sketches the returned data since there is no output schema. The remaining gap—statistical lag/units and cross-package alternatives—is minor rather than blocking.

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%: the schema documents period (enum plus default 'month'), package_name with examples, and package_type with enum and default 'npm'. The description adds no further meaning about parameter interaction, such as whether period affects the comparison baseline, so 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 ('Retrieve') and a specific resource ('real-world CDN hits, bandwidth consumption, global rank, and period-over-period comparisons for a package'). The enumerated metrics make it clearly distinct from siblings like get_jsdelivr_package_files or get_jsdelivr_npm_package_versions, though no sibling is named explicitly to sharpen the contrast.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer 'call this when you need traffic/usage numbers for one package' from the metric list. There is no explicit when-to-use, when-not-to-use, or pointer to alternatives (e.g., use top_packages for rankings across packages rather than one package).

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.