CircuitAgent

v0.25.0
io.github.mo9652962-ai/circuit-agent-client Checked 2 days ago Published 1 month ago

AI hardware synthesis: CircuitBlocks DSL, live LCSC parts, industrial DFX audit, stdio MCP server.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

synthesize_circuit

Synthesize a deterministic hardware netlist and component modules from a natural language prompt. Supported MCUs: STM32F103, ESP32-C3, ESP32-S3, RP2040, STC89C52, CH32V003, STM32G030, ATmega328P. Peripherals: Type-C, LDO, Crystal, Buttons, LEDs, Buzzer, I2C, RS485, CAN, TP4056 Battery, AHT20 Temp/Humidity Sensor, MPU6050 6-Axis Motion Sensor.

ParameterTypeDescription
prompt *stringNatural language circuit description, e.g. '基于 CH32V003 的 AHT20 温湿度与 MPU6050 姿态传感器节点'
chip_idstringOptional explicit MCU chip model (e.g. 'CH32V003F4P6', 'STM32G030F6P6', 'ATmega328P', 'STM32F103C8T6')
custom_chipobjectOptional third-party chip definition with custom pinout, package, and peripheral multiplexing rules
pin_mappingobjectOptional custom signal-to-pin allocations, e.g. {'/SCL': 'PC2', '/SDA': 'PC1'}

list_supported_chips

List all registered MCU chips and third-party pinout allocation rules (e.g. CH32V003, STM32G030, ATmega328P).

register_custom_chip

Register or dynamically override a third-party microcontroller pinout and peripheral multiplexing rule.

ParameterTypeDescription
chip_id *stringUnique identifier, e.g. 'CH32V003F4P6'
pins *arrayList of available GPIO and power pins
default_gpio_assignmentsobjectDefault signal mappings, e.g. {'/LED1': 'PD4'}
descriptionstringHuman-readable description of the chip
mcu_familystringMCU family, e.g. 'QingKe-RISC-V', 'ARM-Cortex-M0+'
packagestringPhysical package, e.g. 'TSSOP-20', 'QFN-32'
peripheral_routesobjectPeripheral routing defaults, e.g. {'I2C1': {'I2C_SCL': 'PC2', 'I2C_SDA': 'PC1'}}
pin_numbersobjectMap of pin names to physical pin numbers, e.g. {'PD1': '8'}
reserved_pinsobjectMap of reserved pins and reasons, e.g. {'PD1': 'SWDIO', 'NRST': 'RESET'}
supply_voltagenumberOperating voltage (typically 3.3 or 5.0)

search_lcsc_parts

Query live LCSC / JLCPCB component inventory, stock, package, and pricing with zero API keys required. Features 24-hour disk cache and exponential backoff.

ParameterTypeDescription
query *stringComponent part number, model, or description (e.g. 'CH340N', 'SP3485', 'TP4056').
limitintegerMaximum number of component matches to return (default: 5).

list_circuit_blocks

List all 10 pre-validated CircuitBlocks available in the hardware DSL catalog.

run_erc

Run deterministic Electrical Rules Check (ERC) on a netlist: floating nets, missing GND, unknown designators, missing power domain, missing decoupling. Every finding carries severity + source; blocking/error issues gate BOM/CPL delivery.

ParameterTypeDescription
netlist *objectNetlist dict with 'connections' (synthesize_circuit output passes directly).
modulesobjectOptional modules dict (ref -> {kind, value, package, lcsc}) for component-aware rules.

validate_netlist

Validate a hardware netlist dictionary against the formal CircuitAgent JSON Schema specification.

ParameterTypeDescription
netlist *objectNetlist dictionary containing 'connections' list with 'net' and 'points'.

calculate_trace_impedance

Calculate characteristic impedance (Z0) or differential impedance (Zdiff) for PCB microstrip traces using IPC-2141 / Wheeler equations. Solves exact trace width W and spacing S for target impedance (e.g. 50Ω RF, 90Ω USB, 120Ω RS485/CAN).

ParameterTypeDescription
mode *stringTrace mode: 'single' for single-ended microstrip, 'differential' for edge-coupled microstrip pair.
target_z *numberTarget impedance in ohms (e.g. 50.0 for single-ended, 90.0 for USB differential, 120.0 for CAN/RS485).
dielectric_ernumberRelative dielectric permittivity (Er) (default: 4.2 for FR4).
dielectric_h_mmnumberDielectric height between trace and reference ground plane in mm (default: 0.1mm for JLC04161H 4-layer).
trace_gap_mmnumberSpacing between differential traces in mm (only used in differential mode, default: 0.15mm).
trace_thickness_mmnumberFinished copper thickness in mm (default: 0.035mm for 1oz copper).

calculate_bom_cost

Calculate PCBA component cost breakdown and estimate JLCPCB SMT manufacturing surcharges. Identifies Basic library parts (¥0 feeder fee) vs Extended library parts (+¥20/type feeder fee) and suggests cost optimizations.

ParameterTypeDescription
queries *arrayList of component names, models, or descriptions (e.g. ['STM32F103C8T6', 'SP3485', '0603 10k']).

calculate_ipc2152_trace_current

Calculate conductor current-carrying capacity or solve required PCB trace width according to IPC-2152 standards for given copper weight (oz), temperature rise (ΔT °C), and layer position.

ParameterTypeDescription
mode *string'solve_current' calculates max Amps for given trace_width_mm; 'solve_width' calculates required mm for target_current_a.
copper_oznumberFinished copper thickness in ounces (default: 1.0 oz = 35 um).
layerstringConductor layer position: 'external' (outer copper) or 'internal' (inner plane).
target_current_anumberTarget continuous current in Amperes (required for 'solve_width').
temp_rise_cnumberAllowable conductor temperature rise above ambient in °C (default: 20.0 °C).
trace_width_mmnumberTrace width in mm (required for 'solve_current').

audit_industrial_dfx

Execute an enterprise-grade DFX (DFM/DFA/DFT/DFC/EMC) compliance audit on a schematic netlist. Verifies optical fiducials (MARK points), ICT testpoint coverage on power/debug rails, IEC 61000-4-2 TVS surge protection on exposed ports (USB, RS485, CAN), reverse polarity protection, and SMT costs.

ParameterTypeDescription
netlist *objectHardware netlist dictionary containing 'components' and 'connections'.

export_kicad_netlist

Export standard KiCad S-Expression netlist (.net) compatible with KiCad 6/7/8/9/10 Pcbnew.

ParameterTypeDescription
netlist *objectHardware netlist dictionary or synthesis result.
titlestringSchematic / board project title.

export_manufacturing_bom

Generate production-ready JLCPCB SMT BOM CSV with part grouping, designator aggregation, and Basic/Extended classification.

ParameterTypeDescription
netlist *objectHardware netlist dictionary or synthesis result.

export_manufacturing_cpl

Generate the JLCPCB SMT pick-and-place (CPL/pos) file with designator, centre X/Y in mm, layer and rotation. Required alongside the BOM for assembly: a part in the BOM but absent here is purchased and never soldered.

ParameterTypeDescription
netlist *objectHardware netlist dictionary or synthesis result.
default_layerstringLayer to assign when the netlist does not specify one (default 'Top').

calculate_parametric_circuit

Solve discrete parametric circuit equations: optimal E96 resistor dividers, LDO thermal dissipation, I2C bus pullups, or RC filters.

ParameterTypeDescription
params *objectCalculation arguments: for 'resistor_divider' (v_in, v_out_target, max_quiescent_current_ma); for 'ldo_thermal' (v_in, v_out, i_load_a, package); for 'i2c_pullup' (v_cc, bus_capacitance_pf, mode); for…
type *stringType of parametric calculation to perform.

render_circuit_topology

Render a clean, structured ASCII architectural diagram of power domains, buses, and connected subsystems.

ParameterTypeDescription
netlist *objectHardware netlist dictionary or synthesis result.

analyze_power_tree

