Skip to main content
Glama

pcb_doctor_pack_fix_preview

Preview a read-only CPL cleaning plan that flags DNP leakage and non-BOM ghost references before any write; no source files or disk outputs are modified.

Instructions

以 approve=false 只读预览贴片坐标 CPL 清洗计划(移除 DNP 泄漏与非 BOM 幽灵位号)。绝不修改源 CPL 或写入磁盘;真正写出清洗后副本须由人工执行 CLI pack-fix --approve。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "evidence_path": "<evidence_path>",
      "cpl_path": "<cpl_path>",
      "out_path": "<out_path>"
    },
    "name": "pcb_doctor_pack_fix_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
cpl_pathYes源贴片坐标 CPL 文件路径。
out_pathYes拟输出的隔离 CPL 路径(仅用于路径安全校验,预览模式不写盘)。
pcb_nameNo可选 PCB 文档名称。
project_pathNo可选 .eprj3 工程路径。
evidence_pathYespcb-doctor/easyeda-assembly/v1 证据 JSON 路径。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden, and it does so well: it declares the tool is read-only, never mutates the source CPL, never writes to disk, and that out_path is used only for path-safety validation. It omits what the preview actually returns (plan structure, findings list), which keeps it from a 5.

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?

Two dense sentences: the first states the operation and its effect, the second states the safety guarantees and the escalation path. No filler, and the key read-only constraint is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no annotations and no output schema, the description covers mode, safety, and the human-approval boundary well. The remaining gap is the return content — an agent knows it will get a plan but not its shape or how to interpret findings.

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 100%, so all five parameters are already documented, including the note that out_path is not written in preview mode. The description reinforces the approve=false semantics but adds no format or validation details beyond the schema, so the baseline 3 applies.

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 names a specific verb and resource: a read-only preview of a CPL (placement coordinate) cleaning plan, and it spells out the two things the plan removes (DNP leakage and non-BOM ghost designators). It is clearly distinguishable from an actual write operation, though it does not name which sibling tool (for example pack_check) it complements.

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

Usage Guidelines4/5

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

It states the usage context (approve=false preview mode) and explicitly points to the alternative path for the real write: a human must run the CLI `pack-fix --approve`. It does not explain how to choose among the sibling MCP tools, so the guidance is clear but incomplete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.