Skip to main content
Glama

ipc_select_items

Select items in the PCB editor of the running KiCad, by reference or by net.

Instructions

Select items in the PCB editor of the running KiCad, by reference or by net.

The selection is no change of the board: KiCad makes no undo step for it. The selection filter of the PCB editor does not apply: the API cannot read it.

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

Input Schema

NameRequiredDescriptionDefault
modeNo"replace" (clear the selection, then select the items), "add", "remove" (remove the items from the selection), or "clear" (no references and no nets).replace
netsNoThe net names, for example ["GND", "/SDA"]. They are case-sensitive. A net gives its tracks, arcs, vias and shapes: the item types of "Select All Tracks in Net" of KiCad.
board_pathYesThe path of the .kicad_pcb file that is open in the PCB editor.
referencesNoThe references of footprints, for example ["R1", "U3"]. They are case-sensitive.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose two non-obvious traits: the selection creates no undo step and is not a board change, and the editor's selection filter is unreadable by the API so its filtering cannot be honored. It still leaves out failure behavior (e.g., what happens if board_path is not the file currently open) and whether a successful call returns anything meaningful.

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?

Three short sentences, front-loaded with the purpose and followed by the two caveats that matter most. Nothing is repeated from the schema or padding the text.

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 no explanation, and the four parameters are fully described in the schema; the description covers the mutation-free nature of selection. The remaining gap is precondition and error handling around board_path and what happens when no nets/references are supplied with a non-clear mode.

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 mode, nets, references, and board_path are already documented, including examples and case-sensitivity. The description adds only the high-level "by reference or by net" framing, which roughly maps to the net and reference parameters without adding syntax or edge-case detail beyond the schema.

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?

States a concrete verb and resource ("Select items in the PCB editor of the running KiCad") plus the two selection mechanisms (by reference or by net), which is enough to picture the operation. It does not distinguish itself from the sibling ipc_get_selection, so an agent must infer that this one writes selection state while that one reads it.

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 only implied through "the running KiCad" and "the PCB editor," which hints that a live KiCad session with an open board is a prerequisite. There is no explicit when-to-use/when-not guidance and no named alternative for reading the existing selection instead of setting it.

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