Skip to main content
Glama
mayjack0312
by mayjack0312

eda_sch_primitive_object_modify

Modify binary embedded object properties in schematics: content, coordinates, size, rotation, mirror. Returns updated primitive or undefined if modification fails.

Instructions

sch_PrimitiveObject.modify(primitiveId: string | ISCH_PrimitiveObject, property: { content?: File | string; startX?: number; startY?: number; width?: number; height?: number; rotation?: number; mirror?: boolean; fileName?: string }) -> Promise<ISCH_PrimitiveObject | undefined> 修改二进制内嵌对象 returns: 二进制内嵌对象图元对象,undefined 表示修改失败

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNo按官方签名顺序排列的JSON参数数组
windowIdNo目标EDA窗口ID;省略时使用当前活动窗口

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior3/5

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

The description discloses the return type and that `undefined` indicates modification failure, which is useful. However, with no annotations present, it carries the full burden and does not mention side effects, whether the modification is reversible, or any required permissions/context (e.g., active document). It adds some behavioral context but is incomplete.

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 compact, presenting the signature and return semantics in a few lines. It is not bloated with unnecessary prose. The structure is a bit ad hoc (signature followed by Chinese notes) but still easily parseable.

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 description provides the core operation and parameters but omits contextual details such as the requirement of a schematic document, how to obtain a valid `primitiveId`, and the `windowId` parameter (present in schema but absent from description). There is no output schema, so the return behavior description is helpful but not fully complete.

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 description includes the full parameter list with types and optional flags, which goes well beyond the generic input schema (which only has an `args` array). It clarifies the shape of the `property` object. However, it does not explain the meaning of each field (e.g., startX, rotation), so some semantic ambiguity remains.

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 states the operation ('modify') and the resource ('二进制内嵌对象' / binary embedded object), so an agent can tell this is a modification tool for schematic primitive objects. It does not explicitly distinguish it from sibling modify tools (e.g., eda_sch_primitive_wire_modify), but the name and signature make the target clear.

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. There is no mention of prerequisites, such as needing a schematic document open or an existing primitive ID, nor any exclusion criteria compared to other primitive modify tools. The description is purely a function signature.

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