Skip to main content
Glama

pcb_doctor_fix_preview

Previews .evar assembly repair plans without modifying the source project or writing patches, so you can validate fixes before a human applies them via CLI --approve.

Instructions

以 approve=false 且 verify=false 预览 .evar 装配修复。不修改源工程,也不把补丁写入输出目录。真正写盘只能由人工执行 CLI --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": {
      "project_path": "<project_path>",
      "plan_path": "<plan_path>",
      "out_dir": "<out_dir>"
    },
    "name": "pcb_doctor_fix_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
out_dirYes与源工程隔离的空目录或不存在的目录,仅用于前置条件校验。
plan_pathYespcb-doctor/repair-plan/v1 JSON 路径。
schematicNo原理图名称。省略时使用计划中的 schematic。
project_pathYes嘉立创 EDA .eprj3 工程索引路径。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the source project is not modified and no patches are written to the output directory, and that actual writes require a human CLI --approve. It does not describe what the preview returns or how out_dir precondition failure behaves, leaving some behavioral gaps.

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 mode and resource, then the non-destructiveness guarantee, then the escape hatch for real writes. No filler; every clause adds information.

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 preview tool with full schema coverage and no output schema, the description covers the critical safety semantics and the write-path restriction an agent needs before calling it. The main omission is what the preview output contains, but the structured fields carry most of the rest.

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 all four parameters, including out_dir's role as precondition-only validation. The description reinforces that nothing is written to the output directory but adds no syntax or format detail beyond the schema, so the baseline of 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?

States a specific verb (预览/preview) and resource (.evar 装配修复), plus the exact execution mode (approve=false, verify=false). An agent can immediately tell this is a dry-run preview, though it does not name the sibling pcb_doctor_pack_fix_preview or other alternatives to differentiate itself 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?

Usage is implied rather than spelled out: it is the preview step, and real disk writes must go through human CLI --approve, which signals when to use it. However, there is no explicit 'use this instead of X' routing or named alternative among the many pcb_doctor siblings.

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