Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Pcb Info

pcb_info

Read KiCad .kicad_pcb files without KiCad and extract board statistics, layers, nets, tracks, vias, footprints, zones, and parse issues; optionally validate results against kicad-cli.

Instructions

Read a KiCad board (.kicad_pcb, at most 50 MB) with the toolkit's own parser; KiCad is not needed. Returns values (mm and counts): track_length_total, track_count, via_count, footprint_count, net_count, copper_layers, zone_count, and board_width and board_height from the Edge.Cuts outline (centre lines); data: format version, layer names, nets with their pads/tracks/vias/length, footprints (reference, value, x/y in mm with y pointing DOWN, angle, side, pads), pad types and drills, tracks by layer (count, length, widths), vias (kinds, drills, sizes), zones (name, net, layers, outline area), parse_issues (damaged elements that were skipped) and ignored_elements. Files from KiCad 5 to 10 are read. Refuses a file that is not a KiCad board, is nested deeper than 64 levels, holds more than 1,000,000 elements, or has a coordinate beyond 10 m. Set check_with_kicad to compare its counts, outline and footprint positions with kicad-cli's own statistics and position file (needs kicad-cli).

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": {
      "board_path": "<board_path>"
    },
    "name": "pcb_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
board_pathYesPath to a .kicad_pcb file, at most 50 MB
max_listedNoHow many footprints, nets and zones to list in data (0 to 1000); counts are always complete
check_with_kicadNoTrue: also compare counts, outline and footprint positions with kicad-cli's own export (needs kicad-cli)

Output Schema

NameRequiredDescriptionDefault
okYes
dataNoNon-quantity payload (reports, listings)
errorNo
valueNoPrimary quantity result
valuesNoAll named quantity results (includes the primary)
warningsNo
artifactsNo
provenanceYesWhat produced the result and from which inputs.
review_statusNounreviewed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A4.4/5.0
Behavior5/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 so: it discloses refusal conditions (non-KiCad file, nesting deeper than 64 levels, over 1,000,000 elements, coordinates beyond 10 m), supported versions (KiCad 5–10), that damaged elements are skipped and reported via parse_issues, and that y points DOWN in footprint coordinates. It also warns that check_with_kicad requires kicad-cli to be installed.

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?

The critical scope statement is front-loaded and every clause carries real information, but it is a dense run-on with duplication of the 50 MB limit and a second explanation of check_with_kicad already covered by the schema. Slightly tightened wording would improve it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a parser with a rich output schema, the description still covers everything an agent needs to call it correctly: input format and size cap, refusal conditions, version support, coordinate convention, and what happens to malformed elements. Nothing material is left to inference.

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 all three parameters are already documented; the description's mention of the 50 MB limit and check_with_kicad largely restates the schema. It adds no extra detail on max_listed or on how the comparison behaves when kicad-cli is missing, so the baseline 3 applies.

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?

Opens with a specific verb and resource — read a KiCad board (.kicad_pcb) using the toolkit's own parser — and immediately states the scope constraint (at most 50 MB, KiCad not required). That makes it plainly the board-inspection tool rather than a checker (pcb_drc/pcb_erc) or converter (pcb_export).

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?

Usage context is clear: read a board to get counts, layers, nets, footprints and zones, and set check_with_kicad only when cross-validating against kicad-cli. It does not explicitly say when to prefer a sibling such as pcb_drc or pcb_export, so guidance is strong but lacks stated exclusions.

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

Deploy Server

Other Tools