Skip to main content
Glama
cdnjs-frontend-libraries-mcp

cdnjs-frontend-libraries-mcp

Get CDNjs library metadata

get_cdnjs_library_metadata
Read-onlyIdempotent

Fetch CDNjs library metadata such as license, homepage, author, repository, latest version, and recent releases by providing the exact library slug.

Instructions

Fetch detailed metadata for a Cloudflare CDNjs library including latest version, license, homepage, author, repository, and recent versions.

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": {
      "library": "<library>"
    },
    "name": "get_cdnjs_library_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
libraryYesExact CDNjs library slug (e.g. "react", "jquery", "chart.js").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and non-destructive behavior, so the safety profile is covered. The description adds value by enumerating what comes back (license, homepage, author, repository, recent versions), which matters because no output schema exists, but it says nothing about failure modes such as an unknown slug or how many 'recent versions' are returned.

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?

One front-loaded sentence with the verb and resource first, then the returned fields. The field enumeration is slightly long but earns its place given there is no output schema.

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 single-parameter read tool with rich annotations and a fully documented schema, the description covers purpose and return contents adequately. Remaining gaps—error behavior for missing libraries and the count of 'recent versions'—are minor for this complexity level.

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% and the single 'library' parameter is already documented with an exact-slug explanation and examples. The description adds no further meaning about slug format, case sensitivity, or lookup behavior, so the baseline of 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 ('Fetch') and resource ('Cloudflare CDNjs library metadata') and enumerates the fields returned (version, license, homepage, author, repository, versions), so an agent can tell it is the general metadata lookup rather than the version- or hash-specific siblings. It stops short of naming any sibling or stating the distinction 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 guidance on when to use this versus get_cdnjs_library_versions, get_cdnjs_version_sri_hashes, or search_cdnjs_libraries, and no prerequisites or exclusions. The field list only implies the use case (wanting library-level details), leaving routing to the agent's inference.

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