Skip to main content
Glama

List Npm Files

list_npm_files
Read-onlyIdempotent

jsDelivr Data API, the file tree of one published npm package version (latest by default) as jsDelivr indexes it for CDN delivery. Returns the directory structure with each file's path, byte size, content hash and type, read from jsDelivr's package index. Answers which files, entry points and build outputs an npm package version actually ships.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "package_name": "lodash"
    },
    "name": "list_npm_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionNoSpecific published version, e.g. "4.17.21". Omit this argument entirely to get the latest published version, do not pass the literal string "latest"; jsDelivr's API rejects that as an unresolvable version and returns 404.
package_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / version / description
      Previous value: -"Specific published version, e.g. \"4.17.21\". Omit this argument entirely to get the latest published version — do not pass the literal string \"latest\"; jsDelivr's API rejects that as an unresolvable version and returns 404."New value: +"Specific published version, e.g. \"4.17.21\". Omit this argument entirely to get the latest published version, do not pass the literal string \"latest\"; jsDelivr's API rejects that as an unresolvable version and returns 404."
  2. Changed2 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "package_name": "lodash"
      -  },
      -  {
      -    "package_name": "next",
      -    "version": "14.0.0"
      -  }
      -]New value: +[
      +  {
      +    "package_name": "lodash"
      +  },
      +  {
      +    "package_name": "next",
      +    "version": "14.0.0"
      +  },
      +  {
      +    "package_name": "@types/node",
      +    "version": "22.0.0"
      +  }
      +]
    • changedInput schema / properties / version / description
      Previous value: -"Specific version (default latest)"New value: +"Specific published version, e.g. \"4.17.21\". Omit this argument entirely to get the latest published version — do not pass the literal string \"latest\"; jsDelivr's API rejects that as an unresolvable version and returns 404."
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds that results come from jsDelivr's package index (so contents reflect CDN indexing, not the raw tarball) and what fields each file carries, but says nothing about staleness, truncation, or failures for unpublished packages.

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?

Two front-loaded sentences with no filler; purpose first, return shape second. Slightly dense phrasing, but every clause carries information.

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?

With an output schema documenting the returned fields and annotations covering safety and idempotency, the description supplies what remains: data source and default-version behavior. Minor gaps around empty/404 results for unpublished packages are acceptable at this complexity.

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 coverage is only 50% — package_name has no description at all — so the description's 'one published npm package version (latest by default)' meaningfully documents the default when version is omitted, reinforcing the schema's warning against passing the literal 'latest'.

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 concrete verb and resource: the file tree of one published npm package version, defaulting to latest, sourced from jsDelivr's index. The scope ('one published version') implicitly distinguishes it from the version-listing sibling, though it never names that alternative.

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?

The closing line ('Answers which files, entry points and build outputs an npm package version actually ships') implies the use case, but there is no explicit when-to-use or when-to-prefer-another tool guidance, such as pointing to list_npm_versions for enumerating versions first.

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.