Skip to main content
Glama
Universal Netlist MCP Server

Universal Netlist MCP Server

Search components by MPN

search_components_by_mpn
Read-onlyIdempotent

Find components in a netlist by manufacturer part number pattern, with paged results; fall back to reference designator or description search when MPN data is absent.

Instructions

Search for components by MPN (Manufacturer Part Number) pattern. Not all netlists include MPN data; if unavailable, fall back to search_components_by_refdes or search_components_by_description, or ask the user for a BOM. component_notes names the parts with no MPN. 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_mpn"
  }
}

Input Schema

NameRequiredDescriptionDefault
designYesPath to design file
offsetNoIndex of the first results entry to return, from next_offset. Default: 0.
patternYesRegex pattern for MPN
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.8/5.0
Behavior5/5

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

Annotations already declare the safe read-only, idempotent, closed-world profile, yet the description still adds substantive behavior: MPN data may be missing from netlists, component_notes identifies parts lacking MPN, match-all patterns are rejected, and notes about parts and nets cover only the returned page. That last constraint materially affects how an agent interprets results.

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

Conciseness5/5

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

Front-loaded with the core purpose, then layered: fallbacks, edge-case behavior, and pagination. Every sentence carries new information — no restatement of the title or annotations, and backticks cleanly mark field names.

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?

For a paginated search with no output schema, the description adequately covers result paging (results, max_results, offset, next_offset) and the scope caveat that notes are page-limited. It does not describe the per-result fields an agent would receive, which is a minor gap given no output schema exists.

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 pattern, design, offset, max_results, include_dns, and design_variant. The description adds meaning beyond it by explaining the relationship between results, max_results, offset, and next_offset, including that next_offset signals more entries remain. It does not add anything about include_dns or design_variant, hence not a 5.

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 for components by MPN (Manufacturer Part Number) pattern' — and immediately situates it among siblings by naming the fallbacks when MPN data is absent. An agent can distinguish it from search_components_by_refdes and search_components_by_description without opening any schema.

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?

Explicit when-to-use is given ('if unavailable, fall back to search_components_by_refdes or search_components_by_description, or ask the user for a BOM') and an explicit anti-pattern is excluded ('Rejects patterns that match all items; use list_components for full results'). Both the alternative and the condition selecting it are named.

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