Skip to main content
Glama

Auto-place footprints

auto_place

Pack footprints inside the board outline with Koppar's heuristic placer (ratsnest-driven, courtyard-legal). By default every unlocked footprint moves and locked ones stay; refs names exactly which move (all others stay). Constraints: fixed (exact origin positions and rotation, never moved; locked footprints likewise), side, keepouts (rectangles), groups, near (ref within maxMm of an anchor), edge (ref to "left|right|top|bottom", optionally "@mm" along that edge from the outline's top-left corner). Nothing is left past the outline except a USB/barrel/jack opening's 1.2 mm lip; placement_notes lists every part that could not be placed where asked. Coarse by design: refine the result with place_footprints.

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": {
      "design_id": "<design_id>"
    },
    "name": "auto_place"
  }
}

Input Schema

NameRequiredDescriptionDefault
edgeNoRef to the edge it sits on, optionally @mm: where along that edge its centre goes, from the outline's top-left corner (x on top/bottom, y on left/right).
nearNo
refsNoThe footprints that may move.
sideNo
fixedNo
shoveNoLegaliser: a part may take a spot held only by movable parts under this fraction of its area (default 0.3, 0 off).
groupsNo
placerNo"ml": the learned placer service (dense, two-sided when two_sided, honours keepouts); the packer when it is unavailable.
refineNo"anneal": refine the placement by simulated annealing from this seed (wirelength-driven, same edge/fixed/keepouts, holes held) — the ML placer's structure with the annealer's tightness.
wait_sNoSeconds to wait (default 55); a job still running comes back "running" for get_board_job.
grid_mmNoPlacement grid for the refine step (0.254 = 10 mil); default off.
keepoutsNo
bottom_okNoRefine: footprint-id substrings allowed on the back instead of bottom_any.
design_idYesThe design id returned by import_kicad_project or list_designs.
flip_costNoAnnealing price per bottom-side pad whose net has top pins (default 3).
two_sidedNoSmall two-pad passives go to the back side.
bottom_anyNoRefine: any SMD-only part may go to the back, priced by flip_cost (default with two_sided); LEDs, switches, displays and test points stay on top.
ic_halo_mmNoRefine: room kept around ICs with 48+ pads and fine-pitch ICs (default 1.5; other 16+ pad ICs get two thirds).
iterationsNoAnnealing iterations for refine (default 600000).
split_costNoRefine: price (mm of wirelength) of an SMD net with pads on both sides, i.e. a via.
hole_room_mmNoRefine: room kept around mounting holes, both sides (default 1).
bottom_excludeNoRefine: regex of refs or footprint ids that stay on top.
overlap_weightNoOverlap price per mm2 at the end of the anneal (default 400; 4000 halves what a dense draw leaves).
connector_room_mmNoRefine: room kept on the board side of every edge connector (default 2.5).
connector_flank_mmNoRefine: room kept on the flanks of every edge connector (default 1.0); sets the pitch of connectors sharing an edge.
bottom_max_height_mmNoRefine: tallest part allowed on the back (3D-model height, default 1.0).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / ic_halo_mm / description
      Previous value: -"Refine: room kept around ICs with 48+ pads (default 1.5; 16+ pads and fine pitch get two thirds)."New value: +"Refine: room kept around ICs with 48+ pads and fine-pitch ICs (default 1.5; other 16+ pad ICs get two thirds)."
  2. Changed20 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / bottom_exclude / maxLength
      Removed value: -200
    • removedInput schema / properties / bottom_ok / items / maxLength
      Removed value: -60
    • removedInput schema / properties / bottom_ok / maxItems
      Removed value: -50
    • removedInput schema / properties / design_id / pattern
      Removed value: -"^[A-Za-z0-9_-]{8,80}$"
    • removedInput schema / properties / edge / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / fixed / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / groups / items / properties / near / maxLength
      Removed value: -40
    • removedInput schema / properties / groups / items / properties / refs / items / maxLength
      Removed value: -40
    • removedInput schema / properties / groups / items / properties / refs / minItems
      Removed value: -2
    • removedInput schema / properties / groups / maxItems
      Removed value: -100
    • removedInput schema / properties / keepouts / items / properties / reason / maxLength
      Removed value: -200
    • removedInput schema / properties / keepouts / maxItems
      Removed value: -100
    • removedInput schema / properties / near / items / properties / anchor / maxLength
      Removed value: -40
    • removedInput schema / properties / near / items / properties / ref / maxLength
      Removed value: -40
    • removedInput schema / properties / near / maxItems
      Removed value: -1000
    • removedInput schema / properties / refs / items / maxLength
      Removed value: -40
    • removedInput schema / properties / refs / maxItems
      Removed value: -2000
    • removedInput schema / properties / side / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • changedInput schema / properties / wait_s / description
      Previous value: -"Seconds to wait for the job (default 55). A job still running comes back with status \"running\": follow it with get_board_job. A job is allowed the time its budget asks for (time_budget_s, total_budget_s, rounds), and survives a server restart (the op starts over from its snapshot; route_board's pipeline goes on from its last finished stage)."New value: +"Seconds to wait (default 55); a job still running comes back \"running\" for get_board_job."
  3. Changed1 schema field changed
    • changedInput schema / properties / wait_s / description
      Previous value: -"Seconds to wait for the job (default 55). A job still running comes back with status \"running\": follow it with get_board_job. A job is allowed the time its budget asks for (time_budget_s, total_budget_s, rounds), and survives a server restart (the op starts over from its snapshot)."New value: +"Seconds to wait for the job (default 55). A job still running comes back with status \"running\": follow it with get_board_job. A job is allowed the time its budget asks for (time_budget_s, total_budget_s, rounds), and survives a server restart (the op starts over from its snapshot; route_board's pipeline goes on from its last finished stage)."
  4. Changed1 schema field changed
    • changedInput schema / properties / wait_s / description
      Previous value: -"Seconds to wait for the job (default 55). A job still running comes back with status \"running\": follow it with get_board_job."New value: +"Seconds to wait for the job (default 55). A job still running comes back with status \"running\": follow it with get_board_job. A job is allowed the time its budget asks for (time_budget_s, total_budget_s, rounds), and survives a server restart (the op starts over from its snapshot)."
  5. Changed1 schema field changed
    • addedInput schema / properties / edge / description
      Added value: +"Ref to the edge it sits on, optionally @mm: where along that edge its centre goes, from the outline's top-left corner (x on top/bottom, y on left/right)."
  6. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false, so the description carries most of the weight and does so well: it explains that locked footprints never move, that nothing is pushed past the outline except a connector lip, and that placement_notes reports unplaceable parts. It stops short of saying whether prior placement is recoverable or how job/wait semantics work, which the schema covers separately.

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?

