Skip to main content
Glama
mayjack0312
by mayjack0312

eda_lib_classification_get_name_by_index

Get the primary and secondary classification names for a specified classification index in EasyEDA Pro. Resolves numeric index to human-readable category names.

Instructions

lib_Classification.getNameByIndex(classificationIndex: ILIB_ClassificationIndex) -> Promise<{ primaryClassificationName: string; secondaryClassificationName?: string | undefined } | undefined> 获取指定索引的分类的名称 deprecated: since EDA v3.2; dropped EDA v3.3 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

C2.9/5.0
Behavior3/5

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

With no annotations provided, the description carries the behavioral disclosure burden. It discloses deprecation (since v3.2, dropped in v3.3) and the return shape (primary/secondary names, possibly undefined) via the signature. However, it does not explicitly state whether the operation is read-only or describe error behavior beyond the undefined return type.

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

Conciseness2/5

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

The description mixes a signature line, Chinese explanatory text, and redundant deprecation markers ('deprecated: ...' and '[已弃用]'), and the 'returns' line repeats the return type already shown in the signature. It is brief but cluttered and not cleanly structured.

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 deprecated tool with no output schema and only a generic args array in the schema, the description omits the shape of ILIB_ClassificationIndex and fails to point the agent to an alternative tool. The deprecation status is clear, but invocation details and replacement guidance are missing, making it incomplete for reliable use.

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 description coverage is 100%, so the baseline is 3. The signature line adds meaning beyond the generic 'args' schema description by indicating that args should contain a classificationIndex of type ILIB_ClassificationIndex. However, the structure of ILIB_ClassificationIndex is not explained, and the schema's args array remains opaque.

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 identifies the operation: obtaining classification name(s) by index, with the exact method signature and Chinese description '获取指定索引的分类的名称'. The 'byIndex' focus in both name and description distinguishes it from siblings like eda_lib_classification_get_name_by_uuid, though it does not explicitly contrast with them.

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?

The description provides no guidance on when to use this tool versus alternatives such as get_name_by_uuid or get_index_by_name. The deprecation note implies it should not be used, but no replacement or alternative is suggested, and no conditions or prerequisites are given.

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