Skip to main content
Glama

sch_replicate_component

Copy a placed schematic component while keeping its master UniqueId so multi-part package units group correctly in ECO; optionally set part ID, placement, and new designator.

Instructions

Copy a placed schematic part and share the master's UniqueId.

ECO groups multi-part packages (quad comparators, dual op-amps) only when every unit has the same UniqueId. Writing UniqueId after the copy is already on the sheet remints a new id if that value is already present. This path stamps UniqueId on the replica before AddSchObject, which is the share that sticks.

Finds the first instance whose designator matches, Replicates it, optionally switches CurrentPartID, optionally moves it, and keeps the master's UniqueId.

Args: designator: Source instance to copy (e.g. "U8"). part_id: 1-based CurrentPartID for the copy. 0 = keep source. x, y: Placement in mils. Omit both to leave the replica where Replicate dropped it. new_designator: Designator for the copy. Empty keeps the source designator (required for multi-part packing).

Returns: Dict with success, source/copy UniqueIds, part_id, and shared (true when the copy kept the master's UniqueId).

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
part_idNo
designatorYes
new_designatorNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.5/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 discloses the mutation, the first-match designator lookup, the optional part-id switch and move, and the UniqueId-sharing side effect. Gaps remain around required document state (active schematic) and failure behavior, which keeps it from 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?

The purpose is front-loaded in the first sentence and the Args block is tight. The ECO/UniqueId rationale paragraph is longer than strictly necessary but explains a genuinely non-obvious mechanism, so it mostly earns its place.

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?

Covers purpose, all five parameters, the multi-part packing constraint, and even the return shape despite an output schema already existing. Nothing an agent needs in order to call this correctly is missing.

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 does: designator gets an example ("U8"), part_id is clarified as 1-based with 0 meaning keep source, x/y are in mils and must be omitted together, and new_designator empty keeps the source designator with the multi-part rationale. Every parameter gains meaning beyond the bare schema types.

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 and resource ("Copy a placed schematic part") plus the distinguishing behavior ("share the master's UniqueId"), which separates it from siblings like obj_copy, sch_place_components and sch_set_component_unique_id. An agent can tell what it does without opening the 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 a clear usage rationale: this path is the one to use for multi-part packing because it stamps UniqueId before AddSchObject rather than after. It explains the condition that selects this approach, though it never explicitly names an alternative sibling to use instead for other cases.

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