Skip to main content
Glama
Avinash1286

KiCAD MCP Server

by Avinash1286

Export Ipc2581

export_ipc2581
Destructive

Exports the PCB to IPC-2581 for CAD/MES interchange, including placement, nets, and BOM data. Map schematic fields to BOM columns for assembly imports.

Instructions

Export the PCB in IPC-2581 format via kicad-cli. Single-file MES/CAD interchange carrying placement, nets and BOM part data inline. The bomCol* params map schematic fields to the embedded BOM columns (e.g. internal P/N, manufacturer P/N) — useful for assembly/MES imports. Reads the last SAVED state of the .kicad_pcb.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unitsNoUnits (default mm)
versionNoIPC-2581 standard version (default 'C')
compressNoCompress the output
boardPathNoPath to the .kicad_pcb (default: current board)
bomColMfgNoSchematic field to use for the BOM Manufacturer column
defineVarNoProject variable overrides as 'KEY=VALUE' strings
precisionNoCoordinate precision (default 6)
bomColDistNoValue to insert into the BOM Distributor column
outputPathYesOutput .xml file path
bomColIntIdNoSchematic field to use for the BOM Internal Id column
bomColMfgPnNoSchematic field to use for the BOM Manufacturer Part Number column
bomColDistPnNoSchematic field to use for the BOM Distributor Part Number column
drawingSheetNoPath to a drawing sheet override

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already include destructiveHint=true and readOnlyHint=false, and the description adds an important behavioral trait: 'Reads the last SAVED state of the .kicad_pcb.' This warns that unsaved changes are not included, which annotations do not cover. The description does not contradict any annotation.

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?

The description is concise: two sentences. The first sentence states the core action and format; the second provides BOM parameter context and the saved-state caveat. There is no filler or redundant information; every sentence earns its place.

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?

Given the tool has 13 parameters, a required outputPath, complete schema coverage, an output schema, and annotations, the description adequately covers the essential aspects: purpose, format content, BOM mapping rationale, and the saved-state behavior. It does not need to list all parameters because the schema documents them precisely.

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 coverage is 100%, so the baseline is 3. The description adds extra meaning by grouping the bomCol* parameters: 'The bomCol* params map schematic fields to the embedded BOM columns (e.g. internal P/N, manufacturer P/N).' This provides combined context beyond each individual schema description, such as recognizing that bomColMfg and bomColMfgPn belong to a related set.

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?

The description states the action explicitly: 'Export the PCB in IPC-2581 format via kicad-cli.' It further clarifies the output is a single-file MES/CAD interchange carrying placement, nets, and BOM data inline, which distinguishes it from sibling export tools like export_gerber or export_bom. This is a specific verb+resource+format statement.

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?

The description implies the tool is intended for assembly/MES imports by saying 'useful for assembly/MES imports.' However, it does not explicitly name alternatives or state when not to use this tool compared to other export options. It provides clear context but lacks explicit exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Avinash1286/KiCAD-MCP-Server-THEAVI'

If you have feedback or need assistance with the MCP directory API, please join our Discord server