Skip to main content
Glama
sheares

easyeda-mcp-fix

by sheares

pcb_manage_rule_config

Destructive

Manage DRC rule configurations: retrieve, save, rename, delete, or set default configs for PCB documents. Reopen after changes for pour updates.

Instructions

Manage DRC rule configurations. Actions:

  • get_current_name: get current active config name

  • get_by_name: get config by name (configurationName)

  • get_all: get all configs (includeSystem optional)

  • save: save config (ruleConfiguration, configurationName; allowOverwrite optional)

  • rename: rename config (originalName, newName)

  • delete: delete config (configurationName)

  • get_default_name: get default config name

  • set_default: set as default (configurationName) Warning (upstream EDA bug, pro-api-sdk issue #34): saved rule changes read back correctly but do NOT affect pour reflow until the PCB document is closed and reopened. Reopen the document before rebuilding pours.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform
newNameNoNew name (for rename)
documentYesTarget document UUID — auto-switches to this document before executing. Get UUIDs from list_instances or editor_get_open_tabs.
instance_idNoTarget EasyEDA instance ID (8-char hex). Required when multiple instances are connected. Omit when only one instance is connected (auto-selected). Use list_instances to see connected instances.
originalNameNoCurrent name (for rename)
includeSystemNoInclude system configs (for get_all)
allowOverwriteNoAllow overwrite (for save)
configurationNameNoConfig name
ruleConfigurationNoRule config object (for save)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.5

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and non-idempotent, so the safety profile is covered. The description adds real value beyond them by disclosing an upstream EDA bug (pro-api-sdk #34) where saved rule changes read back correctly but do not affect pour reflow until document reopen — a behavioral caveat an agent could not get from structured fields.

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 action list is compact and front-loaded, one line per action with its parameters in parentheses. The final bug warning is long but earns its place because it changes how the agent should sequence save/reflow work. No filler sentences.

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 nine-parameter multi-mode tool with a nested, structurally undocumented ruleConfiguration object and no output schema, the definition covers action semantics and the reflow caveat but says nothing about what the get_* actions return or what shape a rule configuration must take for save. That gap matters most for the save action.

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 description coverage is 100%, so all nine parameters (including the action enum) are already documented in the schema, largely duplicating the description's '(configurationName)', '(for rename)', etc. The per-action grouping adds modest organizational value, but the nested ruleConfiguration object is described only as 'Rule config object' with an empty properties map, so the description does not compensate for that opacity.

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?

States a specific verb+resource (managing DRC rule configurations) and enumerates all eight actions with their inputs, which is far more informative than a generic 'manage' label. It does not, however, distinguish itself from nearby siblings like pcb_get_design_rules or pcb_manage_net_rules, leaving an agent to infer that 'rule configuration' is a stored config set rather than design/net rules.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The action-to-parameter mapping implicitly tells the agent how to invoke each mode, and the reopen warning implies a post-save workflow. But there is no explicit when-to-use guidance, no statement of when to prefer this over pcb_manage_net_rules or pcb_get_design_rules, and no prerequisites for destructive actions.

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