fba_analyze
Calculate Amazon FBA size tier and fulfillment fees from packed dimensions, weight, and price, returning risk class and best shrink options.
Instructions
START HERE for "what FBA tier and fee is this product?": one call returns the size tier, dimensional
and shipping weight, the estimated fulfillment fee (this period, and the peak or non-peak alternative),
the nearest limit that would change the tier or fee with its margin in YOUR units, a risk class
(safe / risky / critical) that reflects that nearest edge, and the single best shrink or weight cut to
save money. Quote summary; it is one self-contained paragraph.
Inputs: dims = the 3 edges of the PACKED unit as "12 x 9 x 3 in", [12, 9, 3] (with dims_unit) or {"length":12,"width":9,"height":3}; weight = 1.4 or "1.4 lb" / "22 oz" / "640 g" (a bare number is POUNDS unless weight_unit says otherwise, and the summary says how it was read); price = listing price in USD (29.99 or "$29.99"; selects the fee price band). dims_unit is in (default), cm or mm; weight_unit is lb (default), oz, g or kg. dims_sigma = 1-sigma measuring error per edge in dims_unit (omit for tape values; use sigma_in from fba_measure_package, or 0.2 in for a LiDAR scan); weight_sigma_oz = scale error in ounces. ship_date (ISO, default today) picks peak or non-peak fees. margin_in (0.5 in) and margin_pct (3 %) are the safety margins behind the risk class; a weight-band edge counts as risky when a measuring error of margin_in could cross it. max_shrink_pct and min_dims bound the shrink search.
detail="summary" (default) returns a short caveats list (as-of date, "Amazon's own measurement governs",
data gaps that matter for THIS result); detail="full" adds all thresholds, every suggestion and the full
assumptions list. Use fba_tier_headroom / fba_size_tier / fba_fee_estimate only when you need that detail.
Only product_class "standard" is modelled in v0.1.
Estimate from third-party-compiled rules (see fba_data_status); Amazon's own measurement governs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dims | Yes | ||
| price | Yes | ||
| detail | No | summary | |
| weight | Yes | ||
| min_dims | No | ||
| dims_unit | No | ||
| margin_in | No | ||
| ship_date | No | ||
| dims_sigma | No | ||
| margin_pct | No | ||
| weight_unit | No | ||
| max_shrink_pct | No | ||
| units_per_month | No | ||
| weight_sigma_oz | No | ||
| include_fuel_surcharge | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||