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

Add schematic rectangle

easyeda_schematic_add_rectangle

Draw a rectangle on the schematic sheet to create section dividers or grouping boxes that organize a busy schematic into labeled functional blocks, paired with add_text for titles.

Instructions

Draw a rectangle on the schematic sheet — section dividers/grouping boxes for organizing a busy schematic into labeled functional blocks (pair with add_text for the title). Cosmetic only. x/y is the top-left corner; fillColor "none" leaves it unfilled.

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": {
      "x": "<x>",
      "y": "<y>",
      "width": "<width>",
      "height": "<height>",
      "confirmWrite": "<confirmWrite>"
    },
    "name": "easyeda_schematic_add_rectangle"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesTop-left X coordinate
yYesTop-left Y coordinate
colorNoBorder/line color, hex string (e.g. "#FF0000")
widthYes
heightYes
lineTypeNo
rotationNo
fillColorNoFill color, hex string, or "none" for unfilled
fillStyleNo
lineWidthNo
confirmWriteYesMust be the literal boolean true (not the string "true") to allow this write.
cornerRadiusNo
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

A3.9/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and idempotentHint=false, so the write nature is already known. The description adds genuinely useful context that the shape is "cosmetic only" (no netlist impact), but it omits the confirmWrite requirement and the expected-UUID guards that govern whether the write is accepted.

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?

Two tight sentences with the purpose and the cosmetic-only caveat front-loaded, and no redundant restatement of the name or title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need no explanation, but for a 14-parameter write tool the description leaves the write-confirmation and UUID-guard semantics entirely to the schema and says nothing about the many geometry/style parameters.

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

Parameters3/5

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

Schema coverage is 50% across 14 parameters. The description clarifies that x/y is the top-left corner and that fillColor "none" leaves it unfilled, but the schema already documents both of those. Undocumented parameters (width, height, lineType, rotation, fillStyle, lineWidth, cornerRadius) get no help from the description.

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 ("Draw a rectangle on the schematic sheet") and immediately frames its role as section dividers/grouping boxes, which cleanly separates it from the sibling add_circle, add_polygon, and add_text tools.

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 clear usage context (organizing a busy schematic into labeled functional blocks) and an explicit pairing instruction with add_text for the title. It stops short of stating when to prefer a rectangle over a polygon or circle, but the grouping-box framing makes the intent unambiguous.

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