Skip to main content
Glama

Update the board from a changed netlist

update_board_from_netlist

Bring a routed board to a changed circuit and keep every track that is still right: what KiCad calls Update PCB from Schematic, then the routing. New parts go on the board (place: a connector on an edge, the board grown when there is no room, the rest in free room near what they connect to; placements for exact poses), moved or re-netted pads lose only the branch of copper that led to them, copper a new part lands on goes, and only what is open is routed, with the rules read off the board. The answer says how many tracks and vias were kept, ripped and added, what is still open, and the errors that touch the change. A route that takes copper off the rip list is refused and the board stays.

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>",
      "netlist": "<netlist>"
    },
    "name": "update_board_from_netlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
placeNoNew parts without a pose yet, and where they should go.
removeNoParts that leave the board. Parts in no netlist (a logo, a fiducial) stay otherwise.
wait_sNoSeconds to wait (default 55); a job still running comes back "running" for get_board_job.
netlistYesThe new KiCad netlist, as text.
design_idYesThe design id returned by import_kicad_project or list_designs.
placementsNoReference -> exact pose, for new parts and parts that move.
time_budget_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / design_id / pattern
      Removed value: -"^[A-Za-z0-9_-]{8,80}$"
    • removedInput schema / properties / netlist / maxLength
      Removed value: -5000000
    • removedInput schema / properties / netlist / minLength
      Removed value: -10
    • removedInput schema / properties / place / maxItems
      Removed value: -200
    • removedInput schema / properties / placements / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / remove / maxItems
      Removed value: -500
    • changedInput schema / properties / wait_s / description
      Previous value: -"Seconds to wait for the job (default 55). A job still running comes back with status \"running\": follow it with get_board_job. A job is allowed the time its budget asks for (time_budget_s, total_budget_s, rounds), and survives a server restart (the op starts over from its snapshot; route_board's pipeline goes on from its last finished stage)."New value: +"Seconds to wait (default 55); a job still running comes back \"running\" for get_board_job."
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only give the safety triad (readOnly=false, destructive=false, openWorld=false); the description carries the real behavioral weight: which copper is ripped (only the branch to moved/re-netted pads, copper a new part lands on), that only open nets are routed with rules read off the board, board growth when placement has no room, and an explicit refusal/atomicity guarantee ('a route that takes copper off the rip list is refused and the board stays'). It also previews the report contents. Minor gap: it never states that this rewrites the design and relies on board revisions for recovery.

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?

Almost all the content earns its place, but it is delivered as one long semicolon-and-parenthesis chain rather than front-loaded sentences, which makes the key guarantee (preservation of correct tracks, refusal on destructive routes) easy to miss. A short first sentence stating the outcome plus separated placement and rip-up clauses would read far better at the same length.

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 a 7-parameter, nested-schema, no-output-schema mutation tool, the description covers the workflow, placement policy, rip-up scope, routing scope, refusal semantics, and the shape of the returned report. The main thing it does not cover is recoverability (revisions/restore_board_revision), which matters given that copper and parts are removed.

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 description coverage is 86%, so the baseline is 3, but the description genuinely adds meaning: it explains that `place` is for new parts without a pose and the placement strategy behind edge/near/nets, that `placements` pins exact poses for new and moving parts, and that parts absent from the netlist (logos, fiducials) survive unless named in `remove`. It does not clarify how `time_budget_s` interacts with `wait_s`, leaving that to 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?

Names a concrete verb and resource (bring a routed board to a changed netlist) and anchors it to the known KiCad operation 'Update PCB from Schematic, then the routing'. It also enumerates the specific changes handled (new parts placed, moved/re-netted pads un-routed, copper under new parts removed), which lets an agent distinguish it from route_board, auto_place, or edit_circuit without opening the schema.

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

Usage Guidelines4/5

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

The when-to-use context is clear: after the circuit changes, to reconcile an already-routed board while preserving correct tracks. It also gives a useful operational cue by referencing get_board_job for still-running jobs. It stops short of naming a sibling to use instead (e.g. route_board for full routing, repair_board, cleanup_board) or stating exclusions, so it does not reach a 5.

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