Skip to main content
Glama

pcb_renumber_pads

Renumbers PCB footprint pads in spatial order to assign sequential designators automatically, eliminating manual clicking for grid-based numbering.

Instructions

Renumber the current PcbLib footprint's pads in spatial order.

The non-interactive form of the community RenumberPads tool: instead of clicking each pad in order, the footprint's pads are sorted by position and assigned sequential designators. Rows/columns are banded by a small tolerance so a grid numbers cleanly. Operates on the active PCB library's current footprint.

Args: order: lr_tb (default) numbers rows top-to-bottom, left-to-right within a row; tb_lr numbers columns left-to-right, top-to-bottom within a column. start: First designator number (default 1). increment: Step between successive pads (default 1). prefix: Optional string prefixed to each number (e.g. A -> A1, A2).

Returns: {"renumbered", "order", "mapping": [{old, new}, ...]} or an error.

Input Schema

NameRequiredDescriptionDefault
orderNolr_tb
startNo
prefixNo
incrementNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the spatial sorting algorithm, tolerance banding, target footprint, and return mapping, but it does not explicitly state that existing designators are overwritten, whether the operation is reversible, or any permission/undo considerations.

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 description is front-loaded with the main action and then cleanly separates Args and Returns. It is slightly verbose around the community-tool comparison, but no sentence is confusing or wasteful.

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 four-parameter mutation tool with no annotations and an output schema, the description covers target scope, algorithm, parameter meanings, and return shape. It is nearly complete, though explicit mutation side effects and usage exclusions would improve it.

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%, but the description fully compensates by documenting all four parameters. It explains order values lr_tb and tb_lr, default and meaning of start, increment semantics, and a concrete prefix example.

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?

States a specific verb and resource: renumber pads in the current PcbLib footprint in spatial order. It clearly explains the spatial sorting behavior, but does not explicitly distinguish this tool from related sibling tools such as lib_fix_designators or sch_increment_designators.

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 description gives implied usage by explaining it is the non-interactive equivalent of the community RenumberPads tool and operates on the active PCB library's current footprint. However, it does not state when-not to use it or name alternative tools for related designator workflows.

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