EbikePartsPicker
v1.0.0US e-bike conversion legality by state, kit fit checks and range estimates.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
check_conversion_legality Check e-bike conversion legality
Checks whether a DIY e-bike conversion (motor kit on a regular bicycle) qualifies as a legal electric bicycle in a US state. Returns a pass / warn / fail verdict with a reason for each rule: motor power, speed and class, licence/registration/insurance, class label, battery certification, plus state notes on conversions and recent law changes, with source links.
| Parameter | Type | Description |
|---|---|---|
motor_watts * | number | Motor rated (nominal) power in watts |
state * | string | US state or DC: two-letter code (CA) or full name |
assist_top_mph | number | Speed at which pedal assist cuts out. Default 20; 28 for a Class 3 setup |
battery_cert | string | listed = certified to UL 2271/2849 by an accredited lab; claimed = seller says 'tested to' or 'meets'; none; unknown |
has_pedals | boolean | True if the bike keeps fully operable pedals. Default true |
has_throttle | boolean | True if the bike can be powered without pedaling |
throttle_top_mph | number | Speed at which throttle power cuts out. Default 20 |
check_build_compatibility Check conversion kit fit
Checks whether a conversion motor or kit fits a bicycle and matches a battery: bottom bracket or dropout width, wheel size, frame and fork material, battery voltage against the controller, and battery current rating against controller draw. Pass a component_id from list_components.
| Parameter | Type | Description |
|---|---|---|
battery_ah | number | Battery capacity in amp-hours |
battery_volts | number | Battery nominal voltage, e.g. 36, 48, 52 |
bb | string | Bottom bracket shell (needed for mid-drive motors) |
bms_amps | number | Battery continuous discharge rating in amps |
brake | string | |
component_id | string | Id from list_components, e.g. bafang-bbs02b-750 |
fork | string | |
frame | string | |
front_dropout_mm | number | Inside width between fork dropouts in mm (needed for front hub motors), e.g. 100 |
rear_dropout_mm | number | Inside width between rear dropouts in mm (needed for rear hub motors), e.g. 135 |
wheel | string | Wheel size: 16, 20, 24, 26, 27.5, 29 or 700c |
check_full_build Check a whole build
Runs legality, compatibility and range together for one planned conversion. Use when the user gives their state, bike details, motor or kit and battery in one go.
| Parameter | Type | Description |
|---|---|---|
state * | string | US state or DC: two-letter code (CA) or full name |
assist_top_mph | number | Speed at which pedal assist cuts out. Default 20; 28 for a Class 3 setup |
battery_ah | number | |
battery_cert | string | listed = certified to UL 2271/2849 by an accredited lab; claimed = seller says 'tested to' or 'meets'; none; unknown |
battery_volts | number | |
bb | string | Bottom bracket shell (needed for mid-drive motors) |
bms_amps | number | Battery continuous discharge rating in amps |
brake | string | |
component_id | string | |
fork | string | |
frame | string | |
front_dropout_mm | number | Inside width between fork dropouts in mm (needed for front hub motors), e.g. 100 |
has_pedals | boolean | True if the bike keeps fully operable pedals. Default true |
has_throttle | boolean | True if the bike can be powered without pedaling |
motor_watts | number | Motor rated (nominal) power in watts |
rear_dropout_mm | number | Inside width between rear dropouts in mm (needed for rear hub motors), e.g. 135 |
rider_effort | string | none = throttle only |
speed_mph | number | Average cruising speed. Default 16 |
terrain | string | |
throttle_top_mph | number | Speed at which throttle power cuts out. Default 20 |
total_weight_lb | number | Rider + bike + cargo in pounds. Default 250 |
wheel | string | Wheel size: 16, 20, 24, 26, 27.5, 29 or 700c |
get_state_ebike_law Get a state's e-bike law
Returns the researched e-bike rules for one US state or DC: definition, wattage and speed limits, age, helmet, licence, registration, insurance, label and modification rules, what an out-of-class bike becomes, battery rules, conversion notes, recent changes, statute citations and sources.
| Parameter | Type | Description |
|---|---|---|
state * | string | US state or DC: two-letter code (CA) or full name |
list_state_ebike_laws List all state e-bike laws
Returns a one-line summary for all 50 states and DC: framework, wattage limit, speed limits, and whether licence, registration, insurance or a label is required. Use to compare states.
get_federal_ebike_law Get US federal e-bike law
Returns the federal position: the consumer-product definition of a low-speed electric bicycle (15 U.S.C. 2085), the three-class definition for federally funded paths (23 U.S.C. 217), and the status of CPSC battery rulemaking.
list_components List conversion motors and kits
Lists common e-bike conversion motors and kits with rated power, voltages, certification status and typical price. Optional filter by type.
| Parameter | Type | Description |
|---|---|---|
type | string |
get_component Get one motor or kit
Returns full specifications for one conversion motor or kit: power, voltages, controller current, torque, sensor type, bottom bracket or dropout sizes, wheel sizes, certification wording, fit notes and the source page.
| Parameter | Type | Description |
|---|---|---|
component_id * | string |
estimate_range Estimate e-bike range
Estimates range in miles (low, typical, high) from battery size, total weight, speed, terrain and rider effort, and returns the formula's assumptions.
| Parameter | Type | Description |
|---|---|---|
battery_ah * | number | |
battery_volts * | number | |
rider_effort | string | none = throttle only |
speed_mph | number | Average cruising speed. Default 16 |
terrain | string | |
total_weight_lb | number | Rider + bike + cargo in pounds. Default 250 |
get_battery_safety_guidance Battery certification guidance
Explains UL 2271 and UL 2849, the difference between certified and 'tested to', and which states and cities require certified e-bike batteries, with sources.
list_conversion_kit_rebates Rebates that cover conversion kits
Lists e-bike incentive programs and whether each covers conversion kits. Optional two-letter state filter.
| Parameter | Type | Description |
|---|---|---|
state | string |