Skip to main content
Glama

lib_copy_footprint

Copy a footprint into a PcbLib, optionally renaming it and choosing source/destination libraries, with overwrite for existing names.

Instructions

Copy one footprint (all pads/primitives) into a PcbLib, optionally renaming.

Footprint analog of lib_copy_component: full-copies the footprint with no delete. source_library defaults to the focused PcbLib; dest_library defaults to the source. A same-library copy requires a different new_name. Errors if new_name already exists in dest unless overwrite.

Args: source_name: the footprint to copy. new_name: name for the copy (default source_name). source_library: source .PcbLib path (default the focused lib). dest_library: destination .PcbLib path (default source). overwrite: replace a same-named footprint already in dest.

Returns: {"success": true, "source": "...", "new_name": "...", "same_library": bool}.

Input Schema

NameRequiredDescriptionDefault
new_nameNo
overwriteNo
source_nameYes
dest_libraryNo
source_libraryNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.4/5.0
Behavior4/5

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

No annotations, so the description carries the full burden, and it does well: it discloses that this is a non-destructive full copy ('no delete'), how library defaults resolve to the focused PcbLib, and the exact failure mode on name collision plus the overwrite escape hatch. It does not say whether the destination library must be loaded/open or whether the operation is undoable, which leaves some mutation risk undisclosed.

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 one-line purpose, then behavior, then Args/Returns — easy to scan. Mild redundancy: the defaults for source_library, dest_library, new_name and overwrite are stated in the prose paragraph and repeated verbatim in the Args block, which costs a few lines without adding information.

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 5-parameter mutation tool with an output schema present, the description covers purpose, defaults, error conditions and overwrite semantics adequately. Remaining gaps are minor: no statement about required library/document state, and the Returns block partly duplicates what the output schema already defines.

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 compensate entirely, and it documents all five parameters with defaults and meaning (source_name, new_name, source_library, dest_library, overwrite). The Args block adds resolution semantics the schema cannot express, e.g. source_library defaults to the focused PcbLib and dest_library defaults to the source.

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?

Specific verb + resource + scope: 'Copy one footprint (all pads/primitives) into a PcbLib, optionally renaming.' It explicitly positions itself relative to a sibling ('Footprint analog of lib_copy_component'), so an agent can distinguish it from lib_move_footprints, lib_rename_footprint, and lib_copy_component without opening any schema.

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?

Gives concrete preconditions and selection logic: same-library copy requires a different new_name, and it errors if new_name already exists in dest unless overwrite is set. Defaults for source_library and dest_library are spelled out. What it lacks is an explicit 'use lib_move_footprints instead when you want to move rather than duplicate' routing statement.

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