Skip to main content
Glama

Upload a board

upload_board

Replace the design's board with a .kicad_pcb you routed or edited yourself (the file, base64). The board must carry the design's circuit: every schematic part by reference, every pad on the net the netlist gives it; a footprint swap is allowed and recorded. Anything else is refused with the list of differences and nothing changes. The previous board is kept as circuit.before-upload.kicad_pcb. KiCad DRC judges the new board and releases or withholds the Gerbers, and the session chat gets a note of the upload. Not for a board workspace (import_kicad_project): its board tools edit the board in place.

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": "upload_board"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoWhat was done to the board, for the session chat.
design_idYesThe design id returned by create_design or list_designs.
board_base64NoThe .kicad_pcb file, base64 (or give workspace_id).
rules_base64NoThe .kicad_dru beside the board, base64.
workspace_idNoA board workspace of yours (import_kicad_project, e.g. one made from this design with from_design_id): its board, project rules and .kicad_dru are taken from there, no download and upload.
project_base64NoThe .kicad_pro beside the board, base64: its design rules and net classes judge the board (without it the design keeps its own).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / board_base64 / maxLength
      Removed value: -24000000
    • removedInput schema / properties / board_base64 / minLength
      Removed value: -16
    • removedInput schema / properties / design_id / pattern
      Removed value: -"^[A-Za-z0-9_-]{8,80}$"
    • removedInput schema / properties / note / maxLength
      Removed value: -400
    • removedInput schema / properties / project_base64 / maxLength
      Removed value: -24000000
    • removedInput schema / properties / rules_base64 / maxLength
      Removed value: -24000000
  2. Changed5 schema fields changed
    • changedInput schema / properties / board_base64 / description
      Previous value: -"The .kicad_pcb file, base64."New value: +"The .kicad_pcb file, base64 (or give workspace_id)."
    • addedInput schema / properties / project_base64
      Added value: +{
      +  "description": "The .kicad_pro beside the board, base64: its design rules and net classes judge the board (without it the design keeps its own).",
      +  "maxLength": 24000000,
      +  "type": "string"
      +}
    • addedInput schema / properties / rules_base64
      Added value: +{
      +  "description": "The .kicad_dru beside the board, base64.",
      +  "maxLength": 24000000,
      +  "type": "string"
      +}
    • addedInput schema / properties / workspace_id
      Added value: +{
      +  "description": "A board workspace of yours (import_kicad_project, e.g. one made from this design with from_design_id): its board, project rules and .kicad_dru are taken from there, no download and upload.",
      +  "pattern": "^[A-Za-z0-9_-]{8,80}$",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "design_id",
      -  "board_base64"
      -]New value: +[
      +  "design_id"
      +]
  3. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=false and openWorld=false, but the description adds substantial context beyond them: the circuit-consistency requirement, atomic refusal with a diff list and no changes made, the circuit.before-upload.kicad_pcb backup, DRC gating of Gerber release, and a session-chat note. That is well above the annotation baseline.

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 purpose and the validation contract are front-loaded, and nearly every clause carries a fact an agent needs (consistency rule, refusal semantics, backup name, DRC consequence, sibling exclusion). The single semicolon-chained paragraph is dense but not padded.

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 six-parameter mutation with no output schema, the description covers the acceptance rule, the failure behavior, the side effects (backup file, chat note, DRC/Gerber gating) and the correct alternative tool. Nothing an agent needs to call this safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already explains all six parameters, including the workspace_id shortcut and rules_base64. The description reinforces the workspace_id alternative and clarifies that the note feeds the session chat, but adds little syntax or format detail beyond the structured fields, so the baseline 3 applies.

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?

"Replace the design's board with a .kicad_pcb you routed or edited yourself" gives a precise verb, resource and accepted file format, and immediately contrasts with import_kicad_project so the agent can tell the two apart without inspecting schemas.

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?

States the positive condition (you routed or edited the board yourself) and an explicit exclusion with the alternative named: "Not for a board workspace (import_kicad_project): its board tools edit the board in place." The workspace_id path is also described as an alternative to download/upload.

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