design_lint_report
Runs consolidated schematic and PCB lint checks, optionally DRC, and returns structured JSON violation counts and per-check details for pre-release review.
Instructions
Run all design-lint checks and return a consolidated violation report.
Sequences the individual audit.* checks the way a pre-release
review would: compile-gate first, then schematic-side rules, then
PCB-side rules, then optional ERC/DRC. Each section's raw result
is preserved so an agent can drill in; a top-level summary
gives counts per check.
Returns structured JSON instead of dumping to the Messages panel (Altium's panel is fine for human review but the agent needs a machine-readable shape).
Checks executed:
component_param_visibility-- per-class parameter visibility (cap voltage, IC MPN, etc).power_port_orientation-- ground down / rails up.find_floating_ports-- SCH ports not connected to a pin or sheet entry.tented_via_ratio-- PCB tented vs untented via surfaces.find_bad_connections-- PCB tracks / arcs with dangling endpoints withinbad_connection_tolerance_mils.find_signal_vias_without_return-- PCB signal vias with no nearby ground/power via for return-current.drc(only ifrun_drc=True) -- Altium's Design Rule Check, full project.
Args:
run_drc: If True, also runs Altium's DRC and includes its
violations. Off by default because DRC mutates the .DRC
report file and can take ~5-10s on a busy board.
bad_connection_tolerance_mils: Coord tolerance for
find_bad_connections. Default 1.0; raise to surface
only gross misalignments.
Returns:
Dict with:
- summary: per-check {checked, violations} (best
effort -- missing/failed checks listed under _failed)
- sections: per-check raw result objects under their
section name
- totals: overall violations count across all
sections (does NOT include DRC raw count -- DRC items
are listed separately because severity / fix-cost
differs)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checks | No | ||
| run_drc | No | ||
| bad_connection_tolerance_mils | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||