Skip to main content
Glama
mayjack0312
by mayjack0312

eda_pcb_primitive_attribute_get_all_primitive_id

Retrieve all primitive IDs that have attributes in the active PCB document, enabling targeted inspection or modification of attributed design objects.

Instructions

pcb_PrimitiveAttribute.getAllPrimitiveId(parentPrimitiveId?: string, layer?: TPCB_LayersOfImage, primitiveLock?: boolean) -> Promise<Array> 获取所有属性的图元 ID returns: 属性的图元 ID 数组

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.5/5.0
Behavior2/5

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

No annotations are present, so the description carries the full burden. It states the return type and a brief returns note, but does not disclose whether the operation is read-only, any side effects, authentication needs, or error conditions. For a getter, read-only is implied but not stated, and nothing beyond the signature is revealed.

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

Conciseness2/5

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

The description is brief but poorly structured. It leads with the full function signature, then a Chinese phrase that repeats the purpose, then a returns line. The purpose is not front-loaded for English readers, and the inclusion of both signature and redundant Chinese sentence wastes space. It is not efficiently organized.

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?

Given the tool has three parameters, no annotations, and no output schema, the description is incomplete. It does not explain the parameters' semantics, when to use them, or any prerequisites. An agent cannot reliably construct the args array without understanding what parentPrimitiveId, layer, and primitiveLock mean and how they filter results.

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

Parameters2/5

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

The description lists parameter names and types in the signature (parentPrimitiveId, layer, primitiveLock) but provides no explanation of their meanings, defaults, or how they affect results. The schema only documents args and windowId generically, so the description is the sole source for parameter semantics, yet it offers no added meaning beyond the names.

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 includes the function signature and a Chinese phrase '获取所有属性的图元 ID' meaning 'get the primitive IDs of all attributes'. The verb+resource is clear: it retrieves primitive IDs for attribute primitives. The name itself distinguishes it from sibling get_all_primitive_id tools for other primitive types, and the description reinforces the attribute scope, so it is specific enough.

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. It does not mention filtering scenarios, when the optional parameters should be supplied, or when to prefer this over the generic get_all or other get_all_primitive_id tools. The agent is left to infer usage from the name and 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