Skip to main content
Glama

pcb_lock_net_routing

Locks or unlocks tracks, arcs, and vias on selected nets before autorouting to protect hand-routed power, ground, and clock connections; optionally locks components with pads on those nets.

Instructions

Lock or unlock track / arc / via primitives on a list of nets.

Standard workflow: before letting the autorouter touch the board, lock the power / ground / clock / oscillator nets so a partial re-route pass doesn't undo your careful hand-routing on them. Set lock=False afterwards to free everything up.

Locked primitives have Moveable=False; the autorouter and the interactive editor respect that flag when DXP Preferences → PCB Editor → General → "Protect Locked Objects" is enabled.

The net-list-driven MCP equivalent of a cursor-driven lock.

Args: nets: Net names to lock / unlock (e.g. ["VCC", "GND", "CLK_24M"]). Case-sensitive. lock: True to lock (sets Moveable=False), False to unlock. lock_components: Also lock any component with at least one pad on a matched net. Useful to freeze the connectors / regulators that anchor a hand-routed power section. Default False.

Returns: Dict with: - locked: True / False mirror of the input - matched_primitives: track + arc + via objects whose net matched - updated_primitives: how many actually changed state - matched_components: components touched (only filled when lock_components=True) - updated_components: components whose Moveable flipped

Input Schema

NameRequiredDescriptionDefault
lockYes
netsYes
lock_componentsNo

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 states that locked primitives get ``Moveable=False``, that the autorouter/editor respect that flag only when 'Protect Locked Objects' is enabled, and that ``lock=False`` reverses the operation. It could still mention permission requirements or side effects on selection/UI state, but the behavioral disclosure is substantial.

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?

The description is front-loaded with the purpose and workflow, then uses structured Args and Returns sections. Despite its length, every section adds actionable information for calling and interpreting the tool.

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?

The tool is a multi-parameter PCB mutation with no annotations, no schema descriptions, and an output schema. The description compensates by explaining the workflow, behavioral flag semantics, parameter meanings, and return fields, leaving nothing critical unaddressed.

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 description coverage is 0%, so the description must compensate, and it does: it explains net names are case-sensitive, ``lock=True`` sets ``Moveable=False``, ``lock_components`` also locks any component with a pad on a matched net, and default behavior is documented.

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 description opens with a precise verb and resource: lock or unlock track / arc / via primitives on a list of nets. It clearly distinguishes the operation from sibling PCB mutation tools and leaves no ambiguity about what is being changed.

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?

It gives a concrete standard workflow: use before autorouting to protect power, ground, clock, and oscillator nets, then set ``lock=False`` afterward. It does not name a competing sibling tool as an alternative, but the usage context and exclusions are strong enough that an agent knows when this tool is appropriate.

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