Skip to main content
Glama
Universal Netlist MCP Server

Universal Netlist MCP Server

Get component details

query_component
Read-onlyIdempotent

Retrieves full details for a component from a schematic design by reference designator, including MPN, value, and pin-to-net mappings for design review.

Instructions

Get full component details including all pin connections. Refdes lookup is case-insensitive. Returns MPN, description, value, and pin-to-net mappings when available. Each pin maps to its net name, or to {name, net, type, hidden} carrying whichever of these it has: a function name that differs from its number, the electrical type its symbol declares (input, output, bidirectional, tristate, open_collector, open_emitter, passive, power and the like), and hidden: true for a pin the symbol does not draw. A pin on no net reads as the net "NC", a marker and not a queryable net. If the schematic gives the refdes to several different parts, the result lists every part under components, each carrying error: "Reference designator is duplicated". pins 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 duplicated refdes counts its parts' pins together. If the refdes is not found, search_components_by_refdes finds it; errors include guidance and suggestions.

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>",
      "refdes": "<refdes>"
    },
    "name": "query_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
designYesPath to design file
offsetNoIndex of the first pins entry to return, from next_offset. Default: 0.
refdesYesComponent reference designator
max_resultsNoMax pins 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 pins entries to return. Default: 50.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Index of the first pins 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 readOnly/idempotent/non-destructive, and the description adds substantial behavior beyond that: case-insensitive refdes matching, the NC sentinel for unnetted pins, hidden-pin flags, duplicate-refdes handling under `components` with an error string, and the fact that notes cover only the current page. These are exactly the edge cases an agent would otherwise misread.

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, then layered detail on returns, edge cases, and paging; no filler sentences. It is dense and the pin-mapping sentence is long, but every clause carries information an agent needs.

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?

There is no output schema, so the description carries the full burden of describing returns — and it does: MPN, description, value, pin-to-net mappings, the NC marker, the components/error array for duplicates, and pagination fields. Nothing essential for correct invocation or result interpretation is missing.

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?

With 100% schema coverage the baseline is 3, but the description adds real meaning: it explains the offset/max_results/next_offset paging contract and that default page size is 50, plus that refdes matching is case-insensitive. design_variant is left to the schema, which is acceptable given its thorough inline description.

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 component details including all pin connections' — and the scope (refdes lookup, case-insensitive) is unambiguous. An agent can immediately distinguish it from the sibling search_components_by_refdes, which the description names as the fallback path.

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?

Explicitly states the fallback condition: 'If the refdes is not found, `search_components_by_refdes` finds it.' That gives a clear routing rule for the most likely confusion. It does not discuss when to prefer this over list_components or the description/MPN search siblings, so it stops short of full alternative coverage.

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