Front-loads purpose, then defaults, then the constraint vocabulary, then the hand-off to place_footprints, so the important material appears first. The constraint sentence is a dense run-on of parentheticals that takes effort to parse, but no sentence is genuinely wasted.

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?

For a 26-parameter mutating placement tool with no output schema, the description covers the behavioral essentials: what moves, what is pinned, spatial constraints, failure reporting, and the coarse-then-refine workflow. The refine/annealing knobs and the asynchronous 'running'/get_board_job path are left to the schema, which is acceptable given its coverage.

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?

With 81% schema coverage the baseline is 3, and the description earns more by explaining the constraint parameters in prose: fixed means exact origin and rotation and is never moved, near means within maxMm of an anchor, and edge accepts 'left|right|top|bottom' with an optional '@mm' offset from the outline's top-left corner. The many annealing/refine tuning parameters are left entirely to schema descriptions, which keeps it from a 5.

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?

States a specific verb and resource ('Pack footprints inside the board outline with Koppar's heuristic placer') and qualifies the algorithm as ratsnest-driven and courtyard-legal. It also distinguishes itself from the sibling place_footprints by declaring itself coarse and pointing to that tool for refinement.

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?

Explicitly frames the tool as the coarse first pass and names place_footprints as the refinement alternative, plus defines default behavior (all unlocked footprints move, locked stay) and how refs narrows that set. It does not spell out when this tool should be avoided altogether, but the usage context is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources