Skip to main content
Glama

pcb_doctor_pack_check

Validates a BOM/CPL production pack by checking evidence and placement coordinates, and optionally inspects the project PCB data, to catch assembly issues before ordering.

Instructions

核验 BOM/CPL 生产包。软调用 pcb_doctor.pack_check.check_production_pack。若提供 project_path,则再软调用 pcb_doctor.pcb_sync.inspect_project_pcb 取得 pcb_data。

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

Input Schema

NameRequiredDescriptionDefault
cpl_pathYesCPL / 贴片坐标文件路径。
pcb_nameNoPCB 文档名称。仅在提供 project_path 时传给 inspect_project_pcb。
project_pathNo可选 .eprj3 工程路径。提供时才读取 PCB 数据。
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?

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the internal two-step call chain and the conditional second call, which implies a non-mutating verification flow, but it says nothing about permissions, whether anything is written or cached, cost/latency, or what happens when verification fails.

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?

Three short sentences, front-loaded with the purpose before the implementation detail. The internal function names are arguably noise for an agent but remain compact and do not bury the main point.

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 four-parameter tool with no annotations and no output schema, the definition covers the input side adequately. It leaves gaps on the output side: what the verification result contains, how failures or missing evidence are reported, and what the pcb_data obtained via inspect_project_pcb is used for.

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 explains all four parameters, including that project_path is optional and triggers PCB data reading. The description's mention of project_path largely restates the schema rather than adding new meaning such as format expectations or interactions between pcb_name and project_path.

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+resource pair: verify (核验) the BOM/CPL production package, and it goes further by naming the underlying checks invoked. It is clear what the tool does, though it never contrasts itself with siblings such as pcb_doctor_audit or pcb_doctor_pack_fix_preview.

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?

Usage is implied rather than stated: the tool is for validating a production pack, and the description gives one concrete conditional (if project_path is supplied, PCB data is additionally read). There is no explicit when-to-use versus when-to-use-an-alternative guidance or any prerequisite/ordering advice.

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