pcb_get_fab_stats
Computes PCB fabrication statistics—board size, layers, vias, pads, minimum annular ring and track width, and hole sizes—so you can catch process-minimum issues before sending Gerbers to a fab.
Instructions
DFM (Design For Manufacturing) summary -- the numbers fab houses ask for on their quote forms.
One IPC call returns:
board_width_mm,board_height_mm,board_area_mm2num_copper_layersvias_total,vias_through,vias_blind,vias_buriedpads_plated,pads_unplated,pads_slottedmin_annular_ring_mils-- across all plated holes (vias + plated pads). Most fabs need ≥ 4 mil for the standard process; sub-4-mil bumps to HDI.min_track_width_mils-- minimum across all copper layers. Standard fabs offer 4-5 mil; sub-3 mil is HDI.smallest_hole_mils,largest_hole_mils,distinct_hole_count-- the drill bit story. Fab houses charge per distinct drill diameter; collapsing from 7 distinct sizes to 4 can shave noticeable cost.
Useful before sending gerbers to the fab: the agent can spot
sub-process-minimum values and warn the user. Aspect-ratio
check (depth / drill) is NOT included here because it
requires layer-stack walking; if you need it, fetch
pcb_get_layer_stackup separately.
Returns:
Dict with all keys above. All linear measurements use the
stated unit suffix (_mm vs _mils).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||