Skip to main content
Glama

create_derived_symbol

Make a new symbol that extends a symbol of the same project library, as "Derive from existing symbol" of the symbol editor of KiCad 10 does.

Instructions

Make a new symbol that extends a symbol of the same project library, as "Derive from existing symbol" of the symbol editor of KiCad 10 does.

The new symbol has the units, the pins and the drawings of its parent (extends). Its mandatory fields are copies of the fields of the parent: the Footprint and the Datasheet are empty unless keep_footprint and keep_datasheet; the Value of a power symbol is the new name. With transfer_user_fields, the new symbol gets a copy of each user field of the parent (MPN, for example), with an empty text unless keep_user_field_content. The arguments have the defaults of the dialog of KiCad (the check boxes are off). KiCad 10.0 saves the keywords and the footprint filters of the parent into the new symbol (LIB_SYMBOL::GetKeyWords). Set the Value, the MPN and the other fields after this with set_library_symbol_properties.

The parent must be in a library of the project table, in the version of the installed KiCad: for a symbol of a global library, copy it first with copy_symbol_to_library. As the dialog, the tool writes the escapes of the name ("{colon}" for ":") and a space as "_". A name that the library has already is an error: the tool does not replace a symbol. 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>",
      "parent_lib_id": "<parent_lib_id>",
      "name": "<name>"
    },
    "name": "create_derived_symbol"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe name of the new symbol.
project_pathYesThe .kicad_pro file or the project folder.
parent_lib_idYesThe parent, "<library>:<symbol>", of a library of the project table. The new symbol goes into the same library.
keep_datasheetNoKeep the Datasheet of the parent ("Keep linked datasheet").
keep_footprintNoKeep the Footprint of the parent ("Keep linked footprint").
transfer_user_fieldsNoCopy the user fields of the parent ("Transfer user-defined fields").
keep_user_field_contentNoWith transfer_user_fields, keep their texts ("Keep content of user-defined fields").

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: it discloses what is inherited (units, pins, drawings, keywords, footprint filters), what is blanked by default, that the Value of a power symbol becomes the new name, that an existing name is an error and never replaced, name-escaping rules, and that the library is saved by kicad-cli.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and constraints are front-loaded, but the prose is dense and includes internal implementation noise ("LIB_SYMBOL::GetKeyWords", "a second save must give the same bytes") that an agent does not need to select or invoke the tool. It is readable but longer than necessary.

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 no explanation. Given the operation's complexity, the description covers inheritance rules, defaults, failure modes, prerequisites, and follow-up calls, leaving nothing essential for correct invocation unstated.

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 beyond it by explaining the dependency between transfer_user_fields and keep_user_field_content (copied user fields get empty text unless content is kept) and by tying the defaults to the KiCad dialog's unchecked boxes.

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?

States a specific verb and resource ("Make a new symbol that extends a symbol of the same project library") and anchors it to a familiar editor action ("Derive from existing symbol" of KiCad 10). It also differentiates from siblings by naming copy_symbol_to_library for global-library parents and set_library_symbol_properties for later field edits.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit prerequisites and routing: the parent must be in a library of the project table, so a global-library symbol must first be copied with copy_symbol_to_library; fields should be set afterwards with set_library_symbol_properties. It also states the hard constraints (KiCad 10.0 installed, project must not be open in KiCad).

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