Skip to main content
Glama
sheares

easyeda-mcp-fix

by sheares

sch_modify_component

Idempotent

Modify schematic component properties like position, rotation, or designator. Automatically preserves unpassed metadata to prevent BOM data loss.

Instructions

Modify properties of a schematic component (position, rotation, designator, etc.). Metadata is preserved automatically (bug-1 fix, this fork only): fields you do not pass (supplierId, otherProperty, manufacturer, manufacturerId, supplier, uniqueId) are snapshotted before the write and merged back, so a position-only edit no longer wipes the BOM row. Passing an explicit value (including null) still applies it. Stock EasyEDA does NOT do this — its modify() re-serialises from the property argument alone. LIMITATION: the "document" parameter cannot move a component between schematic pages. Passing a different page's UUID switches the editor but the underlying call fails (undefined.getState_ComponentType); cross-page moves still require a manual UI Cut, switch page, Paste.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoNew X coordinate
yNoNew Y coordinate
nameNoNew component name
mirrorNoWhether to mirror
documentYesTarget document UUID — auto-switches to this document before executing. Get UUIDs from list_instances or editor_get_open_tabs.
rotationNoNew rotation angle in degrees
supplierNoSupplier name
uniqueIdNoNew unique ID
addIntoBomNoWhether to include in BOM
addIntoPcbNoWhether to include in PCB
designatorNoNew designator (e.g. "R1", "U2")
supplierIdNoSupplier part number (e.g. LCSC C-number)
instance_idNoTarget EasyEDA instance ID (8-char hex). Required when multiple instances are connected. Omit when only one instance is connected (auto-selected). Use list_instances to see connected instances.
primitiveIdYesThe component primitive ID
manufacturerNoManufacturer name
manufacturerIdNoManufacturer part number

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.5

TDQS

A4.3/5.0
Behavior5/5

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

Annotations cover safety (readOnlyHint=false, idempotentHint=true, destructiveHint=false), yet the description adds substantial non-structured context: the snapshot/merge metadata-preservation behavior, exactly which fields (supplierId, otherProperty, manufacturer, etc.) survive a partial edit, the fact that explicit null still applies, and that stock EasyEDA behaves differently. It also discloses a concrete failure mode for cross-page moves with the error string. This is well beyond what annotations convey.

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 lead sentence is front-loaded with the core purpose, then behavior and limitations follow. It is somewhat verbose with fork-specific asides ('bug-1 fix, this fork only', 'Stock EasyEDA does NOT do this'), but each sentence carries decision-relevant information, so it is defensible rather than 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 16-parameter mutation tool with no output schema and covering annotations, the description supplies the behavioral and limitation context an agent needs (metadata preservation, null semantics, cross-page failure). It does not describe the response shape or error handling beyond the one documented bug, a minor residual gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so baseline is 3. The description goes further, explaining that omitted fields are preserved while explicitly-passed values (including null) are applied — semantics the schema itself does not convey — and it clarifies the failure mode of the 'document' parameter. This meaningfully exceeds the schema.

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+resource ('Modify properties of a schematic component') and enumerates the kind of properties affected (position, rotation, designator). It is clearly distinguishable from sch_create_component, sch_delete_component, and the wire/net siblings by name and scope.

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?

Usage is implied rather than stated: the agent can infer 'use this to edit an existing component,' but there is no explicit when-to-use vs sch_swap_supplier_part or sch_create_component, and no prerequisites. The cross-page LIMITATION note is valuable routing information for an edge case, but it does not generalize into broader usage guidance.

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