Suggest JLCPCB parts for a BOM
suggest_bom_partsSuggest concrete JLCPCB parts for an entire BOM with assembly-cost awareness. Ranks candidates by stock, price, and tier, providing reasons, warnings, and a full cost breakdown.
Instructions
Suggest concrete JLCPCB parts for a whole BOM with assembly-cost awareness. Input EITHER 'path' (a .kicad_sch schematic or KiCad BOM .csv) OR 'bom_lines' (inline rows) — exactly one. Each line gets ranked candidates with reasons/warnings and a status: matched, needs_review (verify manually — e.g. IC matched only by fuzzy text), no_match, preassigned (schematic already carries an LCSC number), or skipped_dnp. Also returns a cost breakdown: component cost at price breaks plus one-time $3 loading fee per unique extended-tier part (basic and preferred parts are fee-free). Ranking prefers basic tier, deep stock vs. needed qty (board_qty × qty × stock_multiple), and lower price.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to a .kicad_sch or BOM .csv (mutually exclusive with bom_lines). Relative paths resolve against the server's working directory. | |
| board_qty | No | Number of boards to assemble (default 10) | |
| bom_lines | No | Inline BOM lines (mutually exclusive with path) | |
| max_candidates | No | Ranked candidates kept per line, clamped to 1-50 (default 5) | |
| stock_multiple | No | Stock safety factor: warn unless stock ≥ needed × this (default 5) |