Skip to main content
Glama

Copper pour (e.g. GND plane)

pcb_pour

Adds a copper pour on top, bottom, or both layers for a specified net, fills it, and optionally places stitching vias or refills existing pours after edits.

Instructions

Add a copper pour covering the board (inset by margin) on top, bottom or both, for a net (default GND), then fill it. Optional stitching vias on a grid tie top & bottom pours together. rebuildOnly=true re-fills existing pours after changes.

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_pour"
  }
}

Input Schema

NameRequiredDescriptionDefault
netNoGND
fillNosolid
layersNoboth
marginNo
replaceNo
fixGroundNoafter filling, give every pad of this net that the pour cannot reach a short stub + via to the other layer
rebuildOnlyNojust re-fill existing pours (after moving parts/tracks)
stitchPitchNomm; add stitching vias on this grid where free

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden. It discloses that the pour is filled and that optional stitching vias tie the layers, but it never says that the default replace=true destroys/replaces existing pours, that fixGround adds stubs and vias to unreachable pads, or whether the operation is reversible or slow on large boards. For a board-mutating tool with zero annotation coverage, this is a significant omission.

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?

Three tight sentences, front-loaded with what is created, then optional vias, then the rebuild case. No filler. It is arguably over-compressed: the fill patterns and replace semantics are omitted rather than merely shortened.

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?

Given 8 parameters, 38% schema coverage, no annotations and no output schema, the description covers the core action and one usage mode but leaves the destructive default (replace), the fill styles, and any indication of what the call reports back unexplained. It is adequate to attempt a call but incomplete for a board-modifying operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 38% across 8 parameters. The description clarifies margin (inset), layers, net default, stitchPitch (via grid tying top and bottom) and rebuildOnly, which is real added meaning. But it says nothing about the fill enum (solid/45grid/90grid), the replace flag's effect, or fixGround beyond what the schema already states, leaving key parameters undocumented in both places.

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?

The description gives a specific verb+resource ('Add a copper pour covering the board') plus scope qualifiers: inset by margin, top/bottom/both, for a net (default GND), then filled. That is far more concrete than the title alone. It does not reference a sibling such as pcb_copper or pcb_tracks, so an agent cannot tell from the text when this is preferable to those tools.

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?

There is one genuine usage rule: 'rebuildOnly=true re-fills existing pours after changes', which tells the agent when to pick the rebuild path instead of a fresh pour. Nothing is said about prerequisites (existing board outline, DRC state) or when to choose pcb_copper/pcb_tracks instead, so guidance is implied rather than explicit.

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