Skip to main content
Glama
Universal Netlist MCP Server

Universal Netlist MCP Server

Search nets

search_nets
Read-onlyIdempotent

Find nets in a design by case-insensitive regex pattern, with sorted, paged results and notes when nothing matches. Use it to locate hierarchical or trimmed net names without exact anchors.

Instructions

Search for nets matching a regex pattern. Matching is case-insensitive by default. Returns sorted results keyed by design name, with a notes field when nothing matches. KiCad nets declared inside a hierarchical sheet are sheet-path-prefixed (e.g. a "D0" data line on the Peripherals sheet is named "/Peripherals/D0", not "/D0"), so prefer unanchored patterns like "D0" over "^/D0$" or you may miss bussed/hierarchical nets. A name with leading or trailing whitespace also matches as trimmed, so "^SIG$" finds "SIG ". 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 patterns that match all items; use list_nets for full results. results 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.

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": {
      "pattern": "<pattern>",
      "design": "<design>"
    },
    "name": "search_nets"
  }
}

Input Schema

NameRequiredDescriptionDefault
designYesPath to design file
offsetNoIndex of the first results entry to return, from next_offset. Default: 0.
patternYesRegex pattern
max_resultsNoMax results 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 results entries to return. Default: 50.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Index of the first results 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
Behavior4/5

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

Well beyond the readOnly/idempotent annotations: case-insensitivity, sort order keyed by design name, a notes field on empty matches, hierarchical sheet-path naming, whitespace-trimmed matching, the match-all rejection, and paging behavior with next_offset plus the caveat that notes only cover the current page. The `net_properties`/DIFFERENTIAL_PAIR passage is dense and reads more like domain trivia than tool behavior, which dilutes an otherwise strong disclosure.

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?

Front-loaded with the core purpose and pattern guidance, which is where it matters most. It runs long for a search tool and the parenthetical explanation of differential-pair sources is disproportionate detail that slows comprehension of the imperative parts.

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 return-value burden and does so: results sorted and keyed by design name, `results`/`next_offset` paging contract, and the notes field. Combined with the parameter and prerequisite guidance, an agent has enough to call it correctly and interpret the response.

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 for `pattern` (regex, case-insensitive, trimmed, hierarchical-prefix pitfalls) and clarifies paging via `max_results`/`offset`/`next_offset` and the page-scoped notes. It adds nothing about `design_variant`, though the schema documents that thoroughly.

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 ('Search for nets matching a regex pattern') and immediately separates itself from the sibling that returns everything ('use list_nets for full results'). An agent can distinguish it from list_nets, search_components_*, and query_xnet_* without inspecting schemas.

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

Usage Guidelines5/5

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

Gives concrete selection guidance: use this when you have a regex, use list_nets for full results, and prefer unanchored patterns like "D0" over "^/D0$" because hierarchical sheets prefix names. It also states a hard exclusion the agent cannot infer — patterns that match all items are rejected.

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