Skip to main content
Glama

ipc_add_zone

Add a copper zone with a solid fill on one net and one copper layer of the board in the PCB editor.

Instructions

Add a copper zone with a solid fill on one net and one copper layer of the board in the PCB editor.

The API gives no default zone settings: the settings are required arguments. When the user did not give them, ask the user. KiCad adds the zone in one undo step, with no fill: fill it with ipc_refill_zones. KiCad checks no clearance: the answer tells the user to run DRC. 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>",
      "net": "<net>",
      "layer": "<layer>",
      "outline": "<outline>",
      "min_thickness_mm": "<min_thickness_mm>",
      "connection": "<connection>",
      "island_removal": "<island_removal>",
      "priority": "<priority>",
      "border_style": "<border_style>",
      "border_pitch_mm": "<border_pitch_mm>",
      "thermal_gap_mm": "<thermal_gap_mm>",
      "thermal_spoke_width_mm": "<thermal_spoke_width_mm>"
    },
    "name": "ipc_add_zone"
  }
}

Input Schema

NameRequiredDescriptionDefault
netYesThe name of the net, for example "GND" (case-sensitive).
nameNoThe name of the zone (optional, not the name of an other zone).
layerYesA copper layer of the board, for example F.Cu.
outlineYesThe corners of the zone outline in mm (3 or more points, the first point not again at the end).
priorityYesThe zone priority (0 or more).
board_pathYesThe path of the .kicad_pcb file that is open in the PCB editor.
connectionYesThe connection of pads: "thermal" (thermal reliefs), "solid", "none", or "thermal_pth" (thermal reliefs for through-hole pads only).
border_styleYesThe border of the zone in the editor: "solid", "hatched_edge" or "hatched_full".
clearance_mmNoAn own clearance of the zone, 0 to 100 mm: KiCad uses the larger of it and the current clearance of the netclass and the rules. Default: none (0), thus only the netclass and the rules apply.
island_removalYesRemove isolated islands of the fill: "always" or "never". (The mode with a minimum area is not possible: the API gives no unit for it.)
thermal_gap_mmYesThe thermal relief gap (KiCad keeps it also for a solid connection: a pad can have its own thermal connection).
border_pitch_mmYesThe pitch of the border hatch, 0.1 to 2 mm.
min_thickness_mmYesThe minimum width of the fill, 0.025 mm or more.
thermal_spoke_width_mmYesThe thermal spoke width, not smaller than min_thickness_mm.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so: it discloses that no zone settings have defaults, that the zone is created unfilled in a single undo step, that no clearance checking happens, that DRC is the user's responsibility, that the schematic editor must be closed on KiCad 10.0.6 due to a specific bug, and which outline geometries produce errors.

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?

Purpose is front-loaded in the first sentence, followed by a compact block of operational caveats, each one a distinct fact (required args, undo/no-fill, no clearance check, editor prerequisite, outline validity). No sentence is redundant or restates the schema.

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 14-parameter mutation tool with an output schema and no annotations, the description covers the prerequisites, side effects, follow-up step, validation failure modes, and the reason for the strict argument requirements. An agent has everything needed to invoke it correctly or to know it must ask the user first.

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, but the description adds real meaning by explaining why twelve of the fourteen arguments are mandatory (the API supplies no zone defaults) and by directing the agent to ask the user rather than invent values. It also clarifies that the zone is created unfilled despite the "solid fill" wording, which prevents a misread of the fill-related parameters.

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 opening sentence names a specific verb and resource ("Add a copper zone") and constrains it to one net, one copper layer, solid fill, and the PCB editor context. That is enough for an agent to distinguish it from siblings like ipc_refill_zones or ipc_add_board_outline without opening the schema.

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 gives a clear operating sequence: ask the user for the required settings when they were not supplied, then call ipc_refill_zones to fill the zone, then have the user run DRC. It also states the KiCad 10.0.6 prerequisite that the schematic editor be closed. It stops short of naming explicit alternatives or when-not-to-use conditions, so a 4 rather than a 5.

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