Skip to main content
Glama

resolve_cdn_cem

Fetch and cache a web component library's Custom Elements Manifest from jsDelivr or UNPKG by npm package name, without requiring a local npm install. Optionally register the manifest into a multi-library store for use with other tools.

Instructions

Fetch and cache a web component library's Custom Elements Manifest (CEM) from a CDN registry (jsDelivr or UNPKG) by npm package name. Useful when the library is loaded via CDN without a local npm install. By default (register: false) the CEM is only fetched and cached locally — server state is NOT modified. Set register: true to also register the CEM into the multi-library store for use with other tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
packageYesnpm package name, e.g. "@shoelace-style/shoelace"
versionNoPackage version, e.g. "2.15.0". Defaults to "latest".
registryNoWhich CDN to use. Default: "jsdelivr".
registerNoWhen true, registers the fetched CEM into the multi-library store. Default: false (preview only, does not mutate server state).
cemPathNoOptional path to the CEM file within the package, e.g. "dist/custom-elements.json". If omitted, tries "custom-elements.json", then "dist/custom-elements.json", then "lib/custom-elements.json".
Behavior4/5

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

With no annotations, description clearly states that by default server state is NOT modified (register:false) and explains registration behavior. Discloses caching locally. Could elaborate on idempotency or error handling, but covers key behavioral aspects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, no waste. Front-loaded with core action, then usage context, then behavioral detail. Every sentence earns its place.

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?

Covers main functionality and usage but omits return value/output description. With no output schema, the agent is left guessing what the tool returns. Also missing error handling notes. Adequate but incomplete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 100% coverage, but description adds value: explains default behavior for register, fallback logic for cemPath, and purpose of each parameter. Provides context beyond schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states verb+resource: 'Fetch and cache a web component library's Custom Elements Manifest (CEM) from a CDN registry'. Differentiates from siblings by specifying CDN source (jsDelivr/UNPKG) and npm package name, which no other sibling tool does.

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

Usage Guidelines4/5

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

Provides clear when-to-use context: 'Useful when the library is loaded via CDN without a local npm install'. Explains default behavior and when to set register:true. Does not explicitly mention alternatives or when not to use, but the context is sufficient.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bookedsolidtech/helixir'

If you have feedback or need assistance with the MCP directory API, please join our Discord server