Source BOM
parts_source_bomSource orderable parts for every schematic component from project providers, checking stock and package and writing part-number, MPN, and manufacturer fields before BOM/fab.
Instructions
BOM sourcing pass: give every schematic component (all sheets) a part from the project's parts providers. Run it once
the schematic has values and footprints, before the fab pack. Per component it decides from an existing MPN field,
then value + footprint package, then an MPN in the footprint name; existing part numbers are kept (overwrite=true
re-picks) and checked against stock and package. Writes the provider's part-number field plus MPN / Manufacturer
(write=false reports only). Returns summary (sourced %, parts by class, setup-fee and cost estimates), lines
(decided), manual (could not decide: reason + options) and stock_risks.
Example: parts_source_bom(write=false) to preview, then parts_source_bom()
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "parts_source_bom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | use live stock/search (default true; false = offline data only) | |
| write | No | write fields into the schematic (default true) | |
| boards | No | build quantity for stock-risk maths (default 5) | |
| project | No | project path (default: active) | |
| provider | No | parts provider to ask (default: the project's parts.providers, in order): lcsc | local | kicad | a third-party name | |
| overwrite | No | re-pick parts that already have a part number (default false) | |
| basic_only | No | only a provider's cheapest assembly class, e.g. JLC Basic (default: the config policy, false) | |
| while_open | No | refuse (default) | revert | |
| allow_extended | No | allow them when nothing cheaper fits (default: the config policy, true) |