Skip to main content
Glama

upgrade_project_libraries

Convert the libraries of the project tables to the file version of the installed KiCad 10, with kicad-cli (kicad-cli sym upgrade, kicad-cli fp upgrade).

Instructions

Convert the libraries of the project tables to the file version of the installed KiCad 10, with kicad-cli (kicad-cli sym upgrade, kicad-cli fp upgrade).

KiCad converts each library of an older version into a temporary folder. Then KiCad saves the result again: the bytes must not change, and the names of the symbols or the footprints must stay. Only then the tool writes the files of that library, all or none. The tool makes no backup: git gives the way back, and the output names a library that git cannot give back. A converted library cannot be read by an older KiCad. A library outside the project folder (other projects can use it) is converted only when libraries names it or include_outside is True. A library of a newer version, and a folder of symbol files, give an error. 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>"
    },
    "name": "upgrade_project_libraries"
  }
}

Input Schema

NameRequiredDescriptionDefault
librariesNoThe nicknames of the libraries to convert. Default: all libraries of the project tables.
project_pathYesThe .kicad_pro file or the project folder.
include_outsideNoTrue also converts the libraries outside the project folder.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses the all-or-none write semantics, the byte/name invariants verified via a temporary folder, the absence of any backup with git as the recovery path, the irreversibility of format (older KiCad cannot read the result), and the error cases. This is exactly the mutation behavior an agent needs before calling.

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?

Dense but nearly every sentence adds operational information; the atomic-write and no-backup warnings are front-loaded after the purpose sentence. Some phrasing is awkward and run-on ('the output names a library that git cannot give back'), costing a little clarity.

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 so return values need not be spelled out, and the description still flags the one output consequence that matters (a library git cannot restore). Together with preconditions, atomicity, and error cases, nothing an agent needs to invoke this 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?

Schema coverage is 100%, so the baseline is 3; the description goes further by explaining the interaction between an outside-project library, `libraries` nicknames, and `include_outside=True`, which is real added meaning. Default behavior (all libraries of the project tables) is also restated in schema, so the gain is modest.

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 and resource ('Convert the libraries of the project tables to the file version of the installed KiCad 10') and even names the underlying commands (kicad-cli sym/fp upgrade). The operation is easy to tell apart from siblings like list_libraries or copy_symbol_to_library, 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 (KiCad must not have the project open, installed KiCad must be 10.0) and edge conditions under which a library is or is not converted (outside-folder libraries require `libraries` or include_outside; newer-version libraries and symbol folders raise errors). Missing is an explicit pointer to alternatives for when upgrading is not what the agent wants.

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