Audit PCB DFM Fabrication Rules
audit_pcb_dfm_rulesAudit routed traces and arcs in a .kicad_pcb or .dsn board against commercial fab minimum trace width limits (JLCPCB, PCBWay, Sierra). Call before Gerber export or after manual edits. Accepts pcb_text or project_path plus fab_tier ('standard_2l', 'standard_4l', 'fine_hdi'). Returns JSON dfm_passed and min_observed_trace_width_mm. Example: fab_tier='standard_4l'.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fab_tier": "standard_4l",
"project_path": "board.kicad_pcb"
},
"name": "audit_pcb_dfm_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fab_tier | No | Target fabrication rule tier (standard_2l, standard_4l, or fine_hdi). | standard_2l |
| pcb_text | No | Raw UTF-8 .kicad_pcb or .dsn text with routed copper. | |
| project_path | No | Local filesystem path to .kicad_pcb or .dsn (STDIO mode). |