Skip to main content
Glama
mayjack0312
by mayjack0312

eda_sch_primitive_pin_create

Create a schematic pin at specified coordinates with number, name, rotation, length, color, shape, and type. Returns a pin primitive object for EasyEDA Pro circuit design.

Instructions

sch_PrimitivePin.create(x: number, y: number, pinNumber: string, pinName?: string, rotation?: number, pinLength?: number, pinColor?: string | null, pinShape?: ESCH_PrimitivePinShape, pinType?: ESCH_PrimitivePinType) -> Promise<ISCH_PrimitivePin | undefined> 创建引脚 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
Behavior2/5

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

With no annotations, the description carries full responsibility for behavioral disclosure. It only provides the return type (Promise<ISCH_PrimitivePin | undefined>) and a brief 'returns pin primitive object', but does not explain side effects (e.g., mutation of the schematic), error conditions, whether it can return undefined (and why), or any dependencies like active window/document. This is insufficient for a create operation.

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 short and to the point: a signature followed by a one-line purpose and return note. There is no redundant text or verbose explanation, making it efficient and easy to scan.

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?

The description lacks critical contextual details for a create operation: it does not mention that it operates on the current schematic document or requires a windowId (though the schema implies it), does not explain coordinate units or coordinate system, and only vaguely describes the return value. Given no output schema, the return should be more explicitly described. Overall, it is incomplete for an agent to call correctly without additional inference.

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 (x, y, pinNumber, etc.), which adds semantic meaning beyond the schema's opaque 'args' array description. However, it does not explain the meaning of each parameter (e.g., units for x/y, rotation degrees, pinShape enum values), so agents must infer details. The schema itself has 100% description coverage for the outer structure but not for the args content, so the description partially compensates.

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 it creates a pin (创建引脚) and includes the full function signature with parameter names, making the tool's action and resource unambiguous. It distinguishes itself from sibling create tools like eda_sch_primitive_arc_create by name and the specific sch_PrimitivePin.create signature, though it doesn't explicitly contrast with alternatives.

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 is provided on when to use this tool versus other pin operations (e.g., modify, delete) or other primitive creation tools. There is no mention of prerequisites like an open schematic document or whether this should be used only for creating new pins, leaving the agent to infer usage context.

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