Skip to main content
Glama

lib_move_footprints

Move matching footprints between PcbLib libraries by explicit names or regex, copying them to the destination and optionally deleting them from the source; use dry runs to verify selections.

Instructions

Move matching footprints between PcbLibs (the PcbLib analog of move).

Copies every matching footprint (all pads and primitives, via a full copy) from source_pcblib to dest_pcblib, then removes them from source unless delete_from_source is False. The footprint counterpart of lib_move_components; together they split a full library.

Provide either names (explicit footprint names) or name_regex (matched against the source's footprint names). With names it is one IPC call; with name_regex the source footprint list is fetched first. A footprint already present in dest is skipped unless overwrite=True.

Args: source_pcblib: source .PcbLib path. dest_pcblib: destination .PcbLib path. names: explicit list of footprint names to move. name_regex: regex matched against source footprint names when names is not given. delete_from_source: remove moved footprints from source (default True). overwrite: replace a same-named footprint already in dest. dry_run: resolve the selection and report it WITHOUT moving anything. Worth doing whenever name_regex is used: the pattern is applied with search, not a full match, so a short pattern selects far more than intended, and the default is to delete them from the source afterwards.

Returns: {"success": true, "moved": N, "skipped": N, "failed": N}, or in dry-run {"dry_run", "resolved", "count", ...} with nothing sent to the bridge.

Input Schema

NameRequiredDescriptionDefault
namesNo
dry_runNo
overwriteNo
name_regexNo
dest_pcblibYes
source_pcblibYes
delete_from_sourceNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.9/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does it well: it discloses the destructive default (delete_from_source=True), what is copied (all pads and primitives via a full copy), skip/overwrite behavior, the one-call vs. list-fetch cost difference for names vs. regex, and what dry_run suppresses.

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 the sibling relationship, then structured into Args/Returns. Slightly redundant in places (the parenthetical 'via a full copy' and the length of the dry_run rationale), but every section is scannable and earns its space.

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?

Despite 7 parameters and a destructive default, the description covers selection precedence, overwrite/skip logic, the dry-run escape hatch, and return shapes for both success and dry-run modes. An agent has everything needed to invoke it safely without opening the schema.

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 Args block documents every one of the 7 parameters with meaning beyond the schema's bare types — defaults, precedence between names and name_regex, matching semantics for the regex, and the effect of each boolean.

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 (move) and resource (footprints between PcbLibs) with a precise scope note. It explicitly positions itself against lib_move_components and notes the copy-then-delete semantics that distinguish it from lib_copy_footprint.

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 explicit selection rules (names OR name_regex, names takes precedence), states that existing dest footprints are skipped unless overwrite=True, and recommends a dry_run specifically when name_regex is used. It also explains why: the pattern is applied with `search` so short patterns over-select and the default deletes them.

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