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.

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 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).
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 (default 1.5; 16+ pads and fine pitch 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 / 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)."
  2. 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)."
  3. 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)."
  4. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare a non-read-only, non-destructive, closed-world mutation, and the description adds real value on outcomes: nothing is left outside the outline except a 1.2 mm connector lip, and placement_notes reports every part that could not be placed as asked. It still does not disclose job/async behavior or what a placement actually changes, so it stops short of rich behavioral context.

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-loaded with the core action and engine, then a compact parenthetical constraint roll-up and the coarse-then-refine hand-off. Dense for 26 parameters but every clause is load-bearing; the nested edge/keepout parenthetical is slightly hard to scan.

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 placer with no output schema, the description covers what the tool changes, what constraints bind it, and what it returns (placement_notes, the 1.2 mm lip exception). Gaps remain around placer vs refine selection and async job return behavior, which only the schema hints at.

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 81%, so the baseline is 3; the description earns above that by pinning semantics for the constraint families — fixed (exact origin and rotation, never moved), locked footprints, side, keepout rectangles, groups, near-with-maxMm, and edge syntax with optional '@mm' measured from the outline's top-left. It does not touch the refine-specific weights, which the schema covers anyway.

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') and names the engine ('Koppar's heuristic placer, ratsnest-driven, courtyard-legal'). It explicitly positions itself as the coarse pass whose output should be refined with place_footprints, which distinguishes it from place_footprints and anneal_place.

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?

Explains the default selection behavior (all unlocked move, locked stay) and when refs overrides it, plus the 'coarse by design: refine with place_footprints' routing. It never explicitly excludes anneal_place or place_footprints from the initial-placement role, so the sibling boundary is only half-drawn.

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