Rough bandwidth/cost impact of a conversion
estimate_migration_impactOrder-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.
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": {
"monthlyPageViews": "<monthlyPageViews>",
"unpkgBytesPerPageLoad": "<unpkgBytesPerPageLoad>"
},
"name": "estimate_migration_impact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| browserCacheRate | No | Share of loads served from browser cache. Default 0.5. | |
| monthlyPageViews | Yes | ||
| bandwidthCostPerGbUsd | No | Current hosting $/GB, if known. Omit to skip dollars. | |
| unpkgBytesPerPageLoad | Yes | Raw bytes per page load moving to UNPKG. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caveats | Yes | ||
| assumptions | Yes | ||
| betterMetrics | Yes | ||
| perLoadWireBytes | Yes | ||
| monthlySavingsUsd | Yes | ||
| monthlyGbOffloaded | Yes | ||
| transferTimeEquivalentMs | Yes |