Skip to main content
Glama

Import a KiCad project

import_kicad_project

Bring an existing KiCad project in as a board workspace: the project folder as a ZIP (the .kicad_pcb, .kicad_pro, schematics, footprint and 3D-model folders), base64-encoded, up to about 18 MB zipped. An Altium Designer project (the .PcbDoc at the top of the ZIP) is converted with KiCad: the board, and its clearance, width, via and differential-pair rules as net classes; the reply lists the rules not carried (rooms, layers, lengths). The CLI does this with koppar import <folder>. Or from_design_id: the KiCad project of a design the pipeline built (its board, rules, schematics and custom footprints) opened as a workspace, to change the design rules, place and route it with the board tools and put the result back with upload_board (workspace_id). Returns the design_id the board tools take and a first get_board_info. A new revision of a board you already imported (changed in KiCad) is imported again with the session_id the first import returned: it opens as a new design in that same project, beside the revisions before it, so one board stays one project in the user's list. Not for changes the board tools can make on the design you have: work on that design_id.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "import_kicad_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
briefNoA note for the design record. No tool reads it: what to keep, widths and layers go in the options of set_design_rules and route_board.
titleNo
board_fileNoWhich .kicad_pcb (or Altium .PcbDoc) at the top of the project, when there are several.
session_idNoThe project (web session) a new revision of this board goes into: the session_id the first import returned. Without it, an import whose title matches a project you opened before, or whose board file (the .kicad_pcb name) one of your imports had, joins that project, so revisions of one board stay together in the user's list.
zip_base64NoThe zipped project folder, base64.
new_projectNoStart a new project even when one with this title exists.
from_design_idNoA design of yours with a board (start_board or upload_board): its KiCad project becomes the workspace. Instead of zip_base64.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / session_id / description
      Previous value: -"The project (web session) a new revision of this board goes into: the session_id the first import returned. Without it, an import whose title matches a project you opened before joins that project, so revisions of one board stay together in the user's list."New value: +"The project (web session) a new revision of this board goes into: the session_id the first import returned. Without it, an import whose title matches a project you opened before, or whose board file (the .kicad_pcb name) one of your imports had, joins that project, so revisions of one board stay together in the user's list."
  2. Changed1 schema field changed
    • changedInput schema / properties / board_file / description
      Previous value: -"Which .kicad_pcb at the top of the project, when there are several."New value: +"Which .kicad_pcb (or Altium .PcbDoc) at the top of the project, when there are several."
  3. Changed6 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / board_file / maxLength
      Removed value: -200
    • removedInput schema / properties / brief / maxLength
      Removed value: -20000
    • removedInput schema / properties / title / maxLength
      Removed value: -120
    • removedInput schema / properties / zip_base64 / maxLength
      Removed value: -24000000
    • removedInput schema / properties / zip_base64 / minLength
      Removed value: -100
  4. Changed1 schema field changed
    • changedInput schema / properties / brief / description
      Previous value: -"What the user wants done with the board, for the design record."New value: +"A note for the design record. No tool reads it: what to keep, widths and layers go in the options of set_design_rules and route_board."
  5. Changed2 schema fields changed
    • addedInput schema / properties / new_project
      Added value: +{
      +  "description": "Start a new project even when one with this title exists.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / session_id
      Added value: +{
      +  "description": "The project (web session) a new revision of this board goes into: the session_id the first import returned. Without it, an import whose title matches a project you opened before joins that project, so revisions of one board stay together in the user's list.",
      +  "pattern": "^[A-Za-z0-9_-]{8,80}$",
      +  "type": "string"
      +}
  6. Changed2 schema fields changed
    • addedInput schema / properties / from_design_id
      Added value: +{
      +  "description": "A design of yours with a board (start_board or upload_board): its KiCad project becomes the workspace. Instead of zip_base64.",
      +  "pattern": "^[A-Za-z0-9_-]{8,80}$",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "zip_base64"
      -]
  7. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the ZIP size limit, base64 encoding, Altium conversion behavior and which rule types are not carried over. It also states the return value (design_id plus a first get_board_info) and how revisions are grouped into the same project, which is substantial behavioral context for a mutating import 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?

The description is front-loaded with the main purpose and modes, and its length is justified by the tool's complexity. However, it is a dense run-on paragraph with some repetition of schema details, and the CLI reference is extraneous for an MCP tool.

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 seven-parameter import tool with no output schema, the description covers the important modes, limits, revision behavior, return value, and the boundary against board-tool edits. The remaining parameter details such as title, new_project, and brief are adequately covered by the schema.

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 high at 86%, so the baseline is 3, but the description adds real meaning for the mode-defining parameters: zip_base64 is a zipped KiCad/Altium project and from_design_id reopens an existing design's KiCad project as a workspace. It explains session_id's role in keeping revisions together, though it does not add meaning for title, new_project, or brief beyond the schema.

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 states a specific verb and resource: bringing an existing KiCad project in as a board workspace, with two distinct input paths (zip_base64 and from_design_id). It also explicitly distinguishes this from using board tools on an already imported design, so an agent can tell it apart from upload_board and design-editing siblings.

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?

It gives explicit guidance on when to use zip_base64 versus from_design_id, when to supply session_id for a new revision, and when not to use the tool because the change belongs to the existing design_id. The alternatives and exclusions are stated rather than inferred.

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