Skip to main content
Glama
EasyEDA MCP

EasyEDA MCP

by junior941230

pcb_draw_polyline

Draws polylines on any PCB layer for silkscreen, mechanical, or documentation marks; board outlines require the dedicated board-outline tool.

Instructions

在任意層畫折線(絲印線條、機構層標記、文件層註記等;不含板框,板框請用 pcb_set_board_outline)。

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": {
      "layer": "<layer>",
      "points": "<points>"
    },
    "name": "pcb_draw_polyline"
  }
}

Input Schema

NameRequiredDescriptionDefault
netNo
layerYes
widthNomm
closedNo
pointsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a mutating tool, yet it says nothing about what actually gets created, whether the primitive is persistent/undoable, what happens on an invalid layer name, or whether a net association has side effects. It also omits any hint of the return value, despite there being no output schema. Only the layer-scope fact ('any layer') adds behavioral context.

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 front-loaded sentence: capability first, illustrative use cases in the parenthetical, then the carve-out and its alternative. No filler and nothing redundant with the schema.

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

Completeness2/5

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

This is a mutation tool with five parameters, no annotations, no output schema, and sparse schema descriptions, so the description needs to do more work than it does. It nails the purpose and the sibling routing but leaves the agent guessing about the closed/net parameters and about what comes back after the polyline is created.

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?

Schema description coverage is only 20% (width in mm, points as [x,y] mm), leaving net, layer, and closed undocumented. The description's 'any layer' phrase gives a hint that the layer parameter accepts arbitrary layer names or indices, but it does not clarify what 'net' does for a non-copper graphic, nor that 'closed' joins the last point back to the first.

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?

The description pairs a specific verb (draw a polyline) with a precise resource and scope ('on any layer'), then enumerates the intended uses (silkscreen lines, mechanical marks, documentation annotations). It also explicitly excludes board outlines and routes that case to pcb_set_board_outline, so an agent can distinguish this from the nearest sibling without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

When-to-use is stated through concrete use cases (silkscreen, mechanical, documentation layers), and when-not-to-use is stated explicitly with the named alternative: board outlines go to pcb_set_board_outline. That is the exact routing decision an agent needs before picking a drawing tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.