Skip to main content
Glama
Universal Netlist MCP Server

Universal Netlist MCP Server

Trace XNET from a pin

query_xnet_by_pin_name
Read-onlyIdempotent

Traces full electrical-node connectivity from a component pin (REFDES.PIN) through series parts, stopping at power and ground nets, to return the complete XNET and its unique topology.

Instructions

Get full XNET connectivity starting from a component pin, named REFDES.PIN (e.g. U1.A5, R10.1). Traces through series components, so the result is the whole electrical node; 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, or by carrying more than 40 pins; visited_nets names every net the result crossed. skip_types leaves series passives out, for example skip_types=['C','L','R']. components_by_mpn is paged like query_xnet_by_net_name's. A pin on no net reads as the net NC and returns an empty result. 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. Rejects pins on a net named as a ground (GND, GND1, AGND, VSS, ...) with an error.

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>",
      "pin_name": "<pin_name>"
    },
    "name": "query_xnet_by_pin_name"
  }
}

Input Schema

NameRequiredDescriptionDefault
designYesPath to design file
offsetNoIndex of the first components_by_mpn entry to return, from next_offset. Default: 0.
pin_nameYesPin spec: REFDES.PIN (e.g., U2.10, U1.A5)
skip_typesNoComponent prefixes to exclude
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 establish read-only, idempotent, non-destructive behavior, but the description goes much further: it discloses traversal through series components, stop conditions at power/ground or nets over 40 pins, visited_nets, ground-pin rejection, NC handling, and paging of components_by_mpn. This is unusually rich behavioral context beyond the annotations.

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?

The purpose is front-loaded and most sentences carry substantive information about traversal, stopping rules, outputs, and errors. It is dense and somewhat overstuffed, with some repetition of schema details such as the REFDES.PIN format and paging, but it is not padded with empty wording.

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?

For a complex graph-traversal tool with no output schema, the description covers the traversal model, termination rules, edge cases, error behavior, and the meaning of returned fields sufficiently for an agent to call it correctly. The richer schema descriptions cover remaining parameter details such as design_variant and paging controls.

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 schema already documents all seven parameters. The description still adds meaning, especially that skip_types leaves series passives out with a concrete example and that components_by_mpn is paged like query_xnet_by_net_name's. It repeats the pin_name format already present in the schema, which limits it slightly.

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?

States a specific verb and resource: 'Get full XNET connectivity starting from a component pin, named REFDES.PIN'. The starting point (a pin) clearly distinguishes it from the sibling query_xnet_by_net_name, which starts from a net name.

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 when-to-use context: it is for tracing from a pin, handles series components, and explicitly rejects pins on ground nets. It also explains the NC edge case. It does not explicitly say when to prefer query_xnet_by_net_name instead, though the pin-vs-net starting point is implied.

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