Skip to main content
Glama

Delete PCB items

pcb_delete

Delete PCB routing, vias, copper pours, components, or primitive IDs by net, designator, or explicit ID to clear selected design elements.

Instructions

Remove routing (all, or for given nets), vias, pours, components (designators), or explicit primitive ids.

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

Input Schema

NameRequiredDescriptionDefault
idsNo
poursNo
allRoutingNo
componentsNo
routingOfNetsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and it is thin. 'Remove' implies an irreversible destructive mutation, but nothing states whether a snapshot is required first, whether the change is undoable, or what happens when called with no arguments (all five parameters are optional). For a destructive edit tool this is a significant gap.

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?

A single tight sentence with the resource list front-loaded and no filler. It is information-dense but readable; nothing is wasted, though the parenthetical asides slightly clutter the reading flow.

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

Completeness2/5

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

A destructive, multi-mode tool with five optional parameters, no annotations, and no output schema demands more than one sentence. The definition leaves the caller unable to predict the result of an empty call or of overlapping flags, and gives no safety guidance, which is inadequate for the tool's complexity.

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 0%, so the description must compensate, and it does partially: 'all, or for given nets' maps to allRouting vs routingOfNets, 'components (designators)' maps to components, and 'explicit primitive ids' maps to ids. However it never explains the pour/boolean semantics of the pours flag, the format of ids, or the notability that all parameters default to false/absent.

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?

States a specific verb (Remove) with an enumerated list of deletable PCB resource types: routing, vias, pours, components, and primitive ids. This clearly separates it from sch_delete, which operates on schematics. It stops short of a 5 only because the phrasing is a dense noun list rather than a declarative purpose statement.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No indication of when to use this versus alternatives such as pcb_snapshot (to save state first) or pcb_copper/pcb_tracks for inspection. No prerequisites, no caveats about combining modes, and no warning that there is no undo. The agent is left to infer all routing decisions.

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