Run electrical rule checks
run_ercRun electrical rule checks on a design netlist to surface errors and warnings grouped by severity and rule, with paged findings for design review.
Instructions
Run electrical rule checks (ERC) on a design's netlist and return findings grouped by severity (errors, warnings) then rule id. findings is paged: max_results entries (default 50) from offset, and next_offset is set when there are more. Notes about parts and nets cover the page only. Findings are counted across every rule, errors first; totals gives every rule's count. Rules: net.single_pin (error: one functional pin, no test point), net.testpoint_orphan (error: only test points), net.testpoint_stub (warning: one functional pin plus test points), net.whitespace_in_name (warning: leading or trailing whitespace in a net name), net.whitespace_name_collision (error: separate nets whose names match once trimmed), refdes.duplicate (error: one refdes on several parts; keyed by refdes, {part_count, pages}), refdes.section_repeated (error: a part drawing a section twice; keyed by refdes, [{section, placements, pages}]), net.unnamed (warning: an auto-generated name on a 2+-pin net), and from pin electrical types (an untyped pin never conflicts and may drive): pin.output_conflict (error: drivers that short, such as two outputs), pin.output_contention (warning: a possible fight, such as a three-state pin on a driven net), pin.input_undriven (error: inputs nothing can drive), pin.power_unconnected (error: a power_in pin alone on its net, or under NC), pin.power_undirected_unconnected (warning: the same for an undirected power pin), and capture.erc_error / capture.erc_warning (Capture's saved ERC markers by level, keyed by page). Test points have the TP refdes prefix. Findings key each net to its REFDES.PIN endpoints (always arrays); net.unnamed lists bare net names. checked lists the rules that ran; skipped counts parts left out, such as Do-Not-Stuff ones. include_rules/exclude_rules scope the run, include_dns counts Do-Not-Stuff parts; an unknown rule id returns an error. Other unconnected pins are not checked: they cannot be told apart from intentional no-connects.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"design": "<design>"
},
"name": "run_erc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| design | Yes | Path to design file | |
| offset | No | Index of the first findings entry to return, from next_offset. Default: 0. | |
| include_dns | No | Include DNS (Do Not Stuff) components in the checks | |
| max_results | No | Max findings entries to return. Default: 50. | |
| exclude_rules | No | Skip these rule ids | |
| include_rules | No | Only run these rule ids (e.g., ['net.single_pin']). Omit for all | |
| design_variant | No | Design variant name from list_designs' design_variants. Required when the design records named variants, which are its only builds. <Default> (alias: default) is the one build of a design that records none |