Skip to main content
Glama

delete_library_footprint

Delete a footprint from a project library, as "Delete" of the library tree of the footprint editor of KiCad 10 does: KiCad removes the file of the footprint.

Instructions

Delete a footprint from a project library, as "Delete" of the library tree of the footprint editor of KiCad 10 does: KiCad removes the file of the footprint.

KiCad does not change the uses of the footprint, and neither does the tool: the answer gives as a warning the Footprint fields of the placed symbols (also of their variants) and of the symbols of the project symbol libraries, and the footprints of the board of the project, that have its library ID. The board keeps its copy of each footprint.

The library must be a footprint library of the project table, in the version of the installed KiCad (else: upgrade_project_libraries first). KiCad must not have the project open. The installed KiCad must be KiCad 10.0.

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>",
      "lib_id": "<lib_id>"
    },
    "name": "delete_library_footprint"
  }
}

Input Schema

NameRequiredDescriptionDefault
lib_idYesThe footprint, "<library>:<footprint>", of a library of the project table.
project_pathYesThe .kicad_pro file or the project folder.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations present, the description carries the full behavioral burden and does so well: it states exactly what is destroyed (the footprint's file), what is explicitly not changed (existing uses of the footprint), and what the caller gets back (warnings listing affected placed-symbol fields, variants, project symbol library symbols and board footprints). It also discloses the precondition that KiCad must be closed, which is essential for a destructive file operation.

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 and the paragraphs are organized logically: action, side effects/return, then preconditions. Some phrasing is wordy and repeats the file-removal idea, but nothing is genuinely wasted.

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?

An output schema exists, yet the description still usefully characterizes the warning content that comes back, and it covers the destructive nature, prerequisites, and side-effect boundary. For a two-parameter destructive tool, an agent has everything needed to invoke it correctly.

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 100%, so both parameters are already documented, including the "<library>:<footprint>" format for lib_id and the .kicad_pro/folder forms for project_path. The description adds constraint context (the library must be in the project table) but no additional syntax or edge-case detail, so the baseline of 3 applies.

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?

Opens with a specific verb and resource ("Delete a footprint from a project library") and anchors the semantics to KiCad's own editor action, which removes the footprint's file. That clearly separates it from symbol-side siblings like delete_library_symbol, though no sibling is named explicitly.

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?

Gives concrete preconditions: the library must be a footprint library in the project table, the installed KiCad must be 10.0, and the project must not be open in KiCad. It even routes the version-mismatch case to a named alternative ("upgrade_project_libraries first"), but offers no when-not-to-use guidance or alternative for removing footprints in other ways.

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