Skip to main content
Glama
mayjack0312
by mayjack0312

eda_pcb_drc_set_as_default_rule_configuration

Set a named DRC rule configuration as the default for new PCB designs. Use this to enforce consistent design rules across all future boards.

Instructions

pcb_Drc.setAsDefaultRuleConfiguration(configurationName: string) -> Promise 设置为新建 PCB 默认设计规则配置 remarks: 返回值为结果导向,重复设置相同的设计规则为默认设计规则也将返回 true 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
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It does disclose an important behavior: '重复设置相同的设计规则为默认设计规则也将返回 true' (setting the same default again still returns true). However, it does not mention error cases, prerequisites such as the configuration existing, or whether it affects the current PCB, leaving meaningful gaps.

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 uses labeled sections (remarks, returns), but the purpose prose is only in Chinese while the signature is English, creating a bilingual split that may reduce clarity for English-only agents. The content is mostly necessary but could be more uniformly structured.

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 mutation tool with no annotations and no output schema, the description provides the return type and an idempotency remark, but it lacks essential context about the configurationName parameter—how it is passed and where it comes from. It also does not connect to related tools like get_all_rule_configurations, leaving an agent without enough guidance for a correct call.

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 input schema's args array is generic with no item-level descriptions, so the description's signature line adds value by revealing configurationName: string. However, it does not explain what the name refers to or how to obtain it. Since the schema's actual parameter semantics are thin, the description partially compensates but leaves ambiguity.

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 identifies a specific action: setAsDefaultRuleConfiguration, and the Chinese text '设置为新建 PCB 默认设计规则配置' clarifies that it marks a rule configuration as the default for new PCBs. This is specific enough to distinguish it from related DRC tools, though it does not explicitly name any sibling alternatives.

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?

There is no explicit guidance on when to use this tool versus alternatives like save_rule_configuration, overwrite_current_rule_configuration, or get_default_rule_configuration_name. The usage is only implied by the name and action; no exclusions or recommended contexts are provided.

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