Skip to main content
Glama

pcb_build_from_project

Builds PCB net set and pad connectivity from a compiled netlist or tabular CSV, creating missing nets and binding pads for schematic-to-board transfer.

Instructions

Build the PCB's net set and pad connectivity from the netlist.

The SCH->PCB bridge orchestrator (replaces the unscriptable ECO netlist transfer): derives the distinct net list and every (designator, pin, net) binding from the compiled netlist, creates the missing nets (pcb_create_nets_from_list) and binds every pad (pcb_bind_pad_nets) in two IPC round-trips.

It does NOT place footprints -- pcb_place_components exists for that. Intended sequence: place components, then run this to build nets and bind pads, then verify with proj_compare_sch_pcb.

Args: netlist_csv_path: Optional path to a tabular netlist CSV written by proj_export_netlist(net_format="tabular") (component,pin,pin_name,net rows). Empty (default) = pull the compiled netlist from the open project directly.

Returns: Dict with components (distinct designators in the netlist), nets_created, nets_existing, pads_bound, failed, plus the missing_components / missing_pads / missing_nets lists from the bind step.

Input Schema

NameRequiredDescriptionDefault
netlist_csv_pathNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description does the heavy lifting: it discloses that this is a mutating orchestrator that creates nets and binds pads in two IPC round-trips, that it replaces an otherwise unscriptable ECO transfer, and that it reports per-item failures. It stops short of saying what happens to pads already bound to a net or whether the operation is idempotent/atomic on partial failure, which matters for a bulk mutation.

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?

The opening sentence is front-loaded with the core action, followed by mechanics and then sequence, which is the right order. The 'Returns:' block duplicates what the output schema already expresses and the hard-wrapped docstring formatting adds noise, but no sentence is wasted.

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 state-mutating orchestrator with one optional param, the description covers prerequisites, sequencing, exclusions, input format, and failure reporting. Since an output schema exists, the return section is a bonus rather than a requirement, leaving nothing essential missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry the parameter entirely, and it does: the CSV is described as tabular output from proj_export_netlist with the exact row shape (component,pin,pin_name,net), and the empty default is defined as pulling the compiled netlist from the open project. This fully compensates for the bare schema.

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 ('Build the PCB's net set and pad connectivity from the netlist') and unpacks it into concrete mechanics: derive nets and (designator, pin, net) bindings, create missing nets, bind pads. It also names the two internal tools it composes and explicitly excludes footprint placement, so an agent can separate it from pcb_place_components and pcb_bind_pad_nets at a glance.

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 an explicit order of operations: place components, then run this, then verify with proj_compare_sch_pcb. It also states the negative case ('It does NOT place footprints -- pcb_place_components exists for that') and names the producer of the optional CSV input (proj_export_netlist with net_format="tabular").

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