Skip to main content
Glama

export_gerbers

Exports PCB fabrication data as Gerber X2 layers and Excellon PTH/NPTH drill files into a project output directory for manufacturing.

Instructions

Export PCB fabrication data: Gerber X2 layers (copper, mask, silkscreen, paste, outline) AND Excellon drill files (PTH/NPTH), into gerber//.

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>"
    },
    "name": "export_gerbers"
  }
}

Input Schema

NameRequiredDescriptionDefault
boardNoBoard name, UUID or index; default: first
output_dirNoOutput directory inside a configured root; default: <project>/output/mcp
project_pathYesPath to the project's *.lpp file or its directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and notably idempotentHint=false, so the safety profile is partly supplied. The description adds real value by stating exactly which artifacts are produced and the destination layout (gerber/<board>/), but it omits what an agent most needs for a non-idempotent file-writing tool: whether existing files are overwritten, whether the board must be open, and what is returned. It also does not reconcile the stated gerber/<board>/ destination with the schema's stated default of <project>/output/mcp.

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 dense sentence, front-loaded with the verb and the payload, with the parenthetical layer list earning its space by telling the agent what will appear in the output. No filler or repeated framing.

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 non-destructive but non-idempotent file-generating tool with no output schema, the description covers the what and where adequately. It stops short on overwrite semantics, return values, and whether a project must be open first, which are the remaining gaps an agent would need for safe repeated invocation.

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 board, output_dir, and project_path are already documented with defaults, which sets the baseline at 3. The description only echoes the output location behavior and does not clarify how output_dir interacts with the gerber/<board>/ path it advertises, leaving a small ambiguity rather than adding meaning.

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?

Names a specific verb (export) and a precise resource: Gerber X2 layers plus Excellon drill files, enumerating the layer types (copper, mask, silkscreen, paste, outline) and drill classes (PTH/NPTH). That specificity effectively separates it from PDF-oriented siblings like export_board_pdf, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance, no prerequisites (e.g., that the project/board must be loaded or that a board name is needed to pick among multiple boards), and no mention of alternatives such as export_board_pdf or export_project. The agent must infer that this is the fabrication-data export step on its own.

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