Analyze system-level power distribution architecture, load current budgets (typical & peak mA), regulator dropout headroom, and LDO thermal dissipation / junction temperature estimates.

ParameterTypeDescription
modules *objectComponent modules dict (from synthesize_circuit output).
netlist *objectNetlist dict with 'connections' (from synthesize_circuit output).
ambient_temp_cnumberOperating ambient temperature in °C (default: 25.0).

calculate_ipc2221_clearance

Calculate minimum electrical clearance (conductor spacing) according to IPC-2221B Table 6-1 based on peak voltage and conductor classification (B1 internal, B2 external uncoated, B4 coated, A6 leads).

ParameterTypeDescription
peak_voltage_v *numberPeak working or test voltage in Volts (e.g., 5.0, 12.0, 24.0, 230.0).
conductor_typestringConductor classification: B1 (internal), B2 (external uncoated), B4 (coated), A6 (leads). Default: B2.

export_specctra_dsn

Generate universal Specctra DSN (v15.0) auto-router interchange file for automated PCB track routing in Freerouting, Cadence Specctra, Altium, or KiCad. Includes heuristic component auto-placement.

ParameterTypeDescription
modules *objectComponent modules dict (from synthesize_circuit output).
netlist *objectNetlist dict with 'connections' (from synthesize_circuit output).
board_height_mmnumberPCB height in mm (default: 50.0).
board_width_mmnumberPCB width in mm (default: 70.0).
clearance_mmnumberDefault routing clearance in mm (default: 0.200 / 8mil).
trace_width_mmnumberDefault routing trace width in mm (default: 0.254 / 10mil).

autoroute_pcb

Execute automated native PCB layout and multi-layer track routing on circuit specifications. Generates standard Specctra SES (Session) routing data and comprehensive physical metrics (completion rate, total track length, via count, layer utilization) with zero JVM dependencies.

