Skip to main content
Glama

FMF Proof

npm Package File at Version

npm_file

One file from a published npm package version, for when GitHub's unauthenticated rate limit blocks you. Read from the registry tarball after the tarball is checked against the hash npm published for it; a tarball that does not match is never served. Text or base64, with a sha256 of the file.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
pathNoFile inside the package, e.g. package.json.
packageNonpm package name, e.g. ms or @scope/name.
versionNoExact version (1.2.3) or latest.
max_bytesNoLargest file to return (default 200,000; up to 1,048,576).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does well on integrity: it discloses that the tarball is verified against npm's published hash and that a mismatched tarball 'is never served.' It also notes text-or-base64 output and a sha256 of the file. It omits what happens when max_bytes is exceeded (truncation vs. error), error behavior for missing paths or versions, and any registry rate limits.

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?

Three dense sentences: identity and use case first, then the integrity guarantee, then output shape. No filler, though the final fragment is terse enough to feel clipped rather than explanatory.

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 four-parameter read tool with no output schema and no annotations, the description covers the essentials an agent needs: source of truth, verification guarantee, and return encoding. The remaining gap is edge-case behavior (oversized files, unknown path/version) rather than core calling information.

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 coverage is 100%, so the schema already documents all four parameters including examples and the max_bytes default/ceiling; baseline 3 applies. The description adds only marginal meaning, mainly implying binary files come back as base64, but does not explain how max_bytes interacts with that encoding choice.

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 states a precise resource and scope: 'One file from a published npm package version,' with the source (registry tarball) named explicitly. It is unambiguous what the tool returns, though the verb is implied rather than stated and no sibling is named for differentiation.

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?

'for when GitHub's unauthenticated rate limit blocks you' gives a concrete trigger condition for choosing this tool. It stops short of stating exclusions or naming an alternative for the normal (non-rate-limited) path, so guidance is clear but one-sided.

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.

Resources