Skip to main content
Glama

pcb_move_tracks_to_layer

Move all tracks for a specified net to a target PCB layer and add vias at same-net SMD pads that require a layer change.

Instructions

Move all tracks of a net to one layer, adding vias where needed.

Relayers every track of net_name onto target_layer, then drops a via at each same-net single-layer (SMD) pad that is NOT on the target layer, since that pad can now only connect through a layer change. Multilayer (through-hole) pads need no via. This flattens a net's routing onto one layer, so use it deliberately.

Args: net_name: Net whose tracks move. target_layer: Destination signal layer (e.g. "BottomLayer"). via_size_mils: Via pad diameter for added vias (default 50). via_hole_mils: Via hole diameter (default 28).

Returns: {"net", "target_layer", "moved", "vias_added"}.

Input Schema

NameRequiredDescriptionDefault
net_nameYes
target_layerYes
via_hole_milsNo
via_size_milsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations provided, the description carries the full disclosure burden and does well: it states the flattens-everything side effect, explains exactly which pads get new vias and which (through-hole) do not, and warns to use it deliberately. It omits preconditions (net must exist, active PCB document) and reversibility, keeping it short of a 5.

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 action and its consequence before the mechanics and args; no filler sentences. The Args section is somewhat redundant with the schema but adds defaults/units, so it still earns its space.

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 mutating, no-annotation, 4-parameter tool this covers purpose, side effects, parameters, and returns; an output schema exists, so the Returns line is a bonus rather than a necessity. The remaining gap is precondition/error behavior and the set of legal layer names, which an agent may need before invoking.

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 carry all parameter meaning, and it documents all four parameters including units (mils) and defaults (via_size_mils 50, via_hole_mils 28). It also gives a concrete example value for target_layer ("BottomLayer"), which the bare schema does not. It stops short of listing valid layer names or net-name format.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence states a specific verb+resource+scope: move all tracks of a named net onto one layer, adding vias as needed. The follow-up explains the exact mechanics (relayer tracks, drop a via at same-net SMD pads not on the target layer). It does not distinguish itself from nearby siblings like pcb_place_tracks or pcb_cleanup_tracks, so it is clear but not sibling-differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'This flattens a net's routing onto one layer, so use it deliberately' signals a caution/context but never states when to choose this over pcb_place_tracks or pcb_cleanup_tracks, nor any prerequisite such as an open board or a valid net. Usage is implied rather than prescribed.

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