Skip to main content
Glama

pcb_doctor_report

Renders PCB evidence, report/v2 JSON, or --verify fix artifacts as an offline single-page HTML report for local review.

Instructions

把 evidence、report/v2 或 fix --verify 产物渲染为离线单页 HTML。会创建 HTML 父目录。拒绝未开启 --verify 的 fix 产物。

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": {
      "input_path": "<input_path>",
      "out_html_path": "<out_html_path>"
    },
    "name": "pcb_doctor_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
groundNo当输入是原始证据时使用的地网络名称。GND
connectorNo当输入是原始证据时使用的 USB-C 接口位号。
diff_pathNo可选 pcb-doctor/diff/v1 JSON 路径。
input_pathYes证据、report/v2 或 fix --verify 产物 JSON 路径。
out_html_pathYes要写入的 HTML 路径。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations the description must carry the behavioral burden, and it does disclose two useful side effects: it creates the HTML parent directory and rejects unverified fix artifacts. It is silent on overwrite behavior for an existing out_html_path, failure/exit behavior, and whether output is deterministic.

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?

Three short sentences, front-loaded with the render action, then side effects, then the rejection rule. Every sentence carries actionable information and nothing is padded.

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 file-producing tool with no output schema and no annotations, the description covers input validity, a filesystem side effect, and a rejection rule. It could still say what the returned value is or whether an existing HTML file is overwritten, but the essentials an agent needs to call it are present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 all five parameters; the description adds the accepted input variants for input_path but does not explain when ground/connector/diff_path are required or how they interact with raw-evidence input. That leaves it at baseline plus a small amount of extra meaning.

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?

Concrete verb (render) plus explicit accepted inputs (evidence, report/v2, fix --verify artifacts) and a concrete output (offline single-page HTML). No sibling tool renders HTML, so an agent can distinguish it on the description alone.

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?

States which input artifacts are valid and an explicit when-not rule: fix artifacts produced without --verify are rejected. It does not say when to prefer this over audit/diff siblings, but those do different things, so the gap is minor.

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