Skip to main content
Glama

remove_component

Destructive

Delete a component and remove its symbols, attached wires, board devices, traces, and any unused nets from a LibrePCB project.

Instructions

Delete a component: its symbols and attached wires, its board devices and attached traces, and nets that become unused.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_path": "<project_path>",
      "component": "<component>"
    },
    "name": "remove_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
componentYesComponent designator (e.g. 'R1') or UUID
project_pathYesPath to the project's *.lpp file or its directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is covered; the description earns credit by going beyond that to disclose the exact blast radius (symbols, wires, board devices, traces, and nets left unused). It stops short of stating irreversibility/undo behavior or what happens when the designator does not resolve.

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?

A single sentence, front-loaded with the verb and resource, then a compact enumeration of consequences. No filler, no restatement of the name.

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 two-parameter destructive tool with no output schema, the essential unknown an agent needs, what else disappears, is answered thoroughly. The remaining gap is behavioral: permanence of deletion and error behavior on an unknown component.

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?

With two parameters and 100% schema description coverage, the schema already defines 'component' (designator or UUID) and 'project_path'. The description adds no parameter-level detail, but none is needed; the high coverage sets the baseline at 3, slightly raised because the cascade notes tell the agent what selecting a given component will affect.

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?

Uses a specific destructive verb ('Delete') on a specific resource ('a component'), then enumerates the cascade: symbols, attached wires, board devices, attached traces, and newly unused nets. An agent can immediately tell this apart from add_component, move_component, or set_component_value based on the description alone.

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 only implied: the cascade language makes clear this is full removal rather than editing, but there is no explicit when-to-use/when-not-to-use guidance, no mention of a precondition such as the component already existing, and no recovery alternative pointed to.

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