Skip to main content
Glama

create_project_library

Make a new, empty library and add it to the project library table, as "New Library" of the symbol editor and of the footprint editor of KiCad 10 does.

Instructions

Make a new, empty library and add it to the project library table, as "New Library" of the symbol editor and of the footprint editor of KiCad 10 does.

A symbol library is a .kicad_sym file with no symbols, in the format of KiCad 10.0. A footprint library is an empty .pretty folder. The new row has the nickname name, the type KiCad, and a URI with a path variable of KiCad or ${KIPRJMOD} when one holds the library. The tool does not replace a library that exists. KiCad must not have the project open: KiCad reads the project tables only when it opens the project. 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>",
      "kind": "<kind>",
      "name": "<name>"
    },
    "name": "create_project_library"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes"symbol" or "footprint".
nameYesThe name of the library: the file name with no extension, and the nickname in the table.
folderNoThe folder of the new library: an absolute path, or a path relative to the project folder. Default: the project folder.
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

A3.8/5.0
Behavior4/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 well: it discloses the side effects (creates a file/folder plus a table row), the exact row contents (nickname, type KiCad, URI with a path variable), and the external prerequisite that KiCad must be closed. It stops short of saying whether an existing library causes an error or a silent no-op, which is the main behavioral ambiguity for a write tool.

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?

Purpose is front-loaded and each subsequent sentence carries information (file format, table row shape, non-replacement, KiCad version/open-file prerequisites). The opening comparison to KiCad 10's "New Library" dialog is awkwardly worded and slightly redundant with the later format statements, but nothing is padded.

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?

The tool creates files and mutates a project table, and the description covers format, location semantics, prerequisites, and non-destructive guarantees; an output schema exists so return values need no explanation. The one gap is the failure mode when the named library already exists, which matters for an agent deciding whether to retry or pick another tool.

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 already 100%, so the baseline is 3, but the description adds real meaning: name doubles as both the file name without extension and the table nickname, and folder may be absolute or project-relative (the schema says this too). The explanation of the resulting URI/path-variable ties the parameters to the outcome rather than restating them.

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 description gives a specific verb and resource: it makes a new, empty library file (.kicad_sym or .pretty folder) and inserts a row into the project library table. It distinguishes itself from a plain table-insert by emphasizing the library must be new ("does not replace a library that exists"), though it never names a sibling tool such as add_library_to_table or create_kicad_project directly.

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?

Usage conditions are stated strongly (project must not be open in KiCad, installed KiCad must be 10.0, existing libraries are not replaced), which tells the agent when the call is valid. However, there is no explicit routing guidance naming an alternative when, for example, the library already exists or when the agent should use a table-only tool instead.

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