Skip to main content
Glama

Register a custom symbol

create_custom_symbol

Register a connectable schematic symbol for a part that is NOT in KiCad's libraries (search_kicad_symbol returned nothing). Use this for specialty ICs — LED-matrix drivers, niche sensors, etc. — INSTEAD of telling the synthesizer to model the part with discrete passives (which leaves every pin dangling and breaks the board). Provide the full datasheet pinout. The part then becomes available to the synthesizer as Part('custom', '') with the exact pin names you supply here, and is added to the Verified parts table. A part with three or more pins needs footprint= naming a real, in-library footprint for its package (search_kicad_footprint with the family and pin count, e.g. 'LGA-14'); the call is rejected without one, since a generated grid of pads cannot be assembled. List every pad of the footprint, NC pins included. When the package is not in KiCad's libraries, bring your own footprint instead: footprint_mod takes the whole .kicad_mod file as text (KiCad 6+, up to 1 MB; the CLI reads it with koppar custom-symbol --footprint-file). It is checked as a KiCad footprint, every pad must have a pin with that pad's number (and every pin a pad), and it is stored as 'custom:': the symbol uses it, and it goes on the board, into project.zip and into the fp-lib-table. footprint is then not needed. The name is used for file names: letters, digits and _ . + - (anything else becomes _). The symbol belongs to design_id.

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": {
      "design_id": "<design_id>",
      "name": "<name>",
      "pins": "<pins>"
    },
    "name": "create_custom_symbol"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesPart number, used as the symbol name (letters, digits, _ . + -).
pinsYesEvery pin from the datasheet.
datasheetNo
design_idYesThe design id returned by create_design or list_designs.
footprintNoA 'Library:Footprint' from search_kicad_footprint. Required for 3+ pins unless footprint_mod is given.
referenceNoReference prefix, e.g. 'U'.
descriptionNo
footprint_modNoYour own footprint: the full text of a .kicad_mod file, starting with '(footprint'. Its pad numbers must match the pin numbers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / datasheet / maxLength
      Removed value: -500
    • removedInput schema / properties / description / maxLength
      Removed value: -500
    • removedInput schema / properties / design_id / pattern
      Removed value: -"^[A-Za-z0-9_-]{8,80}$"
    • removedInput schema / properties / footprint / maxLength
      Removed value: -200
    • removedInput schema / properties / footprint / minLength
      Removed value: -1
    • removedInput schema / properties / footprint_mod / maxLength
      Removed value: -1000000
    • removedInput schema / properties / footprint_mod / minLength
      Removed value: -20
    • removedInput schema / properties / name / maxLength
      Removed value: -120
    • removedInput schema / properties / name / minLength
      Removed value: -1
    • removedInput schema / properties / pins / items / properties / name / maxLength
      Removed value: -60
    • removedInput schema / properties / pins / items / properties / number / maxLength
      Removed value: -10
    • removedInput schema / properties / pins / items / properties / type / maxLength
      Removed value: -20
    • removedInput schema / properties / pins / maxItems
      Removed value: -2000
    • removedInput schema / properties / pins / minItems
      Removed value: -1
    • removedInput schema / properties / reference / maxLength
      Removed value: -10
  2. Changed4 schema fields changed
    • changedInput schema / properties / footprint / description
      Previous value: -"A 'Library:Footprint' from search_kicad_footprint."New value: +"A 'Library:Footprint' from search_kicad_footprint. Required for 3+ pins unless footprint_mod is given."
    • addedInput schema / properties / footprint_mod
      Added value: +{
      +  "description": "Your own footprint: the full text of a .kicad_mod file, starting with '(footprint'. Its pad numbers must match the pin numbers.",
      +  "maxLength": 1000000,
      +  "minLength": 20,
      +  "type": "string"
      +}
    • changedInput schema / properties / name / description
      Previous value: -"Part number, used as the symbol name."New value: +"Part number, used as the symbol name (letters, digits, _ . + -)."
    • changedInput schema / required
      Previous value: -[
      -  "design_id",
      -  "name",
      -  "footprint",
      -  "pins"
      -]New value: +[
      +  "design_id",
      +  "name",
      +  "pins"
      +]
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations (which only declare non-read-only, non-destructive, non-open-world) by disclosing downstream effects: the part becomes Part('custom', '<name>') with the supplied pin names, is added to the Verified parts table, and belongs to design_id. It also discloses hard validation gates — rejection without a footprint for 3+ pins, pad/pin number cross-checking for footprint_mod, 1 MB / KiCad 6+ limits, and storage as 'custom:<name>' propagated into project.zip and the fp-lib-table.

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?

Front-loads the purpose and the alternative to avoid, then moves to requirements and the footprint_mod path in a logical order. It is dense but mostly earns its length; the footprint requirement is restated across two sentences ('the call is rejected without one' then 'footprint is then not needed'), which is mild redundancy rather than bloat.

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?

For an 8-parameter mutation tool with no output schema, the description covers inputs, validation, storage location, and downstream availability to the synthesizer. What it does not state is what the call returns (symbol id, name, or confirmation) or how partial pinout errors surface, which is the main remaining gap.

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?

With 75% schema coverage the baseline is 3, and the description exceeds it by explaining conditional requirements (footprint vs footprint_mod mutual exclusivity), the enforcement rule that every pad must have a matching pin number, the instruction to list NC pins, and name sanitization for file names. Minor repetition of schema-stated facts (name character set, footprint requirement) keeps it from a 5, and datasheet/description/reference still receive no description-level treatment.

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 ('Register a connectable schematic symbol') and immediately scopes it to parts that are NOT in KiCad's libraries, explicitly cross-referencing the sibling search_kicad_symbol. An agent can distinguish this from search_kicad_symbol and add_custom_footprint without opening a schema.

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?

Gives an explicit trigger condition ('search_kicad_symbol returned nothing'), an explicit anti-pattern to avoid ('INSTEAD of telling the synthesizer to model the part with discrete passives') with the failure mode explained (dangling pins, broken board), and concrete examples of the target case (LED-matrix drivers, niche sensors).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources