Skip to main content
Glama
mayjack0312
by mayjack0312

eda_lib_footprint_create

Create a new PCB footprint in an EasyEDA Pro library by providing a library UUID, footprint name, and optional classification or description. Returns the footprint UUID for use in further design steps.

Instructions

lib_Footprint.create(libraryUuid: string, footprintName: string, classification?: ILIB_ClassificationIndex | Array, description?: string, otherProperty?: Record<string, boolean | number | string | undefined>) -> Promise<string | undefined> 创建封装 returns: 封装 UUID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNo按官方签名顺序排列的JSON参数数组
windowIdNo目标EDA窗口ID;省略时使用当前活动窗口

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations are absent, so the description must convey behavioral traits. It indicates a create operation (mutation) but provides no details about side effects, permissions, reversibility, or what happens if the footprint name already exists. It mentions a return value (UUID) but nothing else about the operation's behavior.

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

Conciseness3/5

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

The description is concise (one line) but mixes English signature and Chinese text, making it less clear. The purpose is not front-loaded; it appears only in the Chinese phrase. It lacks a clear separation of purpose, parameters, and return value, though it is not verbose.

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?

For a tool with 5 parameters and no output schema, the description is incomplete. It provides the return type but does not explain what each parameter represents, the expected format of classification, or any constraints. It also does not mention that the library must exist or whether the operation can fail. The absence of annotations increases the burden, which is not met.

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?

The description includes the full function signature with parameter names and types, which adds meaning beyond the minimal schema (which only has args and windowId). However, it does not explain the meaning of classification, description, or otherProperty, leaving ambiguity about how to fill them. It partially compensates for the schema's lack of parameter detail.

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 clearly states the tool creates a footprint ('创建封装') and provides a function signature with parameter names. It distinguishes from siblings like eda_lib_footprint_modify and eda_lib_footprint_copy by the verb 'create'. However, the Chinese phrase is redundant with the tool name and the description does not explicitly mention the resource context (library).

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?

No guidance on when to use this tool versus alternatives. It does not mention prerequisites (e.g., needing a valid libraryUuid) or conditions that would favor create over modify/copy. The only usage context is implicit in the name.

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