Skip to main content
Glama
EasyEDA MCP

EasyEDA MCP

by junior941230

eda_call

Call any EasyEDA Pro API method by path to query or modify PCB data, primitives, layers, routing, and board state; supply arguments, optional fields, and timeout.

Instructions

直接呼叫任意 EasyEDA Pro API:eda.(...args)。注意單位是 EasyEDA 原生(PCB 為 mil,1 mm = 39.3701 mil),座標笛卡爾 Y 向上;多邊形參數傳 {"$polygon": [...]}(SVG 座標,Y 向下);要省略某參數傳 {"$undefined": true}。API 參考在 EasyEDA 安裝目錄 resources/app/assets/pro-api/*/api-types.d.ts。

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": {
      "path": "<path>"
    },
    "name": "eda_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNo
pathYes例如 "pcb_PrimitiveArc.create"、"pcb_Layer.getAllLayers"
fieldsNo只回傳這些 getState_ 欄位,例如 ["PrimitiveId","X","Y"]
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden, yet it never notes that arbitrary API calls can mutate or destroy board data, whether side effects occur, or how failures surface. It does add valuable domain facts about mil units, Y-up Cartesian coordinates, and the SVG Y-down polygon exception, plus where to find the API reference, but nothing about safety or effect profile.

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 core purpose is front-loaded in the first clause, and every following sentence adds a concrete gotcha an agent would otherwise get wrong. It is a dense single block of caveats rather than a structured list, which slightly hurts scannability but wastes no words.

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?

For a generic low-level escape hatch with no output schema and no annotations, the description appropriately points to api-types.d.ts as the authoritative reference rather than enumerating the API. However, it leaves the return shape of the wrapper itself, error behavior, and the timeout_ms parameter unexplained, so it is adequate but not complete.

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%: path and fields are documented in the schema, while args and timeout_ms are not. The description compensates well for args by explaining positional forwarding, native units, the {"$polygon": [...]} encoding, and the {"$undefined": true} omission trick, but it says nothing about timeout_ms, leaving one parameter undocumented everywhere.

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?

The description states a specific verb and resource: it directly invokes any EasyEDA Pro API as eda.<path>(...args), which is a clear escape-hatch purpose. It does not explicitly contrast itself with the many typed pcb_* siblings, so an agent must infer that this is the generic fallback rather than a specialized helper.

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

Usage Guidelines2/5

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

There is no statement about when to prefer this generic call over typed siblings like pcb_add_vias or pcb_modify_primitive, and no warning about when not to use it. The only implicit guidance is that it can call 'any' API, which is not a decision rule an agent can reliably apply.

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