Skip to main content
Glama
jsdelivr-mcp
by anvme

jsdelivr_gh_badge

Generate a jsDelivr badge URL for a GitHub repository showing hits, rank, or type-rank, with configurable style and time period for README display.

Instructions

Get a badge URL for a GitHub repo on jsDelivr (hits, rank, or type-rank).

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

Input Schema

NameRequiredDescriptionDefault
repoYesGitHub repo name, e.g. 'bootstrap'
typeNoBadge type. Default: hits
userYesGitHub username or org, e.g. 'twbs'
styleNoBadge style. Default: square
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

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden, and it leaves key behavioral questions unanswered: whether the call returns a constructed URL string or fetches/hits the jsDelivr API, what the returned artifact looks like (bare URL vs markdown/HTML snippet), and whether any auth or rate limits apply. 'Get a badge URL' hints at a read, but that is inference rather than disclosure.

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 filler and the resource stated before the qualifier. It is efficient, though so terse that it omits useful context rather than wasting words.

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 five-parameter, fully-described simple tool with no output schema, the description is minimally adequate: the return is named ('badge URL') and the badge universe is scoped. It still lacks any note on whether the call is pure URL construction or a live jsDelivr request, and no output shape detail beyond the two-word noun.

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 every parameter (user, repo, type, style, period) is already documented with examples and enum values; the baseline of 3 applies. The description's '(hits, rank, or type-rank)' duplicates the schema enum for `type` without adding format or interaction details for style/period.

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 description uses a specific verb ('Get') and resource ('badge URL for a GitHub repo on jsDelivr') and enumerates the three badge kinds, which implicitly separates it from jsdelivr_npm_badge by scoping to GitHub. It does not name any sibling explicitly, so differentiation relies on the agent reading 'GitHub repo' against the npm counterpart.

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 statement of when to use this versus jsdelivr_gh_stats (which likely supplies the underlying numbers the badge renders) or the npm badge tool. The only guidance is the badge-type hint, which merely restates schema enum values rather than explaining selection conditions.

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