Skip to main content
Glama

ipc_place_footprints

Place footprints on the board in the PCB editor of the running KiCad.

Instructions

Place footprints on the board in the PCB editor of the running KiCad.

KiCad does the change. One call is one undo step. The tool checks all placements first, and changes nothing when a check fails. The tool can only change the side: a change of the position, the rotation or the lock gives an error (the limits footprint_update_loses_data and footprint_move_children of ipc_status). A footprint that is not on F.Cu or B.Cu 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>",
      "placements": "<placements>",
      "flip_direction": "<flip_direction>"
    },
    "name": "ipc_place_footprints"
  }
}

Input Schema

NameRequiredDescriptionDefault
board_pathYesThe path of the .kicad_pcb file that is open in the PCB editor.
placementsYesFor each footprint: the reference, and the side ("top" or "bottom"). x_mm, y_mm, rotation_deg and locked give an error.
flip_directionYesThe flip of a footprint to the other side: "left_right" (around the Y axis) or "top_bottom" (around the X axis). KiCad flips around the position of the footprint. The API cannot read the flip direction of the PCB editor (Editing Options): when the user did not give the direction, ask the user.
override_locksNoFlip also a locked footprint, as the PCB editor does with "Override locks". With false, a locked footprint that must change its side gives an error.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and does so well: one call equals one undo step, all placements are validated before any change, failures are atomic, position/rotation/lock changes error out due to specific status limits, and footprints off F.Cu or B.Cu are rejected. It also discloses the lock-override behavior and that the API cannot read the editor's flip direction, so the user must be asked. This is unusually rich behavioral context for a mutation tool.

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 description is front-loaded with the purpose, then moves into atomicity, validation, side-only restriction, and flip-direction guidance. It is generally efficient, though a few points repeat schema information and the phrase 'KiCad does the change' is less informative than the surrounding sentences. It is appropriately sized for a mutation tool with no annotations.

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 complex mutation tool with no annotations and an output schema, the description covers the critical behavior an agent needs: atomic undo, validate-before-write, side-only changes, error conditions, lock override behavior, and the need to ask the user for flip direction. Return-value details are omitted, but an output schema is present, so that is appropriate. Nothing essential for correct invocation appears missing.

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 description coverage is already 100%, so the baseline is 3. The description still adds meaningful semantics by clarifying that the placements array should really only supply reference and side, and that x_mm, y_mm, rotation_deg, and locked will error rather than perform the requested changes. It also ties those restrictions to the footprint_update_loses_data and footprint_move_children limits, which helps an agent understand why those parameters are effectively unusable.

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?

The description states a specific verb and resource: place footprints on the board in the KiCad PCB editor. It also scopes the operation to changing only the side, which prevents an agent from assuming arbitrary placement via x/y/rotation. It does not explicitly distinguish itself from sibling tools such as list_pcb_footprints or ipc_select_items.

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

Usage Guidelines3/5

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

Usage is implied by the purpose and the stated constraints: the tool checks all placements first, changes nothing on failure, and only side changes are accepted. However, it does not explicitly say when to use this tool versus list_pcb_footprints, ipc_get_selection, or other placement-related siblings. The instruction to ask the user for flip direction when unknown is useful guidance but not an alternative-selection rule.

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