audit_find_pads_near_board_edge
Detect PCB pads and vias closer than a specified clearance to the board outline to prevent depaneling damage during v-cut or mouse-bite separation.
Instructions
Find PCB pads / vias closer than clearance_mils to the
board outline (depaneling damage hazard).
Copper too close to the routed edge gets scuffed / scored / torn during v-cut + mouse-bite break. IPC-2221 and typical fab houses want at least 20-50mil clearance for critical components, more for connectors. Worth tightening to 50+ for boards going to depaneling rather than rounded-corner manufacture.
The gap is measured from the outline's own segments, lines and arcs, to the pad's copper: a via or round pad by its radius, a rectangle by its nearest corner or edge midpoint, at whatever rotation. Round and other curved outlines are covered.
Args: clearance_mils: Minimum gap to flag as a violation (default 25). Try 50 if your fab depanels by v-cut.
Returns:
Dict with:
- checked: total pads + vias inspected
- violations: how many are within the clearance
- unmeasured: pads that could not be measured, which
are therefore neither passed nor flagged
- clearance_mils: echo of the threshold used
- items: per-violation {kind, designator, distance_mils, at} where at is "(x,y)" mils.
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": "audit_find_pads_near_board_edge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clearance_mils | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||