Skip to main content
Glama

pcb_doctor_diff

Compares two assembly evidence or review reports and returns a structured diff of what changed.

Instructions

比较两份装配证据或审查报告,返回 pcb-doctor/diff/v1。

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": {
      "before_path": "<before_path>",
      "after_path": "<after_path>"
    },
    "name": "pcb_doctor_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
groundNo地网络名称。GND
connectorNoUSB-C 受电接口位号。省略时按符号自动识别。
after_pathYes修复后证据或 report/v2 JSON 路径。
before_pathYes修复前证据或 report/v2 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 burden. It does add one genuinely useful behavioral detail: the versioned output format pcb-doctor/diff/v1. However, it does not state that the operation is read-only, how it handles malformed or mismatched reports, or bounds on input size.

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 tight sentence with no wasted words. It is arguably too terse for a diff tool, but it is front-loaded and unambiguous.

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, read-only diff with no output schema, the description covers the essential purpose and the return format identity. It leaves gaps about input expectations (valid evidence or report/v2 structure, path existence) and about what the diff contains.

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%, and each of the four parameters is documented in the schema itself (before_path, after_path, ground, connector), so the baseline is 3. The description adds no further meaning, such as the file formats accepted or how the optional ground and connector parameters interact.

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 (compare) and a concrete resource (two sets of assembly evidence or review reports), plus the format of what it returns (pcb-doctor/diff/v1). An agent can distinguish it from siblings such as pcb_doctor_audit or pcb_doctor_report, though the description never explicitly contrasts them.

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 only implied: you use this tool when you have a 'before' and an 'after' artifact to compare. It states nothing about when not to use it, no prerequisites (e.g. that both paths must already exist), and no alternative tools for comparison-like needs.

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