Skip to main content
Glama

audit_find_removed_pad_shapes

Detect pads and vias whose copper annular ring was removed on layers where it is still needed, flagging layer-instances that can cause silent PCB connection failures.

Instructions

Find pads / vias whose copper annular ring has been removed on layers where it's still needed.

Altium's "Tools → Remove Unused Pad Shapes" optimization deletes per-layer pad copper where a primitive isn't electrically used on that layer. Applied too aggressively, it leaves a via that drills through an inner layer with NO annular ring there: any later trace edit on that inner layer that tries to land on the via will silently fail to connect at fab.

Detection:

  • Vias: Via.SizeOnLayer(L) <= Via.HoleSize means no copper left, just the drilled hole.

  • Pads: Pad.IsPadRemoved(L) is True.

Pattern: brett's PadShapeRemoved.pas (read-only; we surface coordinates rather than highlight on canvas).

Returns: Dict with: - checked: total pads + vias inspected - violations: how many layer-instances are flagged (one via removed on 3 layers counts as 3) - items: per-violation {kind, designator, net, layer, at} where at is "(x,y)" mils.

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.6/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden and does: it declares the tool read-only, gives the exact detection predicates (Via.SizeOnLayer(L) <= Via.HoleSize, Pad.IsPadRemoved(L)), and explains that it returns coordinates rather than highlighting on canvas. An agent knows there are no mutations and how a violation is determined.

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?

Front-loaded with the core statement, then context, detection logic, and returns in clearly sectioned form. The 'Returns' block overlaps with the existing output schema, which is mild redundancy, but the remaining text is dense and earns its place.

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?

Zero-parameter read-only audit with an output schema; the description covers purpose, trigger condition, detection semantics, and the counting convention ('one via removed on 3 layers counts as 3'). Nothing an agent needs to invoke or interpret it correctly is missing.

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?

The tool takes zero parameters, so there is nothing to disambiguate and the baseline of 4 applies. The description correctly spends no space on nonexistent inputs.

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: 'Find pads / vias whose copper annular ring has been removed on layers where it's still needed.' This is precisely differentiated from adjacent audits (audit_find_pads_near_board_edge, audit_tented_via_ratio, pcb_normalize_vias) without needing the schema.

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?

Explains the real-world condition under which this matters (aggressive 'Remove Unused Pad Shapes' leaving a via with no annular ring, causing silent open traces at fab), which tells an agent exactly when to reach for it. It stops short of naming alternatives or explicit exclusions, so it is clear context rather than full when/when-not routing.

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