Skip to main content
Glama

npm package bundle size from Bundlephobia's public size

dev_bundlephobia
Read-only

npm package bundle size from Bundlephobia's public size API: minified and gzipped size in bytes, version, number of dependencies, repository and description. Give a package name, optionally with @version (e.g. react@18.3.1). Sizes are as Bundlephobia computes them. Related tools on this server, for a different need: dev_producthunt when you need Product Hunt launches featured on the homepage feed for one. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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": "dev_bundlephobia"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageYesnpm package name, optionally with @version, e.g. react or lodash@4.17.21

Output Schema

NameRequiredDescriptionDefault
sourceNo
packageNo
versionNo
checkedAtNo
gzipBytesNo
repositoryNo
descriptionNo
minifiedBytesNo
hasSideEffectsNo
dependencyCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered; the description still adds real value by disclosing cost ($0.002 per successful call via x402/USDC), that failures are not charged, and that sizes are 'as Bundlephobia computes them' (an external-source caveat). It does not mention caching, rate limits, or behavior for unknown packages, which keeps it below a 5.

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

Conciseness3/5

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

Front-loaded and the core sentence plus input guidance are efficient. But the mid-sentence pivot to dev_producthunt is unrelated filler that dilutes routing information, and the pricing sentence, while useful, is verbose with the full network list.

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 one-parameter read-only lookup with an output schema in place, the definition covers purpose, input format, data provenance, and cost — everything needed to invoke it correctly. Minor gaps: no statement about what happens for unlisted or invalid packages, and the sibling reference is unhelpful.

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% and the single parameter is already documented with examples, so the description largely restates 'package name, optionally with @version'. It reinforces the version-pinning convention but adds no new syntax or edge-case meaning beyond the schema.

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?

Names a specific verb+resource (npm package bundle size from Bundlephobia) and enumerates the returned data: minified/gzipped bytes, version, dependency count, repository, description. An agent can immediately tell this is a package-size lookup rather than an app-store or code-coverage lookup, distinguishing it from the curated sibling list.

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?

Gives input-shape guidance ('give a package name, optionally with @version') which implies when the tool is applicable. However, the only sibling routing offered points to dev_producthunt 'for a different need' — an unrelated cross-sell that gives no genuine when-to-use/when-not-to-use rule or alternative for size-related questions.

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