Skip to main content
Glama
mayjack0312
by mayjack0312

eda_pcb_drc_overwrite_current_rule_configuration

Overwrite the active PCB design rule configuration with a custom rule set. Apply new DRC settings to the current EasyEDA Pro document, replacing existing rules.

Instructions

pcb_Drc.overwriteCurrentRuleConfiguration(ruleConfiguration: Record<string, any>) -> Promise 覆写当前设计规则配置 remarks: 将会覆写 PCB 当前的设计规则配置,请注意数据丢失风险 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

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does warn that the operation overwrites the current configuration with data-loss risk. It also exposes the Promise<boolean> return type, but it does not mention whether the previous configuration can be recovered, whether backup is needed, or what side effects may occur.

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

Conciseness5/5

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

The description is compact and well-structured, with the API signature first, then a concise Chinese summary, a warning remark, and the return meaning. Every line contributes useful information without padding.

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?

This is a destructive write tool with no annotations and no output schema, so it needs more context to be safely invokable. It lacks a way to construct ruleConfiguration, no backup/recovery guidance, and no explanation of how it differs from adjacent DRC configuration operations.

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?

Schema coverage is high, so the baseline is 3. The description adds the signature with ruleConfiguration: Record<string, any>, revealing the argument name and general type, but it provides no concrete fields or shape for a valid rule configuration, leaving the core parameter effectively opaque.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description identifies a specific action, overwriting the current PCB design rule configuration, using a clear verb and resource. It distinguishes itself from DRC siblings like get_current_rule_configuration, save_rule_configuration, and delete_rule_configuration by naming the target precisely.

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 given about when to use this tool versus alternatives such as save_rule_configuration, set_as_default_rule_configuration, or overwrite_net_rules. The description states what the tool does but provides no context, exclusions, or recommendation.

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