Skip to main content
Glama

set_library_symbol_properties

Change the properties of a symbol of a project library, as the Symbol Properties dialog of the symbol editor of KiCad 10 does.

Instructions

Change the properties of a symbol of a project library, as the Symbol Properties dialog of the symbol editor of KiCad 10 does.

A field name that the symbol has gets the new text (a mandatory name in any case). A new name gives a new hidden field at (0, 0), with the text size of the symbol editor settings. A text of None removes a user field (the five mandatory fields cannot be removed). As in the dialog, a text that is a path to a file that exists ("/", "${", "./", "../") gets "file://" before it, the escapes ("{slash}") become characters, and the text of a mandatory field has no white space at its ends. The footprint filters replace the list (spaces become "_"). KiCad saves the library (kicad-cli), and a second save must give the same bytes. The library must be in the project table, in the version of the installed KiCad. 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": "set_library_symbol_properties"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNoThe field texts by name. None as a text removes the user field.
lib_idYesThe symbol, "<library>:<symbol>", of a library of the project table.
keywordsNoThe new keywords. None: no change. "" removes them.
project_pathYesThe .kicad_pro file or the project folder.
footprint_filtersNoThe new list of footprint filters. None: no change.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so thoroughly: it discloses that a new name creates a hidden field at (0,0), that None deletes a user field but never a mandatory one, that path-like text gets a 'file://' prefix, that escapes are decoded, that mandatory text is whitespace-trimmed, and that footprint filters replace the whole list with spaces mapped to underscores. It also discloses the persistence model (KiCad saves via kicad-cli, byte-identical on re-save) and the environment prerequisites, which is behavioral context no structured field provides.

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 paragraph is dense but front-loaded with the core action, and nearly every clause introduces new information. Some sentences are awkwardly compressed ('a second save must give the same bytes') and the guidance and edge-case rules are interleaved rather than grouped, which costs a little readability.

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?

Output schema exists, so return values need no explanation, and the definition covers the mutation semantics, edge cases, persistence behavior, and version/environment prerequisites for a 5-parameter tool. The one gap is what happens to unspecified properties (partial no-op vs. default), which the schema only implies for keywords and footprint_filters.

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, and the description meaningfully exceeds it by explaining what the fields map actually does (existing name → new text, new name → new hidden field, None → removal) and how footprint_filters replaces rather than appends. It still does not spell out the interaction between keywords and the description text or the exact accepted path forms beyond the four prefixes.

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?

The definition names a specific verb and resource ('Change the properties of a symbol of a project library') and anchors it to the KiCad 10 Symbol Properties dialog, so an agent knows exactly what it mutates. It does not, however, distinguish itself from close siblings such as set_symbol_fields or set_symbol_attributes, leaving the boundary ambiguous.

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?

The definition gives strong preconditions (library must be in the project table, KiCad must not have the project open, KiCad 10.0 must be installed), which tells an agent when the call will be valid. It never states when to choose this tool over set_symbol_fields or set_symbol_attributes, so alternative-selection guidance is only implied by the dialog analogy.

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