Skip to main content
Glama

pcb_doctor_pre_order

Runs pre-order acceptance checks that combine schematic and variant rule review with optional PCB sync, CPL, and Gerber ZIP completeness, returning a unified report with stage results.

Instructions

一键投板总检:合并原理图/变体多规则审查、可选 .epcb2 同步、可选贴片坐标 CPL 与可选 Gerber ZIP 归档完整度,返回统一 pcb-doctor/report/v2 报告(含 stages 分项)。

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>"
    },
    "name": "pcb_doctor_pre_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
groundNo地网络名称。GND
cpl_pathNo可选贴片坐标 CPL 文件路径。
pcb_nameNo可选 PCB 文档名称。
connectorNoUSB-C 受电接口位号。省略时按符号自动识别。
gerber_pathNo可选 Gerber ZIP 归档路径。
project_pathNo可选 .eprj3 工程路径。
evidence_pathYespcb-doctor/easyeda-assembly/v1 证据 JSON 路径。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.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. It usefully discloses the composite staged structure and names the output artifact ('pcb-doctor/report/v2 报告(含 stages 分项)'). But it mentions an optional '.epcb2 同步' step without saying whether that mutates the project file on disk, whether it is reversible, or what permissions it needs — a serious gap for what appears to be a potential write operation. Cost/runtime for a full Gerber+CPL check is also unstated.

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?

A single dense sentence with the headline purpose front-loaded and no wasted filler. It is information-dense rather than verbose, though the packed enumeration makes it slightly hard to scan.

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 7-parameter tool with no annotations and no output schema, the description does well to name the report version and stage breakdown, which partially substitutes for an output schema. It still leaves the mutation semantics of the sync step and the report's actual contents/stage outcomes unspecified, which an agent would need in order to use results correctly.

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 the schema already documents every parameter including ground, connector, and evidence_path. The description adds the meaningful notion that optional paths correspond to optional stages, but it never mentions the required evidence_path, the ground and connector parameters, or what formats the CPL/Gerber inputs must take.

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 gives a concrete verb+resource — a one-click pre-fab comprehensive check ('一键投板总检') — and enumerates exactly what it aggregates: schematic/variant rule review, optional .epcb2 sync, optional CPL, optional Gerber ZIP. This makes its composite nature distinguishable from narrower siblings such as pcb_doctor_pack_check or pcb_doctor_audit, though it never names those alternatives explicitly.

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 '一键' framing and the repeated '可选' markers imply this is the all-in-one entry point and that optional stages are toggled by supplying the corresponding paths. However, there is no explicit when-to-use/when-not guidance telling an agent to prefer a narrower sibling (e.g., pcb_doctor_pack_check) when only one check is needed, and no prerequisite information is stated.

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