Skip to main content
Glama
mayjack0312
by mayjack0312

eda_sch_primitive_pin_get_all_primitive_id

Retrieve every pin primitive ID in an EasyEDA Pro schematic, providing the identifiers needed to inspect or modify individual pins programmatically.

Instructions

sch_PrimitivePin.getAllPrimitiveId() -> Promise<Array> 获取所有引脚的图元 ID returns: 引脚的图元 ID 数组

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?

With no annotations, the description must disclose behavioral traits. It only states the return type and that it returns an array of pin primitive IDs. It does not explicitly say whether the operation is read-only, whether it depends on the active window or the provided windowId, or how it handles empty results. The name implies a getter, but the description itself does not disclose side-effect-free behavior or any limitations.

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 very brief, consisting of the function signature and a single line of Chinese explanation. It is not verbose and wastes no words. However, the brevity borders on under-specification, but for a simple getter it is acceptable. The structure is linear and front-loaded with the signature.

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?

Given the simplicity of the tool, the description is incomplete. It does not clarify that the args parameter should be an empty array, does not mention that it operates on the current schematic or the window specified by windowId, and does not state whether the returned IDs are strings (though the signature indicates Array<string>). It also omits any error handling or edge-case behavior. The description is too minimal to fully guide an agent.

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

Parameters2/5

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

The schema describes generic 'args' and 'windowId' parameters but does not explain what arguments this specific function expects. The description shows a function signature with empty parentheses, implying no arguments, but it does not explicitly state that the args array should be empty. It also does not explain how windowId relates to the function's operation. The description adds no semantic value beyond the schema's generic parameter descriptions.

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 explicitly states the verb (获取 = get) and resource (所有引脚的图元 ID = all primitive IDs of pins), making it clear this tool retrieves primitive IDs for pin primitives. It also shows the function signature and return type (Promise<Array<string>>). The name and description together unambiguously distinguish this from sibling get_all_primitive_id tools for other primitive types (arc, bus, circle, etc.).

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

Usage Guidelines1/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 the many sibling tools that also fetch primitive IDs for other primitive types. It does not mention any prerequisites, selection criteria, or exclusions. An agent has no information about when this tool is appropriate over alternatives.

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