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.

Tool Definition Quality

Score is being calculated. Check back soon.

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