Skip to main content
Glama

Rough bandwidth/cost impact of a conversion

estimate_migration_impact
Read-onlyIdempotent

Order-of-magnitude estimate of bandwidth offloaded (and hosting dollars, if a $/GB is given) when bytes move from first-party hosting to UNPKG. Range-based with explicit assumptions and caveats; it cannot forecast latency or Core Web Vitals. Get unpkgBytesPerPageLoad from audit_dependencies' impact.convertNowEntryBytes plus any transitive files the caller chooses to include.

Input Schema

NameRequiredDescriptionDefault
browserCacheRateNoShare of loads served from browser cache. Default 0.5.
monthlyPageViewsYes
bandwidthCostPerGbUsdNoCurrent hosting $/GB, if known. Omit to skip dollars.
unpkgBytesPerPageLoadYesRaw bytes per page load moving to UNPKG.

Output Schema

NameRequiredDescriptionDefault
caveatsYes
assumptionsYes
betterMetricsYes
perLoadWireBytesYes
monthlySavingsUsdYes
monthlyGbOffloadedYes
transferTimeEquivalentMsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already carry readOnly/idempotent/non-destructive, so this description does not need to restate safety. It adds genuinely non-obvious behavior beyond them: results are range-based with explicit assumptions and caveats, and the tool deliberately excludes latency and Core Web Vitals forecasting. It does not describe how the dollar figure behaves when the cost parameter is omitted beyond the schema's brief note.

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 tight sentences: purpose first, scope limits second, input sourcing third. Every sentence contributes, though the sourcing sentence is dense and packs multiple clauses that could be slightly cleaner. No filler or repetition.

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?

With an output schema present, the description need not explain return values, and it correctly focuses on caveats and inputs instead. For a four-parameter read-only estimator the coverage is strong; the minor gap is that the effect of the default browser cache rate on results is not discussed.

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

Parameters4/5

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

Schema coverage is 75%, so the baseline is near 3, but the description adds real meaning: it explains that bandwidthCostPerGbUsd is optional and only enables the dollar calculation, and it supplies provenance for unpkgBytesPerPageLoad via audit_dependencies. Only monthlyPageViews remains entirely unexplained, and its meaning is self-evident.

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 opens with a specific verb and resource: an order-of-magnitude estimate of bandwidth offloaded and hosting dollars when bytes move from first-party hosting to UNPKG. It also distinguishes itself from the sibling audit_dependencies by naming that tool as the upstream source of one input, so an agent can tell the two apart without opening schemas.

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?

It states the context in which the tool applies (bytes moving to UNPKG, optional $/GB to include dollars) and explicitly bounds when not to rely on it: it cannot forecast latency or Core Web Vitals. It also prescribes how to obtain the key input from audit_dependencies' impact.convertNowEntryBytes. What it lacks is a named alternative for scenarios where a range estimate is insufficient.

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