Skip to main content
Glama

Copper regions: pours, solid fills, keepouts (manual)

pcb_copper

Create copper pours, solid fills, or keepout regions on PCB layers to build power planes, current paths, thermal pads, and GND islands with exact mm coordinates.

Instructions

Lay out copper by hand — for power circuits, current paths, thermal areas and planes. All coordinates in mm. kind "pour": a copper pour (clears around other nets, refills automatically) on a net — e.g. a VIN/VOUT/SW island or a GND plane on an inner layer. kind "fill": a solid copper fill (does NOT clear other nets — keep it away from them) — for heat-sink pads and wide current paths. kind "keepout": a region with rules (no tracks / pours / fills / components). Shape: rect {x,y,width,height} (lower-left corner) or polygon [[x,y],…]. layer: top | bottom | inner1..inner4 | layer id. Pours are refilled after creation; priority: higher number = filled later (wins).

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": {
      "kind": "<kind>"
    },
    "name": "pcb_copper"
  }
}

Input Schema

NameRequiredDescriptionDefault
netNo
kindYes
nameNo
rectNo
layerNotop
polygonNo
priorityNo
fillStyleNosolid
keepoutRulesNotracks = no wires/tracks (and their vias)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/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 that pours refill automatically after creation, that fills do NOT clear other nets (a critical safety caveat), and that higher priority numbers fill later and win. It omits creation-side effects such as whether existing copper is replaced and any confirmation or permission requirements.

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 but organized: overall purpose first, then one clause per kind, then shape/layer/priority facts. Some sentences run long and pack multiple facts, but no sentence is filler.

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 9-parameter creation tool with no output schema and no annotations, the description covers the decision-critical parts (kind, net, geometry, layer, priority) but leaves fillStyle, cornerRadius, name, and part of keepoutRules undocumented in both schema and prose. An agent could construct most calls, but fills with non-default styles and nuanced keepouts remain underspecified.

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 only 11% across 9 parameters, so the description must compensate, and it explains kind semantics, net association, rect (lower-left corner) vs polygon shape, layer options, and priority ordering. It leaves name, fillStyle (solid/45grid/90grid), cornerRadius, and the keepoutRules values (including 'innerLayers') unexplained, which is a real gap for a fill or keepout call.

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 specific verb+resource ('Lay out copper by hand') and enumerates the three variants (pour/fill/keepout) with their distinct purposes. It distinguishes itself from automatic pouring only implicitly through 'by hand' and does not name the sibling pcb_pour, so an agent must infer the manual-vs-automatic boundary.

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 concrete use cases per kind: pour for VIN/VOUT/SW islands and GND planes, fill for heat-sink pads and wide current paths, keepout for rule-restricted regions. It does not state when to avoid this tool or redirect to alternatives like pcb_pour or pcb_delete, but the within-tool selection guidance is strong.

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