Skip to main content
Glama
Universal Netlist MCP Server

Universal Netlist MCP Server

Search components by refdes

search_components_by_refdes
Read-onlyIdempotent

Search components by reference designator regex, group identical parts, and page results for schematic design reviews.

Instructions

Search for components by refdes pattern. Matching is case-insensitive. Identical components are grouped for compact output, on MPN, description, comment and value together, so every field a group reports is true of every part in it. component_notes names the parts with no MPN. A notes field is returned when nothing matches. Rejects patterns that match all items; use list_components 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_components_by_refdes"
  }
}

Input Schema

NameRequiredDescriptionDefault
designYesPath to design file
offsetNoIndex of the first results entry to return, from next_offset. Default: 0.
patternYesRegex pattern for refdes
include_dnsNoInclude DNS components, flagged dns=true. Pass false for fitted parts only
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.5/5.0
Behavior5/5

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

Goes well beyond the annotations (which only declare read-only, idempotent, closed-world, non-destructive): it discloses case-insensitive matching, group-deduplication keys (MPN, description, comment, value), that component_notes identifies parts with no MPN, that a notes field appears on empty matches, that match-all patterns are rejected, and that notes cover only the current page.

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-loads purpose then moves through matching, grouping, edge cases, and paging in a logical order with no filler sentences. Some sentences are dense with backticked field names, which slightly slows reading but each one carries distinct information.

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

Completeness4/5

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

There is no output schema, and the description compensates by explaining the returned `results`, `next_offset`, `component_notes`, and empty-match notes field, plus paging limits. The only gap is that it says little about the design_variant requirement, which the schema does cover.

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 is 3, but the description adds real meaning: it clarifies pattern semantics (case-insensitive regex matching), explains the paging contract between max_results, offset and next_offset, and warns that notes are page-scoped rather than global.

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 (search components by refdes pattern) and immediately scopes the operation with case-insensitive matching and grouping semantics. It also distinguishes itself from list_components, so an agent can choose between the two without opening either 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 an explicit exclusion (patterns matching all items are rejected) and names the alternative for that case (list_components for full results). It does not discuss when to prefer this over the description/MPN search siblings, but the refdes-pattern framing makes the distinction clear enough.

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