Skip to main content
Glama

rename_library_symbol

Give a symbol of a project library an other name, as "Rename" of the library tree of the symbol editor of KiCad 10 does.

Instructions

Give a symbol of a project library an other name, as "Rename" of the library tree of the symbol editor of KiCad 10 does.

As the rename dialog, the tool removes the white space at the two ends of the name and writes the escapes of the name ("{colon}" for ":"). A space stays a space (not "_", as in create_derived_symbol). The Value gets the new name when it was equal to the old name. The symbols derived from the symbol extend the new name.

A name that the library has already is an error, also with an other case (KiCad compares the names with no difference of case): the tool does not replace a symbol. A change of only the case of the name of the symbol itself is not an error.

KiCad does not change the schematics that use the old name, and neither does the tool: the answer gives the placed symbols with the old lib_id as a warning.

The library must be a symbol library file of the project table, in the version of the installed KiCad (else: upgrade_project_libraries first). KiCad saves the library (kicad-cli), and a second save must give the same bytes. 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>",
      "new_name": "<new_name>"
    },
    "name": "rename_library_symbol"
  }
}

Input Schema

NameRequiredDescriptionDefault
lib_idYesThe symbol, "<library>:<symbol>", of a library of the project table.
new_nameYesThe new name.
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.7/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 in detail: name normalization (end whitespace removed, escapes written, space stays space), Value field propagation, derived symbols inheriting the new name, duplicate-name errors being case-insensitive, case-only self-renames being allowed, no replacement of existing symbols, schematics left unchanged, and a warning listing placed symbols with the old lib_id.

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?

Every sentence contributes a distinct fact: normalization, Value propagation, derived symbols, error cases, side effects, then environment prerequisites. Front-loading the rename semantics before the prerequisites is the right order, and no sentence is filler despite the length.

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?

For a mutation tool with no annotations, the definition covers side effects, error conditions, warning output, environmental prerequisites, and determinism ('a second save must give the same bytes'). An output schema exists, yet the description still usefully explains the warning payload, which is more than required.

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 baseline is 3, but the description adds genuine semantics beyond the schema: it defines how new_name is transformed before writing (trimming, escapes like '{colon}', spaces preserved) and what makes a name invalid. lib_id's format is already documented in the schema, so no extra credit there.

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 description gives a specific verb and resource (rename a symbol in a project library) and anchors it to the exact KiCad UI behavior ('as "Rename" of the library tree of the symbol editor of KiCad 10 does'). It also implicitly separates itself from rename_library_footprint and from create_derived_symbol by contrasting the space-handling rule.

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 states concrete preconditions: the library must be a project-table symbol library in the installed KiCad version, otherwise 'upgrade_project_libraries first', KiCad must not have the project open, and KiCad 10.0 is required. It does not explicitly contrast with siblings that might also alter a symbol's name (e.g. set_library_symbol_properties), so the alternative-selection guidance is clear but not exhaustive.

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