Skip to main content
Glama
Universal Netlist MCP Server

Universal Netlist MCP Server

Run electrical rule checks

run_erc
Read-onlyIdempotent

Run 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

NameRequiredDescriptionDefault
designYesPath to design file
offsetNoIndex of the first findings entry to return, from next_offset. Default: 0.
include_dnsNoInclude DNS (Do Not Stuff) components in the checks
max_resultsNoMax findings entries to return. Default: 50.
exclude_rulesNoSkip these rule ids
include_rulesNoOnly run these rule ids (e.g., ['net.single_pin']). Omit for all
design_variantNoDesign 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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.15.0
    • addedInput schema / properties / max_results
      Added value: +{
      +  "default": 50,
      +  "description": "Max findings entries to return. Default: 50.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Index of the first findings entry to return, from next_offset. Default: 0.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. First observedv0.0.0-development

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description layers on substantial extra behavior: paging semantics with next_offset, notes covering only the current page, findings counted across every rule with errors first, totals per rule, checked vs skipped, and error behavior on unknown rule ids.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and paging are correctly front-loaded, but the middle is a single dense paragraph enumerating thirteen rule ids inline, which is hard to scan and could have been structured as a list or left to a reference. Most sentences earn their place, but the delivery is cramped.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the full burden of explaining the return payload, and it does: findings grouping, per-rule keying ({part_count, pages}, {section, placements, pages}), REFDES.PIN endpoint arrays, totals, checked, skipped, and paging. For a seven-parameter analysis tool this is essentially complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description genuinely adds meaning: it explains that max_results entries are taken from offset and next_offset signals more, that include_dns controls whether Do-Not-Stuff parts are counted, that skipped reports excluded parts, and that bad rule ids error. It does not cover design_variant, which is left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'Run electrical rule checks (ERC) on a design's netlist and return findings grouped by severity'. The scope (netlist ERC, not schematic/layout checks) and output shape are stated immediately, which is enough to distinguish it from the list/search/query siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear operating context: include_rules/exclude_rules scope the run, unknown rule ids error out, and unconnected pins are deliberately excluded because they cannot be distinguished from intentional no-connects. What's missing is any explicit routing to or away from a sibling tool, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.