Skip to main content
Glama

ipc_add_board_outline

Add the board outline: one closed polygon on Edge.Cuts of the board in the PCB editor, when the board has no Edge.Cuts shapes.

Instructions

Add the board outline: one closed polygon on Edge.Cuts of the board in the PCB editor, when the board has no Edge.Cuts shapes.

KiCad adds the outline in one undo step. A board that has Edge.Cuts shapes gives an error: the tools delete no items (KiCad 10.0.6 gives no result of a delete, limit delete_results); the user deletes the old outline in the PCB editor. Footprints can have Edge.Cuts shapes too: the tool does not count them. KiCad 10.0.6 must have the schematic editor closed (KiCad bug #24966). An outline that crosses itself, has the same point two times one after the other, or has no area gives an error.

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

Input Schema

NameRequiredDescriptionDefault
outlineYesThe corners of the outline in mm (3 or more points, the first point not again at the end).
board_pathYesThe path of the .kicad_pcb file that is open in the PCB editor.
line_width_mmNoThe line width. Default: the graphics defaults of the board for Edge.Cuts.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full load and does well on mutation semantics: a single undo step, no deletion of existing geometry on failure, and specific validation errors for self-intersection, repeated consecutive points, and zero area. However, it never says whether the board file is written to disk or whether a separate save (e.g. ipc_save_board) is required, which is a significant omission for a mutating PCB tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core capability and precondition are front-loaded, which is good. But the parenthetical 'KiCad 10.0.6 gives no result of a delete, limit delete_results' is implementation jargon that obscures rather than informs, and the bug-number reference adds length without actionable guidance.

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?

An output schema exists, so return values need not be explained, and the description covers preconditions, validation failures, and undo behavior for a fairly constrained tool. The main missing piece is persistence: nothing tells the agent whether the outline is saved automatically or requires a follow-up save call.

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%, so the schema already documents board_path, outline, and line_width_mm. The description adds validity constraints on the outline (no self-intersection, no duplicated consecutive points, non-zero area) beyond the schema's '3 or more points' note, but says nothing about board_path resolution or the line-width default, so it is marginally above the baseline.

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 names the exact artifact created ('one closed polygon on Edge.Cuts'), the editor it applies to, and the gating condition ('when the board has no Edge.Cuts shapes'). This clearly separates it from siblings like ipc_add_tracks or ipc_add_zone, which add different object types.

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?

It states an explicit precondition for use and describes the failure path when Edge.Cuts already exist: the tool errors and deletes nothing, so the user must remove the old outline in the PCB editor. It also clarifies that footprint Edge.Cuts shapes are not counted and that the schematic editor must be closed, though it does not name a sibling alternative or say when to re-run after deleting.

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