Skip to main content
Glama

obj_crossref_net

Compare schematic vs PCB membership for a named net to expose pins or pads missing from either side and diagnose stale or broken connections.

Instructions

Compare the schematic vs PCB membership of a named net.

Returns the full pin list the SCHEMATIC assigns to this net alongside the pad list the PCB assigns to the same net, plus the diff in each direction.

USE THIS when:

  • proj_get_nets / proj_get_connectivity returns an answer that surprises you or the user (e.g. a net appears to be missing a pin you expect on it, or appears to be disconnected from a component you know is wired).

  • Investigating "board works but schematic says otherwise": a non-empty pcb_only list means the PCB was fabricated from an older schematic revision, or an edit broke the post-ECO merge. Design > Update PCB from Schematic would rip up those PCB connections.

  • Debugging ECO workflow issues.

Args: net_name: Exact net name as it appears in the schematic (case-sensitive).

Returns: Dict with: - net_name - sch_pin_count, pcb_pin_count - matched (count of pins present on both sides) - sch_only_count, pcb_only_count - in_sync (True only when both sides list the same pins AND the net exists on at least one side) - sch_pins[], pcb_pins[], each entry is "Designator.PinNumber" - sch_only[], pcb_only[], the diff lists. If sch_only is non-empty the PCB is missing those connections. If pcb_only is non-empty the PCB has stale connections the current schematic doesn't have.

Input Schema

NameRequiredDescriptionDefault
net_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the tool reads both domains, that a non-empty pcb_only implies the PCB came from an older revision, and warns that Design > Update PCB from Schematic would rip up those connections. It stops short of stating whether the tool is strictly read-only or whether it requires a recompile/fresh ECO data first.

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 one-line purpose, then usage, then args, then returns — a clean and readable structure. The Args section restates the single parameter and the Returns block partly re-enumerates fields the output schema already declares, so a small amount of text is redundant.

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 one-parameter diagnostic tool with an output schema present, everything an agent needs is covered: what it compares, when to reach for it, how to interpret in_sync and the diff lists. Return-value shape is already carried by the output schema, so no gap remains.

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 description coverage is 0%, so the description must compensate, and it does: 'Exact net name as it appears in the schematic (case-sensitive)' adds the two constraints (exactness, case sensitivity) that the bare 'Net Name' string schema lacks. No further argument detail is needed for a single-param tool.

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?

The first sentence names a specific verb (compare) and a specific resource (schematic vs PCB membership of a named net), which no sibling tool duplicates. It immediately distinguishes itself from net-listing tools like pcb_get_nets and proj_get_nets.

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?

An explicit 'USE THIS when' block names the triggering condition (a surprising answer from proj_get_nets / proj_get_connectivity) and two concrete diagnostic scenarios. It also supplies the interpretation rule (non-empty pcb_only => stale PCB), so the agent knows not just when to call but how to read the result.

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

Deploy Server

Other Tools