Skip to main content
Glama
mayjack0312
by mayjack0312

eda_sch_primitive_text_get

Retrieves a schematic text primitive by its ID from the active EDA window, returning the text element object or undefined if not found.

Instructions

sch_PrimitiveText.get(primitiveIds: string) -> Promise<ISCH_PrimitiveText | 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.2/5.0
Behavior3/5

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

With no annotations provided, the description carries the burden of behavioral disclosure. It usefully states that `undefined` indicates failure and that the return is a `Promise<ISCH_PrimitiveText | undefined>`, making the async and failure semantics explicit. However, it does not disclose whether the operation is strictly read-only, whether it can throw, or what happens with invalid or nonexistent IDs.

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, with a signature line, a short Chinese purpose phrase, and a return semantic. There is minimal redundancy and the key return/failure information is included, though the bilingual formatting adds slight clutter.

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?

For a simple getter, the return type and failure signal are stated, and no output schema exists to carry that information. But the description omits how the windowId/args interface works and gives no guidance on selecting this tool over closely related siblings, leaving the agent to resolve those gaps from the schema and context.

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 signature adds meaning by naming the argument `primitiveIds` and giving its type as `string`, which helps interpret the generic `args` array in the schema. However, it does not clarify how multiple IDs are represented or how `primitiveIds` maps into the `args` wrapper, and `windowId` is not mentioned in the description. Schema coverage is high, so a baseline of 3 is appropriate.

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 the operation via the signature `sch_PrimitiveText.get(primitiveIds: string)` and the Chinese phrase "获取文本", identifying it as a getter for schematic text primitives. It is distinguishable from `eda_sch_primitive_text_get_all` by the singular/plural scope implied by the name, though it does not explicitly differentiate itself from generic getters like `eda_sch_primitive_get_primitive_by_primitive_id`.

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 such as `eda_sch_primitive_text_get_all` or `eda_sch_primitive_get_primitive_by_primitive_id`. The description does not state prerequisites, target scenarios, or exclusions, so 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