Skip to main content
Glama

Auto-place components

pcb_auto_place

Automatically places PCB components inside the board outline by minimizing weighted wire length without overlaps, then pulls connectors to edges and keeps fixed parts locked.

Instructions

Automatic placement inside the board outline: big parts first, every part placed to minimise weighted wire length (decoupling caps and series parts end up next to their IC pins; GND/power nets weigh little), no overlaps, then simulated annealing. Keep parts fixed with fixed (or lock them). Connectors (J*, USB*, CN*, or listed in edge) are pulled to board edges. Review with pcb_snapshot, then fine-tune with pcb_place.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pcb_auto_place"
  }
}

Input Schema

NameRequiredDescriptionDefault
edgeNo
onlyNoplace only these; everything else is fixed
fixedNo
dryRunNo
rotateNo
spacingNomm between part bodies
iterationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/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 well: it discloses placement order, the optimization objective and weighting (decoupling caps near IC pins, GND/power nets weigh little), the no-overlap guarantee, annealing, and that connectors are pulled to edges. It stops short of stating whether existing placement is overwritten, whether the result is persisted/undoable, or how expensive `iterations` makes the run.

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?

Dense and front-loaded: the algorithm description comes first, then the workflow/control guidance. The parenthetical about decoupling caps and net weights is illustrative rather than essential, but it is short and earns its place by explaining the optimization's practical effect.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter, non-annotated, mutating optimization tool with no output schema, the description covers the algorithm and the review/fine-tune workflow but omits when to use dryRun, what iterations costs, and whether the current layout is destroyed. An agent would still need to guess on several control parameters.

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 only 29% over 7 parameters, so the description must compensate. It meaningfully expands `fixed` ('or lock them' — hinting at the editor's lock concept) and `edge` (tying it to connector detection via J*, USB*, CN* naming), but leaves dryRun, rotate, spacing, iterations and only completely unaddressed beyond the schema.

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 ('Automatic placement inside the board outline') and immediately characterizes the algorithm: big parts first, weighted wire length minimization, no overlaps, annealing. It also distinguishes itself from the sibling it is not — pcb_place is named as the fine-tuning tool.

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?

Gives a clear workflow: run this for bulk automatic placement, review with pcb_snapshot, then fine-tune with pcb_place. It also explains how to exclude parts from being moved via `fixed` and `only`. No explicit when-not-to-use case is stated, which keeps it from a 5.

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