ParameterTypeDescription
modules *objectComponent modules dict (from synthesize_circuit output).
netlist *objectNetlist dict with 'connections' (from synthesize_circuit output).
board_height_mmnumberPCB height in mm (default: 50.0).
board_width_mmnumberPCB width in mm (default: 70.0).
clearance_mmnumberDefault routing clearance in mm (default: 0.100 / 4mil).
enginestringAutorouting engine track. 'exact' (default) is orthogonal and DRC-verified; 'grid' is 8-connected and can leave diagonal shorts; 'room' uses continuous expansion rooms (may leave nets unrouted on dens…
trace_width_mmnumberDefault routing trace width in mm (default: 0.150 / 6mil).

export_kicad_schematic

Export modern KiCad 8/9 S-Expression schematic file (.kicad_sch) directly viewable and editable in KiCad Eeschema with sheet layout, component symbols, pin references, and LCSC attributes.

ParameterTypeDescription
modules *objectComponent modules dict (from synthesize_circuit output).
connectionsarrayNetlist connections list (optional).
titlestringSchematic sheet title block title.

audit_supply_chain

Audit BOM component multi-sourcing resilience (ISO 9001 supply chain audit), identifying single-source bottlenecks and mapping pin-compatible second-source drop-in replacements with LCSC cross-references.

ParameterTypeDescription
modules *objectComponent modules dict (from synthesize_circuit output).

calculate_differential_skew

Solve high-speed differential pair intra-pair propagation delay skew (USB 2.0 HS ≤10ps, Ethernet ≤25ps, CAN-FD ≤50ps) and calculate required serpentine length matching tuning bumps count and geometry.

ParameterTypeDescription
trace_length_delta_mm *numberMeasured trace length mismatch in mm (P minus N).
dielectric_ernumberRelative dielectric permittivity Er (default: 4.2).
height_mmnumberDielectric height to reference plane in mm (default: 0.100).
protocolstringTarget protocol standard (default: USB2_HS).
trace_width_mmnumberTrace width in mm (default: 0.254).

export_ipc_d356

Generate universal IPC-D-356A ASCII bare-board electrical test netlist file for flying probe testers (AEMG, ATG, MicroCraft) and bed-of-nails PCB fabrication test fixtures.

ParameterTypeDescription
modules *objectComponent modules dict (from synthesize_circuit output).
netlist *objectNetlist dict with 'connections' (from synthesize_circuit output).
board_height_mmnumberBoard height in mm (default: 50.0).
board_width_mmnumberBoard width in mm (default: 70.0).
job_namestringFabrication PCB job name.

export_gerber_bundle

Generate native fabrication-ready Gerber RS-274X + Excellon bundle (Edge_Cuts .gm1, Top/Bottom Copper .gtl/.gbl, Top/Bottom Mask .gts/.gbs, Top Silkscreen .gto, drill .drl) directly from placed modules and netlist, eliminating GUI EDA dependency. Copper layers carry real footprint pads and the autorouter's actual track geometry.

ParameterTypeDescription
modules *objectComponent modules dict (from synthesize_circuit output).
netlist *objectNetlist dict with 'connections' (from synthesize_circuit output).
autoroutebooleanRun the autorouter first so the copper layers carry real tracks (default: true). Set false to export pads only, i.e. an unrouted board.
board_height_mmnumberPCB height in mm (default: 50.0).
board_width_mmnumberPCB width in mm (default: 70.0).
ses_textstringOptional Specctra SES session text from a previous autoroute_pcb call. Overrides 'autoroute' and avoids routing twice.

calculate_pcb_stackup_impedance

Lookup standard industrial 4-layer (JLC04161H) and 6-layer (JLC06161H) PCB stackup matrices and solve target controlled impedance trace widths (50Ω RF, 90Ω USB, 100Ω Ethernet, 120Ω CAN/485, IPC-2141A).

ParameterTypeDescription
solve_custom_z_ohmsnumberOptional custom single-ended target impedance in Ohms to solve required trace width.
stackup_idstringStandard industrial stackup model (default: JLC04161H).

export_excellon_drill

Generate production IPC-NC-349 Excellon CNC drill file (.drl) with metric tool headers (T01C... T02C...), completing the 5-layer PCB manufacturing bundle for automated CNC drilling machines.

ParameterTypeDescription
modules *objectComponent modules dict (from synthesize_circuit output).
board_height_mmnumberPCB height in mm (default: 50.0).
board_width_mmnumberPCB width in mm (default: 70.0).
connectionsarrayNetlist connections list (optional).
job_namestringPCB fabrication job name.

generate_interactive_bom

Generate a lightweight self-contained single-file Interactive HTML BOM (iBOM, InteractiveHtmlBom-compatible) with interactive component grouping table, vector SVG board map, and bidirectional hover/click inspection.

ParameterTypeDescription
modules *objectComponent modules dict (from synthesize_circuit output).
board_height_mmnumberPCB height in mm (default: 50.0).
board_width_mmnumberPCB width in mm (default: 70.0).
titlestringInspection page title.

calculate_smt_feeder_matrix

Optimize SMT pick-and-place feeder slot allocation (8mm/12mm/16mm/24mm) and nozzle tooling selection (502/503/504/505/506) according to EIA-481 carrier tape standard and OpenPnP/Juki machine matrices.

ParameterTypeDescription
modules *objectComponent modules dict (from synthesize_circuit output).

export_openpnp_job

Generate production OpenPnP and industrial SMT pick-and-place board job CSV (part, designator, X/Y coords, rotation, nozzle ID, feeder slot assignment) for automated robotic assembly.

ParameterTypeDescription
modules *objectComponent modules dict (from synthesize_circuit output).
board_height_mmnumberPCB height in mm (default: 50.0).
board_width_mmnumberPCB width in mm (default: 70.0).

calculate_ipc7351_land_pattern

Calculate mathematically compliant surface mount land pattern geometry (pad width X, pad length Y, pad center distance C, and courtyard boundary bounds) based on IPC-7351B standards across Density Levels A (Most), B (Nominal), and C (Least).

ParameterTypeDescription
package *stringStandard footprint name (e.g. '0805', '0603', 'SOIC-8', 'QFN-32', 'TSSOP-14') or custom.
densitystringIPC-7351B Density Level: 'A' (Most/M), 'B' (Nominal/N, default), or 'C' (Least/L).
lead_contact_tnumberOptional component lead contact length/band (mm).
lead_pitchnumberOptional pin center-to-center pitch (mm) for multi-lead packages.
lead_typestringComponent lead style: 'chip', 'gullwing', 'no_lead' (QFN/DFN), or 'j_lead'.
lead_width_wnumberOptional component lead width (mm).
overall_length_lnumberOptional component overall tip-to-tip span (mm).

calculate_pcb_panel_rails

Calculate SMT automated assembly panel frame with breakaway process rails, conveyor clamp clearances, SMEMA tooling holes (NPTH Φ3.2mm), optical fiducials (Φ1.0mm/Φ3.0mm mask), and de-paneling features (V-Cut score lines or perforated mouse-bites) per IPC-2221B Section 8.4 and IPC-SMEMA-9851.

ParameterTypeDescription
board_height_mm *numberSingle PCB outline height (mm).
board_width_mm *numberSingle PCB outline width (mm).
board_spacing_mmnumberSpacing between individual boards in mm (default: 0 for V-cut, 2.0 for mouse-bites).
depaneling_methodstringDe-paneling method: 'v_cut' (default) or 'mouse_bites'.
grid_xintegerNumber of boards in X direction (default: 2).
grid_yintegerNumber of boards in Y direction (default: 2).
rail_sidesstringRail placement: 'left_right' (default), 'top_bottom', or 'all_four'.
rail_width_mmnumberConveyor clamping rail width in mm (default: 5.0, min: 3.0 per SMEMA).

calculate_ict_testpoints

Analyze PCB netlist testability, allocate automated bed-of-nails In-Circuit Test (ICT) testpoints (B.Cu Φ1.0mm), assign probe tip types (crown, spear, serrated), and verify fault coverage percentage per IPC-9252 & IPC-2221B.

ParameterTypeDescription
connections *arrayNetlist connections list (from synthesize_circuit output).
board_height_mmnumberPCB height in mm (default: 50.0).
board_width_mmnumberPCB width in mm (default: 70.0).
min_pad_diameter_mmnumberTestpad diameter in mm (default: 1.0).
min_probe_pitch_mmnumberMinimum probe center-to-center pitch in mm (default: 2.0).

calculate_bga_escape_routing

Calculate BGA diagonal dogbone via fanout geometry, escape channel trace widths and clearances, and minimum signal layer requirements per IPC-7095 Section 5.2.

ParameterTypeDescription
ball_count *integerTotal BGA ball count (e.g. 64, 100, 144, 256).
ball_pad_dia_mmnumberBGA solder ball pad diameter in mm (default: 0.4).
ball_pitch_mmnumberBGA ball center-to-center pitch in mm (default: 0.8).
trace_width_mmnumberEscape routing neck-down trace width in mm (default: 0.10).
via_drill_mmnumberFanout via drill diameter in mm (default: 0.2).
via_pad_dia_mmnumberFanout via pad outer diameter in mm (default: 0.45).

calculate_teardrop_reinforcement

Calculate tangent teardrop fillets for PCB vias, circular pads, and testpoints to prevent drill breakout, eliminate mechanical/thermal crack stress, and comply with IPC-2221B Section 9.1.5 and IPC-A-600J Class 3.

ParameterTypeDescription
vias *arrayList of via objects ({'x_mm', 'y_mm', 'pad_dia_mm', 'drill_dia_mm', 'trace_angle_deg'}).
default_trace_width_mmnumberDefault trace width in mm (default: 0.20).
teardrop_stylestringFillet geometry: 'curved' (default) or 'linear'.

calculate_copper_thieving_balance

Calculate layer copper density balance between top and bottom layers, assess reflow thermal bow/twist warpage risk (IPC-TM-650 2.4.22 <= 0.75%), and generate non-functional dummy copper thieving dot/grid patterns per IPC-2221B Section 10.1.1.

ParameterTypeDescription
board_height_mm *numberPCB height in mm (default: 50.0).
board_width_mm *numberPCB width in mm (default: 70.0).
bot_copper_area_mm2numberOptional bottom copper area in mm².
keepout_margin_mmnumberKeepout margin from board edge in mm (default: 2.0).
pattern_pitch_mmnumberThieving dot pitch in mm (default: 2.54).
top_copper_area_mm2numberOptional top copper area in mm².

calculate_via_stitching_array

Calculate thermal via matrix array under QFN/power exposed pads (IPC-7093 Section 7.2) or RF ground shielding fence via arrays (IPC-2141A <= lambda/10 pitch) with thermal resistance reduction metrics.

ParameterTypeDescription
center_x_mmnumberCenter X coordinate in mm (default: 0.0).
center_y_mmnumberCenter Y coordinate in mm (default: 0.0).
drill_dia_mmnumberVia drill diameter in mm (default: 0.30).
grid_pitch_mmnumberVia center-to-center pitch in mm (default: 1.20).
is_rf_shielding_fencebooleanWhether to generate dual-side ground shielding fence for RF microstrip (default: false).
pad_height_mmnumberExposed pad height in mm (default: 5.0).
pad_width_mmnumberExposed pad width in mm (default: 5.0).

calculate_serpentine_tuning_geometry

Calculate high-speed differential pair serpentine delay tuning meander geometry, ensuring self-coupling suppression (S >= 3W, H >= 3W) and generating vertex paths per IPC-2141A Section 5.3.

ParameterTypeDescription
delta_length_mm *numberTarget added delay length in mm (e.g. 3.5).
end_x_mmnumberEnd X coordinate in mm (default: 30.0).
end_y_mmnumberEnd Y coordinate in mm (default: 20.0).
start_x_mmnumberStart X coordinate in mm (default: 10.0).
start_y_mmnumberStart Y coordinate in mm (default: 20.0).
trace_width_mmnumberTrace width in mm (default: 0.15).

calculate_stencil_aperture_ratios

Evaluate SMT stencil aperture area ratio (>= 0.66 laser-cut) and aspect ratio (>= 1.5) compliance per IPC-7525 Stencil Design Guidelines, identifying paste-release-deficient apertures.

ParameterTypeDescription
apertures *arrayList of apertures ({ref, shape: 'rect'|'circle', width_mm, length_mm}).
foil_thickness_umnumberStencil foil thickness in μm (default: 100).
min_area_rationumberMinimum acceptable area ratio (default: 0.66).
min_aspect_rationumberMinimum acceptable aspect ratio (default: 1.5).

calculate_fiducial_layout

Generate asymmetric 3-point global optical fiducial layout (L-shape, 180° rotation unambiguous) and 2-point local fiducials for fine-pitch components per IPC-2221B Section 12 and JEDEC J-STD-020.

ParameterTypeDescription
board_height_mm *numberPCB height in mm.
board_width_mm *numberPCB width in mm.
edge_clearance_mmnumberFiducial center clearance from board edge in mm (default: 5.0).
fine_pitch_componentsarrayFine-pitch components ({ref, pitch_mm, x_mm, y_mm, half_diagonal_mm}).
fine_pitch_threshold_mmnumberComponent pitch below which local fiducials are required (default: 0.5).

calculate_via_protection_plan

Select IPC-4761 via protection types (Type I ~ VII) per via assembly context: Type VII filled-and-capped (VIPPO) mandatory for BGA via-in-pad, Type V fill for thermal pads, Type IV tent+plug for BGA channels, Type II tent for free vias.

ParameterTypeDescription
vias *arrayVia list ({id, in_pad, land_type: 'bga'|'thermal'|'signal', in_bga_pitch, vippo_filled}).

calculate_solder_paste_volume

Assess per-aperture deposited solder paste volume against target joint volume per IPC-7525A transfer analysis (accepted ratio window 1.0 ~ 2.5), flagging starved joints and excessive paste defects.

ParameterTypeDescription
apertures *arrayAperture list ({ref, shape: 'rect'|'circle', width_mm, length_mm}).
foil_thickness_umnumberStencil foil thickness in μm (default: 100).
target_standoff_mmnumberTarget solder standoff height in mm (default: 0.10).
transfer_efficiencynumberPaste transfer efficiency η (default: 0.90; nano-coated laser-cut foil).

export_ipc2581

Export a simplified IPC-2581B single-file intelligent fabrication data package (XML) — stackup, BOM, placed components, nets with pin membership, and board profile — replacing the legacy Gerber+Excellon+TXT handoff bundle accepted by Siemens X / Altium / Zuken / EMS houses.

ParameterTypeDescription
modules *objectComponent modules dict (from synthesize_circuit output).
board_height_mmnumberPCB height in mm (default: 50.0).
board_width_mmnumberPCB width in mm (default: 70.0).
connectionsarrayNetlist connections list.
project_namestringProject/organization name embedded in the XML (default: HARDWARE_PROJECT).
stackup_layersarrayOptional stackup layers ({name, class: 'CONDUCTOR'|'DIELECTRIC', thickness_um, material}).

export_assembly_drawing_svg

Generate a scaled PCBA assembly drawing SVG per ASME Y14.5 and IPC-2221B Section 11: body outlines with refDes labels, polarity marks (pin-1 dots, cathode bars, plus frames), mirrored bottom view, and an ASME Y14.100 title block with revision and check signature.

ParameterTypeDescription
modules *objectComponent modules dict (from synthesize_circuit output, with positions).
board_height_mmnumberPCB height in mm (default: 50.0).
board_width_mmnumberPCB width in mm (default: 70.0).
mirrored_bottombooleanRender bottom view mirrored in X (default: true).
revisionstringDrawing revision letter (default: A).
titlestringDrawing title (default: PCBA ASSEMBLY DRAWING).

diff_netlists

Engineering Change Order (ECO) netlist diff: compare two netlist revisions and report added/removed components, value/package changes, added/removed nets, pin membership moves, total change count, and ECO severity (NONE / MINOR / MAJOR) for PLM change management.

ParameterTypeDescription
new_connections *arrayRevision B connections list.
new_modules *objectRevision B component modules dict.
old_connections *arrayRevision A connections list.
old_modules *objectRevision A component modules dict.

generate_assembly_process_plan

Generate a mixed-assembly process route plan: classify each component into SMD reflow / THT wave / THT manual / mechanical stages per IPC-A-610G Section 7, output the 10-stage EMS routing (SPI -> reflow -> AOI -> THT insert -> wave -> manual -> ICT -> FCT -> coating -> packing).

ParameterTypeDescription
modules *objectComponent modules dict (from synthesize_circuit output).

optimize_panel_grid

Enumerate panel grid combinations (grid_x x grid_y, rail sides, V-cut vs mouse-bites), filter options exceeding the max panel size (default 300x300mm fab limit), and rank feasible layouts by material utilization percentage.

ParameterTypeDescription
board_height_mm *numberSingle board height in mm.
board_width_mm *numberSingle board width in mm.
max_gridintegerMaximum grid count per axis (default: 4).
max_panel_mmnumberMaximum panel dimension in mm (default: 300.0).
rail_width_mmnumberConveyor rail width in mm (default: 5.0).

calculate_fab_cost

Estimate PCB fabrication cost from fab-house published tiered pricing: layers (2/4/6), quantity tiers (5/10/30/100), area surcharge beyond 100x100mm, solder mask color, surface finish (HASL/ENIG/OSP), board thickness, and lead time (normal/48h/24h). Estimate only.

ParameterTypeDescription
board_height_mmnumberBoard height in mm (default 100).
board_width_mmnumberBoard width in mm (default 100).
layersintegerLayer count (2, 4, or 6; default 4).
lead_timestringLead time: normal (x1.0), fast_48h (x1.5), urgent_24h (x2.5).
quantityintegerBoard quantity (default 5).
solder_mask_colorstringSolder mask color: green (free), red/yellow/blue (+25), black/white (+40), matte (+60).
surface_finishstringSurface finish: hasl_lead (free), hasl_lead_free (+15), enig (+80), osp (free), silver (+45).
thickness_mmstringBoard thickness in mm: 0.6/0.8/1.0/1.2/1.6 (default)/2.0.

calculate_smt_placement_clearance

Analyze SMT pick-and-place nozzle collision clearance between tall (H >= 4.0mm) and low components, evaluate nozzle keepout envelopes (min 2.0mm horizontal gap), and generate layered placement priority sequences (lowest to tallest) per IPC-SM-782 and OpenPnP guidelines.

ParameterTypeDescription
modules *objectComponent modules dict (from synthesize_circuit output, with positions).
board_height_mmnumberBoard height in mm (default: 50.0).
board_width_mmnumberBoard width in mm (default: 70.0).
min_clearance_envelope_mmnumberMinimum required horizontal clearance between tall and low components (default: 2.0).
min_tall_component_height_mmnumberThreshold height for tall components in mm (default: 4.0).

calculate_creepage_isolation_slot

Evaluate high-voltage electrical creepage compliance per IPC-2221B Table 6-1 and IEC 62368-1, and plan an air isolation milled slot (slot width, length, endpoints, and expanded effective creepage path) between high-voltage and low-voltage conductors when surface distance is insufficient.

ParameterTypeDescription
cond1_coords *arrayCoordinates [x, y] of first conductor.
cond2_coords *arrayCoordinates [x, y] of second conductor.
voltage_v *numberOperating voltage difference between conductors (e.g. 220.0).
conductor_radius_mmnumberConductor/pad radius in mm (default: 1.0).
is_reinforced_insulationbooleanWhether reinforced insulation (2x clearance) is required per IEC 62368-1 (default: false).
slot_extension_mmnumberSlot extension past conductor edges in mm (default: 2.0).
slot_width_mmnumberWidth of milled isolation slot in mm (default: 1.2).

analyze_impedance_tolerance

Analyze PCB characteristic impedance manufacturing tolerance window and sensitivities per IPC-2141A and Polar SI9000 models: evaluates dielectric height (+-10%), trace width (+-10%), copper thickness (+-15%), and Er (+-5%) cumulative variations, calculating Zmin, Zmax, dZ/dW, dZ/dH, and yield within +-10% target.

ParameterTypeDescription
copper_thickness_mmnumberNominal copper thickness in mm (default: 0.035 for 1oz).
dielectric_ernumberSubstrate dielectric constant (default: 4.2 for FR-4).
dielectric_height_mmnumberNominal dielectric height in mm (default: 0.20).
height_tolerance_pctnumberDielectric height tolerance percentage (default: 10.0).
target_z0_ohmsnumberTarget characteristic impedance (default: 50.0).
trace_width_mmnumberNominal trace width in mm (default: 0.38).
width_tolerance_pctnumberTrace width tolerance percentage (default: 10.0).

evaluate_material_cti_creepage

Evaluate substrate Comparative Tracking Index (CTI) Material Group (Group I >= 600V to Group IIIb) and required safety creepage under Pollution Degrees 1/2/3 and Basic/Reinforced insulation per IEC 62368-1 Table 25 and IPC-2221B, calculating safety margins and recommending high-CTI laminates.

ParameterTypeDescription
actual_clearance_mmnumberActual physical conductor spacing in mm (default: 2.0).
insulation_typestringInsulation classification: 'Basic' (default) or 'Reinforced'.
pollution_degreeintegerPollution degree 1, 2, or 3 (default: 2).
substrate_cti_vnumberSubstrate CTI rating in Volts (default: 175.0 for standard FR-4; 600.0 for Group I).
working_voltage_vnumberOperating rms/DC voltage (default: 220.0).

calculate_wave_solder_orientation_audit

Audit bottom-side SMD component wave soldering orientation angles and hydrodynamic shadowing per IPC-7351B and SMTA guidelines: chip passives (0603/0805) perpendicular to flow to prevent tombstoning, SOIC ICs parallel to flow to prevent solder bridging, and 3xH shadow keepout zones behind tall components.

ParameterTypeDescription
modules *objectComponent modules dict (with rotation_deg, position, and package).
flow_directionstringConveyor wave flow direction: 'X+' (default), 'X-', 'Y+', or 'Y-'.

calculate_press_fit_hole_compliance

Evaluate automotive and industrial solderless press-fit compliant pin (eye-of-the-needle) finished hole diameter tolerances (standard 0.94mm ~ 1.09mm) and copper barrel plating thickness (>= 25μm) per IPC-9797 and IEC 60352-5, estimating insertion and retention forces to prevent inner-layer tear or vibration disconnects.

ParameterTypeDescription
pins *arrayList of press-fit pin dicts ({pin_id, connector_ref, drill_dia_mm, copper_thickness_um, finished_dia_mm}).
min_copper_plating_umnumberMinimum barrel copper plating thickness in μm (default: 25.0).
nominal_finished_dia_mmnumberNominal compliant pin hole diameter in mm (default: 1.00).

audit_fab_capabilities

Audit PCB layout physical design rules against real-world fab house capabilities (JLCPCB standard/advanced, PCBWay, OSH Park): verifies min trace width, min clearance, min via drill, annular ring, aspect ratio, and slot width against published fab process limits to prevent CAM engineering query (EQ) rejections.

ParameterTypeDescription
board_thickness_mmnumberNominal PCB thickness in mm (default: 1.600).
fab_idstringFab house identifier: 'jlcpcb_standard' (default), 'jlcpcb_advanced', 'pcbway_standard', 'oshpark_standard'.
min_slot_width_mmnumberSmallest mechanical milled slot width in mm (default: 0.800).
min_trace_clearance_mmnumberSmallest conductor-to-conductor gap in mm (default: 0.127).
min_trace_width_mmnumberSmallest conductor trace width in mm (default: 0.127).
min_via_drill_mmnumberSmallest via drill diameter in mm (default: 0.200).
min_via_pad_mmnumberSmallest via outer pad diameter in mm (default: 0.450).

gate_production_readiness

One-call industrial release gate: synthesizes from a prompt, places, autoroutes, exports the full 9-layer fab bundle (copper, mask, silk, stencil, drill, BOM, CPL), then runs the manufacturing validator including solder-mask dam width. Returns a single production_ready verdict plus the blocking defects, so a CI job or a contract manufacturer can decide go/no-go without reading five separate reports.

ParameterTypeDescription
prompt *stringNatural-language circuit description, e.g. 'ESP32-C3 sensor node with USB-C'.
board_height_mmnumber
board_width_mmnumber
job_namestring

validate_manufacturing_package

Headless manufacturing package validator for automated CI/CD and developer hand-off: checks completeness and non-emptiness of 5-layer Gerbers, Excellon drill, BOM, and CPL, verifies component refDes consistency, and calculates SHA-256 cryptographic tamper-proof ledger.

ParameterTypeDescription
artifacts_dict *objectDict mapping filename (e.g. 'board-Edge_Cuts.gm1', 'bom.csv') to content string or bytes.
job_namestringProject job name for manifest header (default: PCB_PROJECT).
modulesobjectOptional component modules dict from synthesis for BOM cross-verification.

audit_ipc6012_class_compliance

Audit PCB physical and metallurgical design parameters against IPC-6012E and IPC-A-600J Class 1/2/3 acceptance criteria: evaluates external/internal annular rings, zero-breakout constraints for Class 3, PTH copper barrel plating thickness (avg >= 25μm for Class 3), etch conductor width reduction, and solder mask dam widths.

ParameterTypeDescription
avg_copper_barrel_umnumberAverage electroplated copper thickness in PTH barrels in μm (default: 22.0).
breakout_angle_degnumberObserved breakout angle in degrees (default: 0.0).
conductor_width_reduction_pctnumberConductor width reduction percentage from etch defects (default: 5.0).
external_annular_ring_mmnumberSmallest external annular ring width in mm (default: 0.125).
has_hole_breakoutbooleanWhether drill hole breakout from annular ring is observed (strictly 0° allowed in Class 3).
internal_annular_ring_mmnumberSmallest internal annular ring width in mm (default: 0.100).
min_copper_barrel_umnumberMinimum thin-point PTH copper plating thickness in μm (default: 19.0).
min_solder_mask_dam_mmnumberSmallest solder mask dam width between adjacent exposed pads in mm (default: 0.090).
target_classstringTarget IPC reliability class: 'Class 1', 'Class 2' (default), or 'Class 3'.

optimize_smt_feeder_setup

Optimize SMT pick-and-place feeder trolley allocation (Panasonic NPM / Fuji NXT / ASM SIPLACE standard 80-slot cart): applies Group Technology (GT) to pin permanent common passive reels (100nF, 10k), places high-frequency reels near the gantry center to minimize travel time, and forecasts reel run-out exhaustion points per batch size per IPC-9851.

ParameterTypeDescription
modules *objectComponent modules dict (e.g. from synthesis or netlist).
batch_sizeintegerProduction batch size in boards (default: 1000).
common_parts_listarrayOptional list of common component identifiers to pin into the permanent feeder block.
feeder_cart_capacityintegerTotal feeder slots on trolley cart (default: 80).

calculate_copper_pour_current_drop

Calculate DC IR-drop, Joule heating dissipation, and localized bottleneck current density in polygon copper pours and power busbars per IPC-2152 Section 5.0 and IEC 60092-352, verifying current density <= 35.0 A/mm² to prevent copper foil delamination or blistering under heavy loads.

ParameterTypeDescription
current_a *numberContinuous DC load current in Amperes.
ambient_temp_cnumberAmbient operating temperature in °C (default: 25.0).
bottleneck_width_mmnumberNarrowest constriction neck width (e.g. around cutouts or anti-pads) in mm.
copper_weight_oznumberFinished copper foil weight in oz (default: 1.0).
effective_length_mmnumberConduction path length from source to load in mm (default: 50.0).
effective_width_mmnumberAverage conduction width of the copper pour in mm (default: 20.0).
max_allowed_current_density_a_per_mm2numberMaximum safe current density ceiling in A/mm² (default: 35.0).
max_allowed_temp_rise_cnumberAllowable conductor temperature rise ΔT in °C (default: 30.0).

audit_component_msl_floor_life

Audit SMD plastic packages (BGA, QFN, CSP, TQFP) for moisture sensitivity level (MSL 1 to 6) and open-bag shop floor life per JEDEC J-STD-033D and IPC-M-109, flagging expired components and generating recommended dehumidification baking schedules (e.g. 125°C for 24h or 40°C for 192h) to prevent 260°C reflow popcorning defects.

ParameterTypeDescription
modules *objectComponent modules dict with refDes, package, and optional msl_level or exposed_hours.
ambient_rh_pctnumberWorkshop ambient relative humidity percentage (default: 55.0).
ambient_temp_cnumberWorkshop ambient temperature in °C (default: 25.0).
exposed_hours_defaultnumberDefault shop floor exposure hours since unsealing moisture barrier bag (default: 48.0).

calculate_effective_capacitance

Effective capacitance of a Class II MLCC at real operating conditions — the marked value is not the value in circuit. Multiplies the four loss mechanisms that compound: DC bias (the dominant one, typically 35-65% loss at rated voltage and worse in small cases), AC signal level, temperature coefficient, and logarithmic dielectric ageing, then applies the part tolerance. Returns the full factor stack so you can see which mechanism hurt most. Class I (C0G/NP0) parts correctly short-circuit to tolerance-only. Pass measured_retention_at_bias from a datasheet curve (Murata SimSurfing, TDK SEAT) to…

ParameterTypeDescription
applied_v *numberDC bias actually across the part in this circuit, in volts.
marked_capacitance_uf *numberThe capacitance printed on the reel, in µF.
rated_v *numberThe part's rated DC voltage.
ac_levelstringSignal magnitude class: small_signal (<50 mVrms), moderate (50-500 mVrms), or large (>500 mVrms). Small signals see less capacitance.
ambient_cnumberOperating ambient temperature in °C.
case_sizestringEIA case code: 0402, 0603, 0805, 1206 or 1210. Larger cases retain more capacitance under bias.
dielectricstringEIA Class II dielectric: X5R, X7R, X8R, Y5V, Z5U, or Class I C0G/NP0.
hours_in_servicenumberExpected service life in hours, used for the log-time ageing term.
measured_retention_at_biasnumberRetention fraction (0-1] read from the real datasheet DC-bias curve at applied_v. Replaces the band estimate.
tolerance_pctnumberThe part's capacitance tolerance in percent (e.g. 10 for ±10%). Applied at the pessimistic end.

size_hold_up_capacitor

Size an MLCC reservoir bank for a brown-out ride-through window in EFFECTIVE farads, then report the marked value you must actually buy. Solves C = I·t/ΔV for the required effective capacitance and divides by the retention at the worst-case bias in the window, because sizing from the marked value is how a design that 'passes' delivers 0.85 ms of hold-up when the spec asked for 20 ms. Reports the achieved hold time, the shortfall, and the required marked capacitance.

ParameterTypeDescription
load_current_ma *numberLoad current drawn from the reservoir during the outage, in mA.
required_hold_time_ms *numberRequired ride-through duration in milliseconds.
v_floor *numberMinimum voltage the load tolerates (brown-out floor), in volts.
v_start *numberRail voltage at the moment the source collapses, AFTER any ORing diode drop — not the nominal input.
ambient_cnumberOperating ambient in °C.
case_sizestringEIA case code (0402/0603/0805/1206/1210).
dielectricstringEIA dielectric: X5R, X7R, X8R, C0G/NP0.
hours_in_servicenumberExpected service life in hours.
rated_vnumberCapacitor rated voltage. Defaults to 2x v_start to keep bias derating near 50%.
tolerance_pctnumberCapacitance tolerance in percent.

analyze_rc_filter_effective

RC filter cutoff computed from the capacitance the part actually has, not the marked value. A 1 kHz filter built with a 10 µF X5R part that delivers 4 µF under bias cuts at 2.5 kHz — the nominal calculation is not wrong, it answers a different question. Returns nominal vs actual cutoff, the drift percentage, and the retention that caused it.

ParameterTypeDescription
applied_v *numberDC bias across the capacitor, in volts.
marked_c_uf *numberMarked capacitance in µF.
r_ohm *numberSeries resistance in ohms.
rated_v *numberCapacitor rated DC voltage.
ambient_cnumberOperating ambient in °C.
case_sizestringEIA case code.
dielectricstringEIA dielectric.
hours_in_servicenumberExpected service life in hours.

analyze_divider_tolerance

Tolerance band of a resistor divider — nominal is not a specification. Reports BOTH the exact worst case (corner enumeration, valid because the transfer function is monotonic in each resistor) and the realistic statistical band (first-order sensitivity propagation, NOT naive RSS of percentage tolerances — the output is a quotient of random variables, so RSS-ing the percentages directly is invalid; TI SNVA112 states this explicitly). Includes TCR, sqrt-of-time life drift, supply tolerance, and matched-pair ratio tolerance, and names which resistor dominates the error budget so you fix the r…

ParameterTypeDescription
r1_ohm *numberHigh-side resistor (input to midpoint), in ohms.
r2_ohm *numberLow-side resistor (midpoint to ground), in ohms.
v_in *numberInput voltage to the divider, in volts.
delta_temp_cnumberTemperature excursion from 25 °C that the design must hold accuracy over.
life_drift_pctnumberLife drift percent over the datasheet's stated hours. Scales with sqrt of the time ratio.
ratio_tolerance_pctnumberRatio tolerance for a matched pair in one package. Replaces both absolute tolerances — the biggest free accuracy win.
tcr_ppm_per_cnumberTemperature coefficient in ppm/°C. Thick film is ~200, thin film ~25, metal foil ~2.
tolerance_pctnumberResistor value tolerance in percent at 25 °C.
v_in_tolerance_pctnumberSupply tolerance in percent, treated as an independent contribution.

analyze_resistor_error_budget

End-of-life resistance band for one resistor from the four-term error model: value tolerance, temperature coefficient, life drift, and (for matched networks) ratio tolerance. Reports both the RSS band and the linear worst-case band, and names the dominant term — because buying a ±0.1% thick-film part to fix an accuracy problem does nothing when its 200 ppm/°C TCR already contributes 1.2% over a 60 °C excursion. Life drift scales with sqrt of the time ratio (random walk, not a ramp).

ParameterTypeDescription
nominal_ohm *numberMarked resistance in ohms.
delta_temp_cnumberTemperature excursion from 25 °C.
life_drift_pctnumberLife drift percent over life_hours_specified.
life_hours_requirednumberThe service life the design must meet.
life_hours_specifiednumberThe hours the datasheet's life figure refers to.
tcr_ppm_per_cnumberTemperature coefficient in ppm/°C.
tolerance_pctnumberValue tolerance in percent.

solve_feedback_divider

Exact R1/R2 feedback divider pair for a regulator or comparator target, plus the static error the E96 snap adds. The ideal pair almost never exists in E96, and that snap error is a wrongness, not a tolerance: it is identical on every board and must be budgeted separately from the tolerance band.

ParameterTypeDescription
v_out *numberTarget output voltage.
v_ref *numberReference voltage at the feedback midpoint.
r_total_ohmnumberTotal divider resistance R1+R2, which sets the quiescent current.

calculate_high_speed_skin_depth_loss

Calculate high-frequency skin effect depth, Hammerstad surface roughness correction factor (Ksr), and conductor attenuation per IPC-4562B and IPC-2141A for 1GHz to 50GHz signals (PCIe 5.0/6.0, USB4, 112G PAM4), recommending standard ED, VLP, or HVLP/RTF copper foil profiles to recover high-speed signal integrity eye margins.

ParameterTypeDescription
custom_rq_umnumberOptional custom RMS roughness Rq in μm.
dielectric_ernumberSubstrate relative dielectric constant Er (default: 4.2).
foil_typestringCopper profile: 'standard_ed', 'vlp' (default), or 'hvlp'.
frequency_ghznumberSignal frequency in GHz (default: 10.0).
max_acceptable_ksrnumberMaximum allowable roughness penalty factor (default: 1.85).
trace_thickness_mmnumberCopper foil thickness in mm (default: 0.035 for 1oz).
trace_width_mmnumberConductor trace width in mm (default: 0.150).

calculate_bare_board_test_parameters

Plan IPC-9252B bare-board electrical test recipes (flying probe or bed-of-nails universal grid): establishes continuity thresholds (signal <= 10Ω, power <= 2Ω) and isolation test voltages (Class 1: 50V, Class 2: 100V, Class 3: 250V), automatically derating test voltages to 100V on fine-pitch (<0.100mm) or sensitive RF nets to prevent dielectric breakdown arc-over damage.

ParameterTypeDescription
has_sensitive_rf_netsbooleanWhether board contains sensitive RF/microwave nets (default: False).
min_trace_clearance_mmnumberMinimum conductor clearance on board in mm (default: 0.127).
netsarrayOptional list of net dicts ({name, min_clearance_mm, is_power, is_sensitive}).
target_classstringIPC reliability class: 'Class 1', 'Class 2' (default), or 'Class 3'.
tester_typestringTest equipment: 'flying_probe' (default) or 'universal_grid'.

run_pcb_drc

Execute rigorous physical Design Rule Check (DRC) on a routed PCB and return a scored violation report. Verifies what the router cannot: true copper-to-copper clearance between different nets (segment-to-segment geometry, not grid cells), acid traps and sub-90-degree etching crevices (IPC-2221B 10.1.2), trace width vs process capability, board-edge and mounting-hole keepout intrusion, RF antenna keepout, and high-speed differential pair skew (IPC-2141A 3.4). Returns severity-tagged violations with measured vs required values plus a 0-100 score; `passed` is false when any blocking error remains…

ParameterTypeDescription
modules *objectComponent modules dict (from synthesize_circuit output).
netlist *objectNetlist dict with 'connections' (from synthesize_circuit output).
board_height_mmnumberPCB height in mm (default: 50.0).
board_width_mmnumberPCB width in mm (default: 70.0).
check_acid_trapsbooleanWhether to check acute-angle etching traps and 90-degree high-speed corners (default: true).
edge_clearance_mmnumberMinimum copper-to-board-edge setback in mm (default: 0.800).
max_diff_skew_mmnumberMaximum allowed USB differential pair length mismatch in mm (default: 1.250).
min_clearance_mmnumberMinimum copper-to-copper clearance in mm (default: 0.100 / 4mil).
min_trace_width_mmnumberMinimum manufacturable trace width in mm (default: 0.127 / 5mil).
ses_textstringSpecctra SES session text to check. When omitted the board is routed first with the default exact engine, so the report describes what would actually be fabricated.

analyze_ionic_contamination

Post-clean ionic contamination (ROSE) and ion chromatography compliance analyzer per IPC-CH-65 and IPC-TM-650 2.3.25/2.3.28: compares NaCl-equivalent loading against class limits (1.56 μg/cm² standard, 1.20 Class 3), flags per-species halide carryover (chloride 0.70, bromide 0.54 μg/cm²), and scores dendrite/CAF risk from bias voltage and conductor pitch.

ParameterTypeDescription
rose_measured_ug_cm2 *numberMeasured NaCl-equivalent loading from the ROSE tester in μg/cm².
bias_voltage_vnumberLargest sustained DC bias between adjacent conductors (default: 5.0).
board_area_cm2numberTotal extracted board area in cm² (default: 100.0).
min_conductor_gap_mmnumberSmallest biased conductor spacing in mm (default: 0.20).
species_ug_cm2objectOptional ion chromatography per-species results in μg/cm² (chloride, bromide, fluoride, nitrate, sulfate, weak_organic_acid).
target_classstringIPC reliability class: 'Class 1', 'Class 2' (default), or 'Class 3'.

analyze_enig_plating

ENIG/ENEPIG plating thickness and black-pad (interfacial nickel corrosion) risk auditor per IPC-4552A and IPC-4556: verifies gold 0.05~0.20 μm, nickel 3.0~6.0 μm, phosphorus 7~10 wt%, and ENEPIG palladium 0.10~0.30 μm windows; scores galvanic black-pad susceptibility from phosphorus content, gold over-deposition, rework cycles, and process type, and flags gold >0.25 μm solder embrittlement.

ParameterTypeDescription
finish_typestringSurface finish: 'enig' (default) or 'enepig'.
gold_thickness_umnumberXRF immersion-gold thickness in μm (default: 0.08).
nickel_thickness_umnumberXRF electroless-nickel thickness in μm (default: 4.0).
palladium_thickness_umnumberENEPIG palladium barrier thickness in μm (optional).
phosphorus_wt_pctnumberNickel deposit phosphorus content in wt% (default: 8.5).
rework_cyclesintegerNumber of prior soldering/rework thermal excursions (default: 0).
soldering_processstringAssembly process: 'reflow' (default), 'wave', or 'hand'.

estimate_solder_joint_thermal_fatigue

IPC-9701A / IPC-D-279 Engelmaier thermal cycling fatigue life estimator for critical SMT attachments: computes CTE-mismatch shear strain range over the component DNP, applies the creep-aware cycle exponent (hot dwell and mean joint temperature), and reports cycles-to-63.2%-failure against the service requirement across TC1-TC4 automotive/aerospace profiles.

ParameterTypeDescription
compliance_factor_fnumberJoint compliance factor (0.5 typical, 1.0 stiff; default: 0.5).
componentstringRef/designation of the worst-case component (default: U1_BGA256).
conditionstringIPC-9701 profile: 'TC1' 0-100, 'TC2' -25-125, 'TC3' -40-125 (default), 'TC4' -55-125 °C.
dnp_mmnumberDistance from board neutral point to farthest joint in mm (default: 15.0).
hot_dwell_minnumberHot dwell time per cycle in minutes (default: 10.0).
joint_height_mmnumberSolder joint standoff height in mm; BGA ~0.10-0.45, QFN ~0.05 (default: 0.10).
package_cte_ppmnumberPackage substrate/leadframe CTE in ppm/K (default: 14.0 BT BGA).
pcb_cte_ppmnumberPCB in-plane CTE in ppm/K (default: 15.0 FR-4).
required_cyclesnumberService cycles the attachment must survive (default: 3000).
temp_max_cnumberExplicit cycle maximum °C (overrides condition).
temp_min_cnumberExplicit cycle minimum °C (overrides condition).

plan_conformal_coating

IPC-CC-830C / IPC-A-610G §10 conformal coating material selector and masking keepout planner: validates dry-film thickness against the type windows (AR/ER/UR 30-130, SR 50-210, XY 10-50 μm), flags reworkability conflicts for field-repairable products, and enumerates connector/test-point/switch masking keepouts from the BOM before the selective-coating program is generated.

ParameterTypeDescription
coating_typestringIPC-CC-830 type: 'AR' acrylic (default), 'ER' epoxy, 'UR' urethane, 'SR' silicone, or 'XY' parylene.
measured_thickness_umnumberWitness-coupon measured dry-film thickness in μm (default: 75.0).
modulesobjectOptional BOM modules dict — contact-bearing parts become masking keepouts.
requires_field_reworkbooleanWhether the product must be repairable in service (default: False).

predict_assembly_mtbf

Telcordia SR-332 / MIL-HDBK-217F part-stress MTBF prediction: classifies the BOM into Telcordia part classes, applies Arrhenius πT at worst-case ambient, quality πQ (level 1-3), and environment πE (ground benign 1.0 to airborne 12.0), returns total FIT, MTBF hours/years, 5-year survival probability, and the top-5 dominant failure-rate contributors.

ParameterTypeDescription
ambient_temp_cnumberWorst-case operating ambient in °C (default: 40.0).
duty_cycle_deratenumberOperating duty fraction 0-1 applied to total λ (default: 1.0).
environmentstring'ground_benign' | 'ground_fixed' (default) | 'ground_mobile' | 'airborne'.
modulesobjectBOM modules dict — parts are auto-classified by kind/value.
part_countsobjectExplicit {part_class: quantity} mapping (Telcordia classes).
quality_levelintegerTelcordia qualification level 1 (screened 0.8×) / 2 (standard, default) / 3 (uncertified 2.0×).

assess_drop_shock_reliability

JEDEC JESD22-B111 board-level drop shock assessor (1500 G / 0.5 ms half-sine, 30 drops): computes per-component inertial joint loads (F=ma), flags heavy components in board-corner high-strain flexure zones, estimates board natural frequency (border-ring stiffener aware), and prescribes underfill / center-migration / boss-fastening mitigations.

ParameterTypeDescription
board_height_mmnumberPCB height in mm (default: 50.0).
board_mass_gnumberTotal assembled board mass in g (default: 60.0).
board_width_mmnumberPCB width in mm (default: 80.0).
componentsarray[{ref, mass_g, x_mm, y_mm, joint_count}] coordinates relative to board center.
has_border_ring_stiffenerbooleanTrue when a mid-frame/border ring anchors the board edge (default: False).
test_gnumberPeak shock level in G (default: 1500 per JESD22-B111).

solve_via_current_array

IPC-2152 / IPC-2221 via barrel current capacity and stitching-array solver: computes the annular barrel cross-section from drill and plating, applies the thermal formula with internal/external k constants, 40% array current-sharing derate, and IPC-4761 Type VII fill+cap credit, returning the minimum parallel via count for a rail current.

ParameterTypeDescription
current_anumberRail current to carry in A (default: 3.0).
internal_layerbooleanTransition between internal layers k=0.024 (default: False).
is_filledbooleanIPC-4761 Type VII fill+cap via (default: False).
max_array_sizeintegerStitching ceiling before recommending wider traces (default: 8).
max_delta_t_cnumberAllowable barrel temperature rise °C (default: 20.0).
plating_umnumberCopper plating thickness in μm (default: 25.0).
via_drill_mmnumberFinished drill diameter in mm (default: 0.30).

budget_fab_order

JLCPCB / PCBWay headless order cost budget and submission manifest builder: offline math over public price ladders (layers, quantity, area, finish, SMT, shipping, lead priority), cross-vendor recommendation, and a SHA-256 tamper-evident manifest over the manufacturing artifacts for CI order staging — no network, no keys, stdlib-only (macOS laptop or Docker CI runner).

ParameterTypeDescription
artifactsobjectManufacturing artifacts {filename: content} for the SHA-256 submission manifest.
board_h_mmnumberOutline height mm (default: 50.0).
board_w_mmnumberOutline width mm (default: 70.0).
include_smtbooleanRequest PCBA assembly (default: False).
layersinteger2 / 4 / 6 layers (default: 2).
lead_prioritystring'economy' | 'standard' (default) | 'expedite'.
qtyintegerPanel quantity: 5/10/30/100 ladder (default: 5).
shippingstring'standard' (default) | 'dhl'.
smt_partsintegerNumber of SMT placements (default: 0).
surface_finishstring'hasl_lead_free' (default) | 'enig' | 'osp'.

calculate_qfn_thermal_pad_stencil

IPC-7093A / IPC-7525A QFN and BTC thermal slug window-pane stencil aperture solver: converts solid 100% paste openings into an optimized matrix grid (50%~70% paste coverage, default 60%) separated by 0.15~0.25mm bare copper web outgassing channels, preventing solder voiding (>35%), die floating, and perimeter bridging.

ParameterTypeDescription
has_unfilled_thermal_viasbooleanWhether open unfilled vias exist in the pad (default: False).
is_automotive_class3booleanWhether strict Class 3 / automotive voiding limit <=15% applies (default: False).
pad_height_mmnumberThermal slug height in mm (default: 4.5).
pad_width_mmnumberThermal slug width in mm (default: 4.5).
target_coverage_pctnumberTarget paste coverage percentage 50~70% (default: 60.0).
web_width_mmnumberOutgassing web channel width in mm (default: 0.20).

audit_smt_tombstone_risk

IPC-A-610G §8.3.2.9 / IPC-SM-782 SMT chip passive component thermal relief & tombstoning (Manhattan effect) risk auditor: checks thermal connection width symmetry between opposite pads on 0201/0402/0603/0805 passives, flagging direct solid plane connections without thermal relief spokes that create unbalanced wetting torque.

ParameterTypeDescription
componentsarrayList of passive component dicts ({ref, package, pad1_type, pad2_type, pad1_width_mm, pad2_width_mm}).
default_trace_width_mmnumberNominal signal trace width in mm (default: 0.20).

calculate_castellated_pad_geometry

IPC-A-600J §2.9 / IPC-6012E §3.6.3 castellated hole (edge plating half-hole) manufacturability solver: verifies minimum finished hole diameter (>=0.80mm), centerline routing cut offset (|delta| <= 0.05mm), minimum inward pad extension (>=0.50mm), pitch (>=1.27mm), and barrel copper plating thickness (>=20μm) to prevent copper barrel tearout and burrs during daughterboard depaneling.

ParameterTypeDescription
center_to_edge_offset_mmnumberCutter path offset from hole center in mm (default: 0.00).
copper_plating_thickness_umnumberBarrel copper plating thickness in μm (default: 25.0).
hole_drill_diameter_mmnumberFinished drill diameter in mm (default: 1.00).
pad_inward_length_mmnumberInward annular pad extension from board edge in mm (default: 0.80).
pad_pitch_mmnumberCenter-to-center pitch between adjacent holes in mm (default: 2.00).
pad_width_mmnumberPad width along board perimeter in mm (default: 0.80).
solder_mask_clearance_mmnumberSolder mask relief opening margin in mm (default: 0.080).

calculate_pcb_bow_and_twist

IPC-TM-650 2.4.22 / IPC-6012E §3.4.4 PCB bow and twist (warpage & flatness) analyzer: evaluates residual bimetallic thermal curvature driven by dielectric stackup core/prepreg asymmetry and copper density gradients, enforcing strict <=0.75% limit for SMT assemblies to prevent BGA Head-in-Pillow (HiP) open defects and tombstoning.

ParameterTypeDescription
board_length_mmnumberBoard longest edge in mm (default: 100.0).
board_thickness_mmnumberTotal PCB thickness in mm (default: 1.60).
board_width_mmnumberBoard shortest edge in mm (default: 80.0).
copper_balance_ratio_top_bottomnumberTop-to-bottom copper volume ratio (default: 1.0).
dielectric_asymmetry_pctnumberDielectric core/prepreg thickness asymmetry % (default: 0.0).
has_smt_componentsbooleanWhether assembly contains SMT parts <=0.75% (default: True).
layer_countintegerTotal layer count (default: 4).
measured_bow_height_mmnumberOptional measured dial-gauge bow deflection in mm.
measured_twist_height_mmnumberOptional measured corner lift in mm.

audit_smt_nozzle_selection

EIA-481 & Juki/Yamaha/Fuji/Panasonic SMT pick-and-place nozzle selector & vacuum audit: verifies nozzle outer diameter (OD) clearances against tape pocket walls and component margins, inner diameter (ID) vacuum seal against leakage, and dynamic inertial hold safety factor (SF >= 1.5) under 3G~5G head acceleration to eliminate pick failure and fly-off.

ParameterTypeDescription
component_designatorstringComponent designator (default: 'U1').
component_height_mmnumberComponent height in mm.
component_length_mmnumberComponent length in mm.
component_mass_mgnumberComponent mass in milligrams.
component_width_mmnumberComponent width in mm.
friction_coefficientnumberSurface friction coefficient (default: 0.30).
head_acceleration_gnumberHead acceleration in G (default: 3.5).
package_typestringPackage designation (e.g. '0402', '0603', 'SOT-23', 'QFN-32').
specified_nozzle_modelstringOptional explicit nozzle model (e.g. 'Juki-502', 'Yamaha-302A').
vacuum_pressure_kpanumberFactory vacuum pressure in kPa (default: 70.0).
vendor_preferencestringVendor preference ('Juki', 'Yamaha', 'Fuji').

calculate_trace_fusing_current

IPC-2152 §5.3 & Onderdonk equation short-time transient conductor fusing current and burnout solver: computes adiabatic fusing current, time-to-melt, FR-4 resin delamination/blister threshold, and Joule action integral (I²t) for internal/external traces, verifying upstream fuse/PTC protection coordination margin (>=2.0x) against electrical fire.

ParameterTypeDescription
ambient_temp_cnumberInitial ambient temperature in °C (default: 25.0).
copper_thickness_umnumberCopper thickness in μm (default: 35.0 for 1oz).
fault_current_anumberEstimated short-circuit fault current in Amperes (default: 15.0).
pulse_duration_snumberFault pulse duration in seconds (default: 0.10).
trace_layerstringLayer type ('external' or 'internal') (default: 'external').
trace_width_mmnumberTrace width in mm (default: 0.50).
upstream_fuse_i2t_a2snumberOptional upstream fuse rated melting I²t in A²s.
upstream_fuse_rating_anumberOptional upstream fuse rated current in Amperes.