Skip to main content
Glama
mayjack0312
by mayjack0312

eda_sch_primitive_component_create_net_flag

Create a net flag (power, ground, or analog ground) on a schematic at specified coordinates to define net connectivity in EasyEDA Pro.

Instructions

sch_PrimitiveComponent.createNetFlag(identification: 'Power' | 'Ground' | 'AnalogGround' | 'ProtectGround', net: string, x: number, y: number, rotation?: number, mirror?: boolean) -> Promise<ISCH_PrimitiveComponent | 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

A3.8/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 burden. It does disclose that the operation returns a Promise resolving to a component primitive or undefined, implying a create action, but it does not mention side effects, prerequisites (e.g., active schematic document), coordinate units, or error conditions. This is a basic level of transparency.

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

Conciseness5/5

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

The description is a single line function signature plus two short phrases; every piece earns its place. It is compact, immediately readable, and avoids verbose prose.

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 function signature provides the parameter contract and return type, but contextual details like when a net flag is applicable, what coordinate system is used, or what happens on failure are absent. Given the lack of annotations and output schema, the description is only partially complete for an agent to invoke it confidently.

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

Parameters5/5

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

The schema only provides a generic JSON args array, while the description spells out all parameters (identification, net, x, y, rotation, mirror) with types, enums, and optional markers. This gives the agent complete semantic understanding beyond the schema.

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 it creates a net flag via the function name and the Chinese phrase '创建网络标识'. It also identifies the resource as a component primitive object in the return type, distinguishing it clearly from other primitive creation tools like wire, arc, or text.

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 given on when to use this tool versus alternatives such as creating a net label or other schematic primitives. The sibling list contains many create operations, but the description does not clarify the specific scenario for a net flag.

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