Skip to main content
Glama

lib_easyeda_import

Convert EasyEDA or LCSC parts into KiCad symbol/footprint files or an ordered Altium library plan, using online IDs or saved JSON for offline, reproducible conversion.

Instructions

Convert an EasyEDA / LCSC part to KiCad files or an Altium plan.

Independent implementation from EasyEDA's published format spec, so symbol and footprint geometry, pads, drills, silkscreen and metadata all convert without any third-party converter.

Source: lcsc_id fetches online (e.g. "C7420"), or payload_path reads a saved component JSON, which keeps the whole conversion offline and reproducible.

target="kicad": writes <name>.kicad_sym and <name>.kicad_mod into output_dir and returns their paths. With fetch_3d (default on) the part's 3D model is fetched and converted to <name>.wrl, which the footprint then references. Altium needs STEP and cannot use VRML, so this is KiCad only.

target="altium": returns an ORDERED PLAN of this server's own library tools (lib_create_symbol, lib_add_pins, lib_create_footprint, lib_add_footprint_pads, lib_link_footprint, ...) that recreates the part in schlib_path / pcblib_path. Nothing is written to Altium: review the plan, then execute the steps (tool_invoke drives them directly). Altium's binary library formats are never synthesized, the bridge authoring API is used instead.

target="inspect": parse only, return the component summary and warnings. Use this first on an unfamiliar part.

DATASHEET DISCIPLINE: an imported footprint is a vendor drawing, not ground truth. Audit it with lib_audit_footprint_vs_datasheet against the manufacturer land pattern before trusting it. Polygon pads and slotted holes have no faithful equivalent and are reported in warnings.

Returns: {"ok": ..., "component": {...}, "warnings": [...]} plus "files" (kicad) or "steps"/"summary" (altium).

Input Schema

NameRequiredDescriptionDefault
targetNoaltium
lcsc_idNo
fetch_3dNo
output_dirNo
pcblib_pathNo
schlib_pathNo
symbol_nameNo
payload_pathNo
footprint_nameNo
include_body_artNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does: it discloses that lcsc_id fetches online while payload_path is offline, that KiCad mode writes three files into output_dir, that Altium mode writes nothing and only produces a plan, and that polygon pads / slotted holes degrade and surface in warnings. These are exactly the side effects and limitations an agent must know.

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-loaded with the core purpose, then organized into labeled sections for source, KiCad, Altium, inspect and datasheet discipline, so it is scannable. It is long, and a couple of lines (e.g. the spec-implementation boast) could be trimmed without losing agent-relevant information.

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

Completeness5/5

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

For a 10-parameter, multi-mode conversion tool, the description covers inputs, per-target outcomes, side effects and the return shape (ok/component/warnings plus files or steps). With an output schema present, it does not need to re-document return structure and correctly only summarizes it.

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

Parameters4/5

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

Schema coverage is 0% for 10 parameters, so the description must compensate and largely does: it explains target values, lcsc_id vs payload_path as mutually exclusive sources, fetch_3d default and KiCad-only applicability, output_dir, and schlib_path/pcblib_path for Altium. It leaves symbol_name, footprint_name and include_body_art unexplained, which is the remaining gap.

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 opening line names a specific verb+resource pair (convert an EasyEDA/LCSC part) and immediately differentiates the three output modes. It is clearly distinguishable from siblings like lib_kicad_import, lib_easyeda_search and part_fetch.

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?

Explicit routing guidance per target: KiCad writes files, Altium returns an ordered plan to review and execute, inspect is recommended first for unfamiliar parts. It also names a follow-up tool (lib_audit_footprint_vs_datasheet) and the condition for using it, plus when 3D fetch is useless (Altium cannot use VRML).

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