Skip to main content
Glama

pcb_place_via

Places a via at specified PCB coordinates with optional net, layer span, and pad/drill sizes in mils or millimetres, rejecting holes equal to pad size.

Instructions

Place a via at specific coordinates on the active PCB.

Sizes take fractions of a mil, or millimetres through size_mm and hole_size_mm, so a 1.2/0.6 mm via is exactly that and matches a metric Routing Via rule. Whole mils made it 1.194/0.610 mm. A hole as wide as the pad is refused.

Args: x: Via X position in mils y: Via Y position in mils net: Net name to assign (optional, empty = no net) size: Via pad diameter in mils (default 50) hole_size: Drill hole diameter in mils (default 28) low_layer: Start layer (default "TopLayer") high_layer: End layer (default "BottomLayer") size_mm: pad diameter in mm, used instead of size hole_size_mm: hole diameter in mm, used instead of hole_size

Returns: Dictionary with placed via position and size (mils)

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
netNo
sizeNo
size_mmNo
hole_sizeNo
low_layerNoTopLayer
high_layerNoBottomLayer
hole_size_mmNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

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 behavioral burden and does well: it explains unit handling (fractions of a mil vs millimetres), states that a hole as wide as the pad is refused, lists defaults, and describes the return. It omits permission requirements, undo behavior, and DRC implications, keeping it from a 5.

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?

The purpose is front-loaded, followed by a useful units caveat, then a structured Args list and Returns line. The first paragraph is slightly longer than necessary, but each sentence earns its place by preventing unit mistakes.

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?

Given 9 parameters, no annotations, and an output schema, the description is largely complete: it defines units, defaults, constraints, and the return shape. It does not cover permissions or sibling-tool selection, but the core invocation is well supported.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate fully, and it does. Every one of the 9 parameters is documented with meaning, units, defaults, and interaction (e.g., size_mm replaces size, hole_size_mm replaces hole_size, net optional empty = no net). This is exactly the semantic detail a caller needs.

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 clearly states the specific verb and resource: place a via at coordinates on the active PCB. It does not distinguish this tool from sibling tools like pcb_place_vias or pcb_place_via_array, which handle multiple vias, so it falls short of full sibling differentiation.

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?

Usage is implied by 'Place a via at specific coordinates,' but the description offers no explicit guidance on when to choose this single-via tool over pcb_place_vias, pcb_place_via_array, or pcb_place_stitching_vias. There are no exclusions or alternative-routing hints.

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

Deploy Server

Other Tools