Skip to main content
Glama

estimate_bundle_size

Estimate the minified and gzipped bundle size of a web component by providing its tag name. Queries bundlephobia and npm registry with 24-hour caching.

Instructions

Estimate the bundle size (minified + gzipped) for a web component or its parent npm package. Queries bundlephobia and the npm registry. Results are cached in memory for 24 hours.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagNameYesThe custom element tag name, e.g. "sl-button".
packageNoOptional: explicit npm package name (e.g. "@shoelace-style/shoelace"). If omitted, the package is derived from componentPrefix in your config using a built-in prefix→package map (e.g. "sl"→"@shoelace-style/shoelace", "fluent-"→"@fluentui/web-components", "mwc-"→"@material/web", "ion-"→"@ionic/core", "vaadin-"→"@vaadin/components", "lion-"→"@lion/ui", "pf-"→"@patternfly/elements", "carbon-"→"@carbon/web-components"). If your prefix is not in this list, you must provide the package explicitly — omitting it will return a VALIDATION error.
versionNoPackage version to look up. Defaults to "latest".
include_full_packageNoWhen false, suppresses the full_package size from the result. Defaults to true.
Behavior3/5

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

The description mentions caching (24-hour in-memory) and queries to bundlephobia/npm registry, but omits details like network dependency, latency, or error handling. With no annotations, the description provides partial transparency.

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

Conciseness5/5

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

Two concise, well-structured sentences with no fluff. Key information is front-loaded and every sentence adds value.

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?

The tool is well-described for its purpose, but lacks details on the return value structure (e.g., whether result includes only sizes or other metadata). Given no output schema, the description could clarify the output format fully.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds significant value beyond the schema: explains tagName→package derivation, lists prefix mappings, warns about validation errors, and clarifies defaults for version and include_full_package. Schema coverage is 100%, and the description enhances usability.

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?

The description clearly states the tool estimates bundle size (minified + gzipped) for web components or npm packages, distinct from sibling tools which focus on accessibility, styling, or component analysis.

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?

No explicit when-to-use or when-not-to-use guidance is provided. Usage is implied by the task but no alternatives or exclusions are mentioned, leaving the agent to infer context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bookedsolidtech/helixir'

If you have feedback or need assistance with the MCP directory API, please join our Discord server