Skip to main content
Glama
mayjack0312
by mayjack0312

eda_pcb_primitive_arc_modify

Update an existing PCB arc primitive by changing its net, layer, coordinates, arc angle, line width, or lock state. Specify the arc ID and new values to apply modifications in the target EDA window.

Instructions

pcb_PrimitiveArc.modify(primitiveId: string | IPCB_PrimitiveArc, property: { net?: string; layer?: TPCB_LayersOfLine; startX?: number; startY?: number; endX?: number; endY?: number; arcAngle?: number; lineWidth?: number; interactiveMode?: EPCB_PrimitiveArcInteractiveMode; primitiveLock?: boolean }) -> Promise<IPCB_PrimitiveArc | 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?

Annotations are absent, so the description must carry the full behavioral disclosure burden. It discloses only the return type (Promise<IPCB_PrimitiveArc | undefined>) and the modifiable fields. It does not explain what happens if the primitiveId is invalid, whether changes are immediately reflected, whether the active document must be a PCB, or any side effects/reversibility concerns for this mutation operation.

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

Conciseness3/5

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

The description is compact and front-loads the full signature, which is informative. However, the Chinese phrase '修改圆弧线' simply repeats the action already evident in the name and signature, and 'returns: 圆弧线图元对象' duplicates the Promise return type already in the signature. Some redundancy and a code-dump structure rather than a curated human/agent-facing explanation.

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 complex modification tool with a property object of nine optional fields, no output schema, and no annotations, the description is incomplete. It does not explain how to map the signature onto the args array, what coordinates/units to use, how interactiveMode works, or what undefined means as a return. An agent would struggle to invoke this correctly without external API documentation.

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 only describes 'args' as an opaque JSON array and 'windowId', so the description's embedded TypeScript signature adds real meaning by naming the two actual parameters (primitiveId and property) and enumerating all property keys with their types (net, layer, startX, startY, endX, endY, arcAngle, lineWidth, interactiveMode, primitiveLock). This is significant value beyond the schema, though it still omits semantic details like units and enum value meanings.

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 action and resource: 'pcb_PrimitiveArc.modify' means modifying a PCB arc primitive, and the Chinese '修改圆弧线' reinforces this. It is unambiguous relative to sibling arc tools (create/delete/get) and other primitive modify tools because the resource is explicitly 'arc'. Missing an explicit contrasting statement, but the purpose is not vague or misleading.

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 alternatives. The description is a bare function signature plus a translation of the name; there is no mention of preconditions (e.g., primitive must already exist), no contrast with arc_create/arc_delete, and no indication of when one would choose modify over get or create. The agent must infer usage entirely from the name.

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