Skip to main content
Glama
Avinash1286

KiCAD MCP Server

by Avinash1286

Add Gnd Stitching Vias

add_gnd_stitching_vias
Destructive

Add ground stitching vias across PCB with collision checking on all copper layers, using grid, around components, and zone strategies. Preview with dry run before writing.

Instructions

Drop GND stitching vias across the board with collision checking against every non-GND segment, via, and pad on every copper layer (PTH vias penetrate the full stackup, so missing any one layer is the classic silent-short failure mode). Three combinable strategies: grid (regular grid across the interior), around_refs (densify around named ICs), and in_zones (only place vias inside an actual GND copper zone). Supports dryRun to preview placements without writing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dryRunNoIf true, return the placements that would be made but don't modify the board (default false).
gndNetNoName of the ground net (default: auto-detect GND / GROUND / VSS / /GND).
maxViasNoCap on total placements across all strategies (default unlimited).
spacingNoGrid spacing in mm for `grid` and `around_refs` strategies (default 5.0).
viaSizeNoVia pad diameter in mm (default 0.6).
viaDrillNoVia drill diameter in mm (default 0.3). Must be smaller than viaSize.
clearanceNoExtra clearance beyond required between each new via and existing copper, in mm (default 0.2).
edgeMarginNoKeep-out from the board edge in mm (default 0.5).
strategiesNoWhich placement strategies to combine (default: ['grid']). Pass ['grid', 'around_refs', 'in_zones'] for full coverage.
densifyRefsNoReference designators to densify ground around (used by `around_refs`). Targets: MCUs, switching regulators, RF parts.
densifyRadiusNoHow many grid cells around each ref to try (default 2 = 5x5 candidate field per ref).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

The description goes well beyond the annotations (which already mark it destructive) by explaining the collision-checking details, the PTH full-stackup penetration rationale, and the dryRun preview capability. It adds substantial behavioral context without contradicting the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, compact and dense with value. It front-loads the core purpose, then adds strategy and safety details without any wasted words.

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

Completeness5/5

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

The tool is complex (11 params, three strategies, collision checking), but the description covers the critical behavioral risks, strategy selection, and dryRun option. With a full input schema and an output schema present, it is sufficiently complete for an agent to understand the tool.

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 description coverage is 100%, so the schema fully documents all 11 parameters. The description adds minimal parameter-level detail beyond what the schema already provides, mainly mentioning strategy names and dryRun, which are also in 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?

The description opens with 'Drop GND stitching vias across the board', which is a specific verb+resource. It clearly distinguishes itself from single-via tools like add_via by describing multi-via stitching and strategies. The collision-checking emphasis reinforces its unique role.

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?

The description gives clear context about when to use it (stitching vias) and describes three combinable strategies and a dryRun mode, but it does not explicitly contrast with alternatives like add_via or state when not to use it. This is clear context without exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Avinash1286/KiCAD-MCP-Server-THEAVI'

If you have feedback or need assistance with the MCP directory API, please join our Discord server