Skip to main content
Glama
Universal Netlist MCP Server

Universal Netlist MCP Server

Trace XNET from a net

query_xnet_by_net_name
Read-onlyIdempotent

Trace a named net through series components to obtain full extended-net connectivity, stopping at power or ground, and identify the complete electrical node and unique topology.

Instructions

Get full XNET (Extended Net) connectivity for a net. Traces through series components, so the result is the whole electrical node rather than the one net; circuit_hash identifies unique topologies. Traversal stops at power and ground nets: recognised by name (VCC*, VDD*, 3V3, GND, GND1, VSS, ...), by a supply or ground pin on the net (VDD, AVDD, VBUS, GND, PGND, ...), or by carrying more than 40 pins. visited_nets names every net the result crossed. skip_types leaves series passives out; skip_types=['C','L','R'] removes all three from the result. Rejects a net named as a ground (GND, GND1, AGND, VSS, ...; not GND_SW) with an error. components_by_mpn 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. A name that matches no net exactly is matched ignoring leading and trailing whitespace, then as the 31-character name a PSTWRITER 16.6 Allegro export gives a longer net; notes says when that happened, and a name that could mean several nets returns them. component_notes names the parts with no MPN. net_properties gives the design's own properties of the nets listed, such as DIFFERENTIAL_PAIR (the pair a net belongs to: Capture's own property, an Altium Differential Pair directive on both nets, or KiCad's +/- or P/N pair naming less pairs carrying a supply pin) and VOLTAGE, where the design sets them. If the net is not found, search_nets finds the name.

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>",
      "net_name": "<net_name>"
    },
    "name": "query_xnet_by_net_name"
  }
}

Input Schema

NameRequiredDescriptionDefault
designYesPath to design file
offsetNoIndex of the first components_by_mpn entry to return, from next_offset. Default: 0.
net_nameYesNet name. An exact match wins; otherwise it is matched ignoring leading and trailing whitespace, and for Cadence as a 31-character PSTWRITER 16.6 name
skip_typesNoComponent prefixes to exclude (e.g., ['C', 'L'])
include_dnsNoInclude DNS components
max_resultsNoMax components_by_mpn entries to return. Default: 50.
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 components_by_mpn entries to return. Default: 50.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Index of the first components_by_mpn entry to return, from next_offset. Default: 0.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. First observedv0.0.0-development

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare this a safe, idempotent, closed-world read, and the description layers substantial behavior on top: traversal terminates at power/ground nets via three named heuristics, ground-named inputs are rejected, page-scoped notes, `next_offset` pagination, and a multi-stage name-matching fallback (whitespace, then 31-char PSTWRITER truncation) with a `notes` signal when it fires. This is exactly the kind of context annotations cannot carry.

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

Conciseness4/5

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

Purpose is front-loaded and nearly every clause carries information, but it is delivered as a single dense semicolon-chained paragraph, so the paging, termination, and matching rules blur together. Slightly more structural separation would improve scanability without adding length.

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 still accounts for the key return fields (`components_by_mpn`, `next_offset`, `visited_nets`, `notes`, `component_notes`, `net_properties`) and the semantics of each. For a seven-parameter traversal tool this is complete enough to call correctly on the first attempt.

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 baseline is 3, but the description adds real meaning: it ties `offset`/`max_results` to a paged `components_by_mpn` with `next_offset`, gives a concrete `skip_types=['C','L','R']` example, and explains the net_name resolution chain beyond the schema's one-line version. It stops short of covering `include_dns` or `design_variant`, which appear only in 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+resource ('Get full XNET (Extended Net) connectivity for a net') and immediately clarifies the crucial scope difference: traversal through series components means the result is the whole electrical node, not just the named net. An agent can tell exactly what comes back without opening the schema.

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 use context (obtaining an entire electrical node), explains how skip_types shapes the result, and provides an explicit fallback: if the net is not found, use `search_nets`. It also states a rejection condition (ground-named nets error out). It does not explicitly contrast with the sibling `query_xnet_by_pin_name`, leaving that choice to inference.

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