Skip to main content
Glama
easyeda-mcp-pro
by oaslananka

Add schematic polygon

easyeda_schematic_add_polygon

Draw a closed, cosmetic polygon on an EasyEDA Pro schematic from 3 or more vertices to create custom shapes, callout arrows, or block diagram elements without electrical meaning.

Instructions

Draw a closed polygon on the schematic sheet from 3+ vertices — custom decorative shapes, callout arrows, or block diagram elements. Cosmetic only, no electrical meaning.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "points": "<points>",
      "confirmWrite": "<confirmWrite>"
    },
    "name": "easyeda_schematic_add_polygon"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorNo
pointsYes
lineTypeNo
fillColorNoFill color, hex string, or "none" for unfilled
lineWidthNo
confirmWriteYesMust be the literal boolean true (not the string "true") to allow this write.
expectedPcbUuidNoExpected focused PCB document UUID; reject a different focused PCB before a write.
expectedSchematicPageUuidNoExpected focused schematic page UUID; reject a different focused page before a write.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.19.10
    • addedInput schema / properties / expectedPcbUuid
      Added value: +{
      +  "description": "Expected focused PCB document UUID; reject a different focused PCB before a write.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / expectedSchematicPageUuid
      Added value: +{
      +  "description": "Expected focused schematic page UUID; reject a different focused page before a write.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv0.19.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Addedv0.19.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and idempotentHint=false, so the write nature is known. The description adds one genuinely useful behavioral fact — the polygon carries no electrical meaning, so it won't affect netlist/sync — but says nothing about persistence, undo, or how the confirmWrite/expectedUuid guards behave in practice.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single tight sentence pair, front-loaded with the action and constraint, followed by applicability. Nothing is padding.

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?

An output schema exists and annotations cover safety, so return values and write semantics need not be spelled out. Remaining gap is modest: the coordinate units/origin for x/y are never stated, and the confirmation and expected-UUID guard parameters are only documented in the schema.

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

Parameters2/5

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

The only parameter detail, "3+ vertices", restates the schema's minItems:3. With 8 parameters at 50% schema coverage, the description sheds no light on color, fillColor, lineType, lineWidth, or the two UUID guard parameters — meaning half the inputs get no explanation anywhere.

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?

Names a specific verb (draw) and resource (a closed polygon on the schematic sheet) plus the key constraint (3+ vertices). The use-case examples (callout arrows, block diagram elements) make it easy to distinguish from add_rectangle/add_circle, though no sibling is named explicitly.

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?

"Cosmetic only, no electrical meaning" implies when this is appropriate (decorative annotation) and implicitly steers electrical intent toward wire/net tools, but it never names an alternative or states a precondition such as requiring a focused schematic page.

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