Skip to main content
Glama

Bundlephobia Size

bundlephobia_size
Read-onlyIdempotent

Bundle size analysis, minified + gzipped, tree-shakeability, dependencies, esm/cjs detection.

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": "react"
    },
    "name": "bundlephobia_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
recordNoRecord the lookup publicly (default true)
packageYesnpm package name (scoped allowed)
versionNoSpecific version (default latest)

Output Schema

NameRequiredDescriptionDefault
gzipNoGzipped size in bytes
nameNoPackage name
sizeNoMinified size in bytes
brotliNoBrotli compressed size in bytes
versionNoPackage version
hasJSNextNoHas ES module support
descriptionNoPackage description
hasJSModuleNoHas CommonJS support
dependenciesNoList of dependencies
dependencyCountNoNumber of dependencies

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is fully covered structurally. The description adds nothing behavioral beyond the metric list: it does not disclose that lookups are recorded publicly by default (record=true) or note any network/rate-limit characteristics of this open-world call. It also does not contradict the annotations.

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?

It is a single terse sentence-fragment with no filler, and the core purpose is front-loaded. However, the comma-separated metric list reads as under-specification rather than crisp structure, and there is no sentence telling the agent how to act on it.

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?

With an output schema present and 100% parameter coverage, the description does not need to explain return values, and rich annotations cover safety. Still, for an open-world network lookup it omits any guidance on usage context or the public-recording default, leaving gaps an agent must resolve from structured fields alone.

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 package, version, and record each documented in the schema itself, so the schema carries the parameter burden. The description contributes no additional semantics such as scoped-name handling or version resolution rules, making the 3 baseline appropriate.

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 the resource (bundle size) and enumerates the specific metrics returned: minified + gzipped size, tree-shakeability, dependencies, and esm/cjs detection. That is more specific than a bare restatement of the name. It stops short of saying it looks up npm packages specifically, and gives no differentiation from the sibling bundlephobia_history.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: no statement of when to query a single package here versus using the history sibling, no prerequisites, and no mention of the default-latest-version behavior. The agent must infer the usage context entirely from the name and schema.

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.