Skip to main content
Glama
sheares

easyeda-mcp-fix

by sheares

pcb_modify_primitive

Idempotent

Modify properties of PCB primitives like vias, pads, and arcs to change nets, layers, and dimensions.

Instructions

Modify properties of a PCB primitive. Property keys vary by type:

  • via: net, x, y, holeDiameter, diameter, viaType

  • polyline: net, layer, lineWidth

  • arc: net, layer, startX, startY, endX, endY, arcAngle, lineWidth

  • pad: x, y, rotation, net, padNumber, layer

  • pour: net, layer, pourFillMethod, preserveSilos, pourName, pourPriority, lineWidth

  • fill: layer, net, fillMode, lineWidth

  • region: layer, ruleType, regionName, lineWidth All types support: primitiveLock Coordinates are PCB canvas coordinates in mil (1 mil = 0.001 inch), relative to the canvas origin: +X = rightward, +Y = upward. Lengths (widths, diameters) are also in mil. Use pcb_canvas_origin to read/set the origin offset and pcb_convert_coordinates to convert between canvas and data coordinates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesPrimitive type to modify
documentYesTarget document UUID — auto-switches to this document before executing. Get UUIDs from list_instances or editor_get_open_tabs.
propertyYesProperties to modify (see description for valid keys per type)
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 primitive ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.5

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare the safety profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false), so the agent knows this is an idempotent mutation. The description adds no further behavioral detail such as auth requirements, error behavior on invalid keys, or what happens to unmentioned properties, which leaves some behavioral gaps.

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-loads the purpose, then gives a tight per-type key list, then the unit/coordinate conventions. The bulleted structure is scannable and nearly every line earns its place; only the trailing tool cross-references are slightly reducible.

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 an idempotent mutation with no output schema, the description covers the critical unknowns: the property keys per type and the coordinate/unit system. It omits return-value semantics and how partial updates behave, but annotations plus the type-key map make it complete enough to invoke safely.

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?

Although schema coverage is nominally 100%, the 'property' parameter is an open object with additionalProperties:{} and empty properties, so the schema does not document valid keys at all. The description compensates fully by enumerating the valid property keys per primitive type plus the universally supported 'primitiveLock', which is essential to call the tool correctly.

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+resource ('Modify properties of a PCB primitive') and enumerates the exact primitive types it covers, so an agent can distinguish it from the create_* siblings. It doesn't explicitly differentiate itself from pcb_modify_track, which overlaps with the 'polyline' type it lists, leaving a small ambiguity.

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?

Provides useful operating context (units in mil, canvas coordinate conventions, pointers to pcb_canvas_origin and pcb_convert_coordinates) but never states when to use this tool versus alternatives like pcb_modify_track or pcb_delete_primitives. Usage is implied rather than explicit.

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