Skip to main content
Glama
jsdelivr-mcp
by anvme

jsdelivr_npm_resolve

Resolve an npm semver range or tag to an exact package version via jsDelivr, so you can pin dependencies or build accurate CDN URLs.

Instructions

Resolve an npm semver range or tag to an exact version via 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": {
      "package": "<package>"
    },
    "name": "jsdelivr_npm_resolve"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageYesnpm package name, e.g. 'jquery' or '@popperjs/core'
specifierNoSemver range or tag to resolve, e.g. '2.2', '^3.0.0', 'latest'. Default: 'latest'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden, and it does signal that resolution happens remotely through jsDelivr. It does not disclose what happens for an unresolvable specifier, whether the result reflects a cached/latest lookup, or what the response looks like. For a low-risk read tool this is acceptable but thin.

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 or repetition. Zero wasted words, though the terseness means the one sentence does little work beyond the tool name plus the jsDelivr mention.

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?

The input side is fully covered by the schema and the tool is simple, but with no output schema the description should say what 'resolve' returns (a bare version string, a version object, a resolved CDN URL) and what happens on failure. That return-shape gap is the main incompleteness for an otherwise small, well-specified tool.

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 both 'package' (including the scoped-package example) and 'specifier' (with range/tag examples and the 'latest' default) documented in the schema itself. The description only restates the concept of a semver range or tag and adds no format or edge-case meaning beyond that.

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 names a specific verb and resource ('Resolve an npm semver range or tag to an exact version') plus the backing service ('via jsDelivr'), which is enough to distinguish it from jsdelivr_gh_resolve by the 'npm' qualifier. It stops short of explicitly contrasting with the version/stat siblings, so it is clear but not fully differentiated.

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?

When to use is only implied by the purpose: an agent can infer this is the tool for turning a range or tag into a concrete version. There is no explicit statement of alternatives (e.g. use jsdelivr_npm_top_versions when you want a list of versions) or of what to do when resolution fails.

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