Skip to main content
Glama

pcb_delete_object

Deletes the nearest PCB object within 100 mils of specified X/Y coordinates on a layer, with optional object-type filtering for precise board cleanup.

Instructions

Delete a PCB object closest to specific coordinates on a layer.

Finds the nearest matching object within 100 mils of the given coordinates and removes it from the board. Distance is to the object itself: a track by its segment less half its width, an arc by its curve, a via by its centre less its radius, anything else by its bounding rectangle (0 inside it). A point anywhere on a track finds that track.

Args: x: Target X position in mils y: Target Y position in mils layer: PCB layer name (default "TopLayer") object_type: Type of object to delete. Options: "track" - Track segment "via" - Via "fill" - Copper fill "text" - Text string "pad" - Free pad "arc" - Arc "polygon" - Copper polygon pour "region" - Region / split-plane "component" - Placed component (for bulk/filter-based deletes use obj_delete)

Returns: Dictionary with deleted status, object_type, distance_mils, the deleted object's net and bbox_mils, and others_as_close: how many other objects were exactly as near, so a pick among equals is visible.

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
layerNoTopLayer
object_typeNotrack

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.4/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does meaningful work: it defines the exact proximity metric per object type (track segment less half width, via centre less radius, bounding rectangle otherwise) and explains the 'others_as_close' tie-count in the return. Gaps remain for a destructive tool with no annotation coverage — it never says whether the delete is undoable, whether it requires a selection/lock state, or what the 'deleted status' is when no candidate is found.

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 a one-sentence summary, then the matching semantics, then args, then returns — good ordering. It is somewhat long: the distance-metric paragraph is dense, and the Returns section restates what the output schema already declares, which is redundant given has_output_schema=true.

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?

For a 4-parameter destructive geometry operation with an output schema and no annotations, the definition covers selection semantics, parameter meanings, and the sibling alternative. The remaining gap is safety context — nothing about undo/reversibility or permission requirements for removing copper from a board.

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 description coverage is 0% (titles and types only), and the description fully compensates: units for x/y ('mils'), the meaning of layer and its default, and an explicit enumeration of all nine object_type values with a one-line gloss each. This is meaning the schema alone cannot convey.

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 opening line states a specific verb and resource plus the selection mechanism: 'Delete a PCB object closest to specific coordinates on a layer.' It is immediately distinguishable from siblings like obj_delete (bulk deletes) or pcb_unroute (net-based removal) because the selection model is proximity-based.

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?

It gives a concrete operational precondition (nearest match within 100 mils) and points to the alternative for bulk/filter-based work: 'for bulk/filter-based deletes use obj_delete'. However, that routing hint is buried in a parenthetical inside the parameter list rather than stated up front, and there is no guidance on what to do when nothing is within 100 mils.

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