Skip to main content
Glama
mayjack0312
by mayjack0312

eda_lib_device_modify

Update an existing device in an EasyEDA Pro library by changing its name, classification, symbol, footprint, 3D model, properties, and more. Pass null to clear specific attributes.

Instructions

lib_Device.modify(deviceUuid: string, libraryUuid: string, deviceName?: string, classification?: ILIB_ClassificationIndex | Array | null, association?: { symbolUuid?: string; symbol?: { uuid: string; libraryUuid: string }; footprintUuid?: string | null; footprint?: { uuid: string; libraryUuid: string } | null; model3D?: { uuid: string; libraryUuid: string } | null; imageData?: File | Blob | null }, description?: string | null, property?: { name?: string | null; designator?: string; addIntoBom?: boolean; addIntoPcb?: boolean; net?: string; manufacturer?: string | null; manufacturerId?: string | null; supplier?: string | null; supplierId?: string | null; otherProperty?: Record<string, boolean | number | string | undefined | null> }) -> Promise 修改器件 remarks: 如希望清除某些属性,则将其的值设置为 null returns: 操作是否成功

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose an important trait—setting attributes to null clears them—and states that the operation returns a boolean success flag. However, it does not mention permissions, side effects on library associations, or reversibility, which are significant for a mutation tool.

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 description is a dense TypeScript signature followed by three short labels, with no filler prose. It is compact and front-loaded, though the Chinese one-line summary mostly repeats what the name and signature already convey.

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?

The signature, null-clearing remark, and return type make the tool callable, and the args array order is documented. However, there is no example of constructing the args array, no explicit required-parameter statement despite deviceUuid and libraryUuid being non-optional in the signature, and no annotation safety profile—leaving nontrivial gaps for a nested modify operation.

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?

The input schema is generic (args array and windowId), so the full TypeScript signature in the description adds substantial value: exact parameter order, optionality, types, and nested object shapes. It still does not explain every field's meaning or clarify how types like File/Blob would be serialized into the JSON args array.

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 clearly states the action and resource: modifying a device in the EDA library ('lib_Device.modify', '修改器件'). This distinguishes it from sibling operations such as eda_lib_device_create, eda_lib_device_delete, and eda_lib_device_get.

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 explicit guidance about when to use this tool versus create/delete/copy, nor any stated prerequisites such as the device already existing. The only usage signal is the word 'modify' in the name and Chinese summary, which is implied rather than explained.

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